mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
is it possible to have a clickable icon in a dialog? that you could click it and make it do an action?

Joined: Dec 2002
Posts: 164
M
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 164
you can do it if you supply the ID of your icon in the SCLICK event:
Code:
  
ON 1:DIALOG:DialogName:SCLICK:IDofICON: {
   echo -s You just clicked an icon 
}



DALnet: #HelpDesk, #mIRC, #MISHScript - Undernet: #mIRC, #mIRC-Scripts
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
yes but in the actuall dialog box how do you do it?

Joined: Dec 2002
Posts: 25
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Dec 2002
Posts: 25
You have to set the icon with a ID number, with the filename.ico then put a SLICK as the other username state before.

Joined: Dec 2002
Posts: 111
F
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
Here is an example:

dialog test {
title "Test"
size -1 -1 100 100
button "OK", 1, 1 1 10 10, ok
icon 2, bah.ico, 10 10 10 10, noborder (noborder is optional)
}
on *:dialog:test:sclick:2:echo -a You've clicked on an icon.

Anyway.


Experience The Void.. Are You Ready?
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
oh kewl now i understand thanks

Joined: Dec 2002
Posts: 111
F
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
Welcome.


Experience The Void.. Are You Ready?

Link Copied to Clipboard