Stop code on window

Post Reply
shark
Posts: 55
Joined: Thu Mar 13, 2008 2:35 am
Contact:

Stop code on window

Post by shark »

is it possible stop running a code until a window is closed ? (WAIT)

ex:

CODE...

DEFINE WINDOW oWnd TITLE "Test"
...
...
ACTIVATE WINDOW oWnd MAXIMIZED (STOP HERE...)

CONTINUE CODE...
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Stop code on window

Post by Marc Vanzegbroeck »

Do you mean something like a dialog?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
shark
Posts: 55
Joined: Thu Mar 13, 2008 2:35 am
Contact:

Re: Stop code on window

Post by shark »

Yes... I want code stoped like a dialog
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Stop code on window

Post by nageswaragunupudi »

If the window is a main window, the "CONTINUE CODE" is not executed till the window is closed.

Are you asking about an MDI Child window?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Stop code on window

Post by nageswaragunupudi »

1) Main Window
The "CONTINUE CODE" is executed only after the main window is closed.

2) MDI Child Window:

Do not put the CONTINUE CODE after ACTIVATE WINDOW, but put this code in the codeblock

Code: Select all

oWnd:bPostEnd := { || <CONTINUE CODE> }

3) Normal window, but not a main window or mdi child window.

[code]
local lExit := .f.

// other code

ACTIVATE WINDOW oWnd VALID ( lExit := .t. )
StopUntil( { || lExit } )

CONTINUE CODE
 
Regards

G. N. Rao.
Hyderabad, India
Post Reply