Antonio
It appears that Five Linux dialogs don't have a wait state. By that I mean that if I have code such as
DEFINE DIALOG dlgTest TITLE "Test"
<define dialog here>
ACTIVATE DIALOG dlgTest CENTERED
MsgInfo( "Test Dialog Over" )
I will; get the message Test Dialog over before any event has taken place on the dialog. I do have one dialog that seems to behave as I would have expected but I can't quite see why.
This isn't a problem if you call the dialog directly from the application window because the window has a wait state in it (I presume).
It is a problem for me in two ways, however.
Firstly I want to call a dialog from another dialog (for eaxample have a record displayed and click edit to edit it)
Secondly I typically have code a bit like this
DO WHILE .T.
ShowDialog()
IF ::ExitCode = "X"
RETURN nil
ENDIF
IF ::ExitCode = "E"
::lEdit := .T.
ELSE
::lEdit := .F.
ENDIF
ENDDO
But the dialog returns before the buttons on it can set the ::ExitCode.
Can you confirm if this is correct behaviour? If not what am I doing wrong? Can I use Windows everywhere rather than dialogs and what would the implications of such a change be? Can I simply program in a wait state somehow (I don't think plain INKEY( 0 ) or WAIT are up to the task.
Thanks
Doug (xProgrammer)
Five Linux Dialogs and Wait States
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
I tried the main window calling another window
However there was still no wait state and when I exited my child ? window the whole application closed
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: