FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Stop code on window
Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Stop code on window
Posted: Sun Mar 24, 2019 02: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...

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Stop code on window
Posted: Sun Mar 24, 2019 09:32 AM

Do you mean something like a dialog?

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Re: Stop code on window
Posted: Sun Apr 28, 2019 08:23 PM

Yes... I want code stoped like a dialog

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Stop code on window
Posted: 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Stop code on window
Posted: Mon Apr 29, 2019 03: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 (fw): Select all Collapse
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

Continue the discussion