Stop code on window

Stop code on window

Postby shark » Sun Mar 24, 2019 2:58 am

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...
shark
 
Posts: 55
Joined: Thu Mar 13, 2008 2:35 am

Re: Stop code on window

Postby Marc Vanzegbroeck » Sun Mar 24, 2019 9:32 am

Do you mean something like a dialog?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Stop code on window

Postby shark » Sun Apr 28, 2019 8:23 pm

Yes... I want code stoped like a dialog
shark
 
Posts: 55
Joined: Thu Mar 13, 2008 2:35 am

Re: Stop code on window

Postby nageswaragunupudi » Mon Apr 29, 2019 10:04 am

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: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Stop code on window

Postby nageswaragunupudi » Mon Apr 29, 2019 3:44 pm

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  Expand view

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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 84 guests