Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 28 AUG 2003 10:50:51AM Johan Nilsson wrote:

Hi!

I have a third part application that runs mostly in the background, but the thing is that when I want to use it it just stays in the systray. It works, but the user doesn't see it.

Do you have any idea how I might be able to get OI to tell the program to maximize ?

thanks alot!

Johan </QUOTE> —- === At 28 AUG 2003 11:34AM Don Miller wrote: === <QUOTE>Here is the code I use in the CREATE event of the Main OI screen: DECLARE SUBROUTINE SET_PROPERTY DECLARE FUNCTION GET_PROPERTY DECLARE SUBROUTINE SET_PROPERTY,FORWARD_EVENT declare function FindWindow declare subroutine ShowWindow * NOTE bState for engine display should be: * 0 to Hide/1 to Show bState=0 ;* default is to hide the engine. Display with SF1 * First get the OpenEngine handle openEngineHandle=FindWindow("AREV":\00\,0) * Show or hide the window based on bState ShowWindow(openEngineHandle,bState) PIC=GET_PROPERTY(@WINDOW,"@ORIG") SET_PROPERTY(@WINDOW:".BUTTON_7","BITMAP","BMPS\GRANDMA.BMP") SET_PROPERTY(@WINDOW,"@ORIG","") CALL DETACH_TUTOR('NO') SET_PROPERTY(@WINDOW:".TEXT_9","TEXT","Click for Tutorial") * this will start the app maximized * SET_PROPERTY(@WINDOW,"VISIBLE",3) ;* STARTS MAXIMIZED * MAKE SURE THE LOGGED IN USER COUNT IS CORRECT OPEN 'SYSLOGINS' TO SYSLOGINS THEN SELECT SYSLOGINS L0: READNEXT ID THEN LOCK SYSLOGINS,ID ELSE DELETE SYSLOGINS,ID ELSE NULL END UNLOCK SYSLOGINS,ID ELSE NULL GOTO L0 END END ELSE CALL MSG('Error ||System Table: SYSLOGINS|Not Found') END RETURN 0 Maybe some bits and pieces of this will prove useful. Don M. </QUOTE> —- === At 28 AUG 2003 11:34AM Oystein Reigem wrote: === <QUOTE>Johan, If OI starts that 3rd part app with Utility "RUNWIN" you can change that Utility call and include a parameter that tells the app to start maximised. See . If the 3rd part app is already running you might be able to maximise it with a couple of calls to Windows DLL functions. I believe others on this list can supply the details. If the 3rd part app is MS Word you can do it by DDE: Set_Property( MyDDECtrl, "DDECOMMAND", "App.Maximize" ) - Oystein - </QUOTE> —- === At 28 AUG 2003 11:52AM Oystein Reigem wrote: === <QUOTE>Johan, Don might have given you the help you need. FindWindow (or FindWindowByTitle?) and ShowWindow are the Windows DLL functions I couldn't remember. (Although I use them myself.) From Don's code you can see he uses them for minimizing OpenEngine. You can use them to max that 3rd party app's window. Don's code also shows how you can max an OI window. - Oystein - </QUOTE> View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/a3f79bb681ed771d85256d9000518f71.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1