DIALOGENABLE

Synopsis
DIALOGENABLE name state
Description

Enables or disables the dialog identified by name. If state equals TRUE, then the window is enabled. If state equals FALSE, then the window is disabled.

Be careful when using DIALOGENABLE to disable a dialog. Because DIALOGCREATE doesn't stop until the dialog closes, if you disable the dialog box, they user may not be able to close the dialog, which means FMSLogo may get stuck waiting forever.

Example
TO MYSETUP
  BUTTONCREATE "mydialog "mydisable "Disable 25 25 50 20 [DIALOGENABLE "mydialog "false]
  BUTTONCREATE "mydialog "myok      "OK      25 50 50 20 [DIALOGDELETE "mydialog]
END

DIALOGCREATE "main "mydialog "mytitle 0 0 100 100 [MYSETUP]
Clicking the "Disable" button causes FMSLogo to lock up

SourceForge.net Logo