mIRC Homepage
Posted By: AaronL Several close dialog buttons in a dialog - 31/03/07 12:10 PM
G'day to all

As the topic says.
I have a dialog with several buttons.
They open a aline window, but the dialog needs to be closed after that. As long its one button, the ok works good, but i want 2 other buttons to do the closing aswell.
Is that possible, and so yes please help me out.

Thanxs in advanged.
Aaron
Posted By: Riamus2 Re: Several close dialog buttons in a dialog - 31/03/07 12:18 PM
To close without triggering any events:
Code:
  if ($did == XXXX) { dialog -x $dname }


To close by "clicking" the OK button:
Code:
  if ($did == XXXX) { dialog -k $dname }

Posted By: qwerty Re: Several close dialog buttons in a dialog - 31/03/07 12:18 PM
Use the on dialog sclick event for those two buttons to perform a /dialog -c $dname (or /dialog -x $dname). You'll need to look up these things in the help file for more details.
Posted By: AaronL Re: Several close dialog buttons in a dialog - 31/03/07 12:55 PM
Hi Riamus 2.

I used your first example and it works just fine..
Thank you so much smile
© mIRC Discussion Forums