I'm probably being really dumb here but this is an older script I recently updated to the new dialog system and I am having a small problem.
The dilaog will not close using Close>Dialog command
Well, it will close when the script is run with MSched but when run from as EXE file the dialog does not close (so I have had to setdialog property disabled instead).
A bit of code that may help:
DECLARE DIALOGS
SET UP HANDLERS
Show>Dialog1,
VARIOUS SUB ROUTINES
An SRT CONTAINS THIS:
IF>%TESTOK%=1
GOSUB>MOVE
ENDIF
THE MOVE SRT CONTAINS THIS:
CloseDialog>Dialog1
SetDialogProperty>Dialog1,,Enabled,False
I have added the Enabled, False because the Dialog doesn't close when the script is an EXE file. And there is another dialog that takes over and displays actions. If the main dialog is messed with during that period everything goes pear shaped.
I am sure this may be to do with modal / non-modal but why would it work when MSched is running but not close when run as an EXE?
And how do I get the Dialog1 to close at a specific place when run as an EXE file?
Any help appreciated thank you.
P
