mIRC Home    About    Download    Register    News    Help

Print Thread
P
PHMinistries
PHMinistries
P
is it possible to have a clickable icon in a dialog? that you could click it and make it do an action?

M
Merlin
Merlin
M
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 
}


P
PHMinistries
PHMinistries
P
yes but in the actuall dialog box how do you do it?

K
KennyJ
KennyJ
K
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.

P
PHMinistries
PHMinistries
P
oh kewl now i understand thanks

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


Link Copied to Clipboard