OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bigcheese on 22 Jan 2004, 22:24:10

Title: Dialogs
Post by: bigcheese on 22 Jan 2004, 22:24:10
How would you detect if a dialog is open or not, in this situation?

Dlg = createdialog "nukeposdialog"
and the close buttons action = "closedialog 0"

Thanks in advance ...
Title: Re:Dialogs
Post by: alimag on 22 Jan 2004, 23:17:12
Dlg = createdialog "nukeposdialog"
? !Dlg : hint "Error creating dialog" ; exit

You can also use the function 'dialog'. It will return true if a dialog is open (false if not).
If you want to wait until the dialog is close:

@ !dialog

Cheers
Title: Re:Dialogs
Post by: bigcheese on 22 Jan 2004, 23:30:49
cheers alimag

ill give that a go

Title: Re:Dialogs
Post by: Igor Drukov on 23 Jan 2004, 16:18:08
Hey !


CtrlVisible (http://www.ofpec.com/editors/comref.php?letter=C#ctrlVisible) is also very often used.

Just in case,


Ig.