Home   Help Search Login Register  

Author Topic: Dialogs  (Read 458 times)

0 Members and 1 Guest are viewing this topic.

bigcheese

  • Guest
Dialogs
« 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 ...

Offline alimag

  • Contributing Member
  • **
  • I'm a llama!
Re:Dialogs
« Reply #1 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

bigcheese

  • Guest
Re:Dialogs
« Reply #2 on: 22 Jan 2004, 23:30:49 »
cheers alimag

ill give that a go


Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:Dialogs
« Reply #3 on: 23 Jan 2004, 16:18:08 »
Hey !


CtrlVisible is also very often used.

Just in case,


Ig.
« Last Edit: 23 Jan 2004, 16:19:18 by Igor Drukov »