Five Linux Dialogs and Wait States

Post Reply
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Five Linux Dialogs and Wait States

Post by xProgrammer »

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)
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

I tried the main window calling another window

Post by xProgrammer »

However there was still no wait state and when I exited my child ? window the whole application closed
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Doug,

Fixed. We send you new LIBs.

Thanks for your feedback,
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply