DC_WaitOn() with a retractable window

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

DC_WaitOn() with a retractable window

#1 Post 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?

k-insis
Posts: 94
Joined: Fri Jan 28, 2011 4:07 am

Re: DC_WaitOn() with a retractable window

#2 Post 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?

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_WaitOn() with a retractable window

#3 Post 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.
The eXpress train is coming - and it has more cars.


User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_WaitOn() with a retractable window

#5 Post 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.
Attachments
_dcexpl.zip
(6.86 KiB) Downloaded 532 times
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: DC_WaitOn() with a retractable window

#6 Post by Eugene Lutsenko »

Thank you very much, Roger! Health and well-being to you!

Post Reply