mIRC Home    About    Download    Register    News    Help

Print Thread
Several close dialog buttons in a dialog #173860 31/03/07 12:10 PM
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
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


Deridio fatum
Re: Several close dialog buttons in a dialog [Re: AaronL] #173863 31/03/07 12:18 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
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 }



Invision Support
#Invision on irc.irchighway.net
Re: Several close dialog buttons in a dialog [Re: AaronL] #173864 31/03/07 12:18 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: Several close dialog buttons in a dialog [Re: Riamus2] #173870 31/03/07 12:55 PM
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
Hi Riamus 2.

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


Deridio fatum