Page 1 of 1
					
				DC_WaitOn() with a retractable window
				Posted: Wed May 27, 2020 4:48 am
				by Eugene Lutsenko
				Is it possible to run the DC_WaitOn() function so that the progress bar can move, hide behind opening Windows, or collapse? Or maybe there is a similar function that can do this?
			 
			
					
				Re: DC_WaitOn() with a retractable window
				Posted: Fri Jun 05, 2020 5:44 am
				by k-insis
				Privjet Mr. Lutsenko
You will need to
a) remove 'ALWAYSONTOP' parameter for DCGETOPTIONS inside dc_waiton() source
or b) modify dc_waiton() with additional parameter that turns on/off ALWAYSONTOP
express\Source\Dclipx\_dcexpl.prg ; line 564
Currently it is hardcoded as fair i see it in source
Eugene Lutsenko wrote:Is it possible to run the DC_WaitOn() function so that the progress bar can move, hide behind opening Windows, or collapse? Or maybe there is a similar function that can do this?
 
			
					
				Re: DC_WaitOn() with a retractable window
				Posted: Wed Jun 10, 2020 12:50 pm
				by rdonnay
				DC_WaitOn() is a very old function written before I even started writing eXpress++.
I'll see what I can do about giving you ALWAYSONTOP as an option.
			 
			
					
				Re: DC_WaitOn() with a retractable window
				Posted: Wed Jun 10, 2020 9:42 pm
				by Eugene Lutsenko
				Thanks!
			 
			
					
				Re: DC_WaitOn() with a retractable window
				Posted: Mon Jun 15, 2020 6:37 am
				by rdonnay
				This is old, bad code so don't cringe when you see it.  It is about 30 years old.
Here is an updated _DCEXPL.PRG with an additional parameter you can pass to DC_WaitOn().
The 12th parameter is lAlwaysOnTop.  It defaults to TRUE.  You would pass it FALSE.
Example:
Code: Select all
FUNCTION Main()
LOCAL oScrn, i
oScrn := DC_WaitOn('Building Data...',,,,,,,,,,,.f.)
FOR i := 1 TO 10
  Sleep(100)
NEXT
DC_Impl(oScrn)
RETURN nil
Copy _DCEXPL.PRG to your \exp20\source\dclipx folder and run build20.bat or build19_sl1.bat to rebuild dclipx.dll.
 
			
					
				Re: DC_WaitOn() with a retractable window
				Posted: Mon Jun 15, 2020 7:06 am
				by Eugene Lutsenko
				Thank you very much, Roger! Health and well-being to you!