mIRC Home    About    Download    Register    News    Help

Print Thread
how do you have a clickable icon in dialog #672
09/12/02 07:01 PM
09/12/02 07:01 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
PHMinistries  Offline OP
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?

Re: how do you have a clickable icon in dialog #673
09/12/02 07:05 PM
09/12/02 07:05 PM
Joined: Dec 2002
Posts: 164
Germany
M
Merlin Offline
Vogon poet
Merlin  Offline
Vogon poet
M

Joined: Dec 2002
Posts: 164
Germany
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
Re: how do you have a clickable icon in dialog #674
09/12/02 08:18 PM
09/12/02 08:18 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
PHMinistries  Offline OP
Vogon poet
P

Joined: Dec 2002
Posts: 174
yes but in the actuall dialog box how do you do it?

Re: how do you have a clickable icon in dialog #675
09/12/02 10:51 PM
09/12/02 10:51 PM
Joined: Dec 2002
Posts: 25
Vietnam
K
KennyJ Offline
Ameglian cow
KennyJ  Offline
Ameglian cow
K

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

Re: how do you have a clickable icon in dialog #676
09/12/02 11:00 PM
09/12/02 11:00 PM
Joined: Dec 2002
Posts: 111
Hell
F
Frog Offline
Vogon poet
Frog  Offline
Vogon poet
F

Joined: Dec 2002
Posts: 111
Hell
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?
Re: how do you have a clickable icon in dialog #677
09/12/02 11:07 PM
09/12/02 11:07 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
PHMinistries  Offline OP
Vogon poet
P

Joined: Dec 2002
Posts: 174
oh kewl now i understand thanks

Re: how do you have a clickable icon in dialog #678
09/12/02 11:15 PM
09/12/02 11:15 PM
Joined: Dec 2002
Posts: 111
Hell
F
Frog Offline
Vogon poet
Frog  Offline
Vogon poet
F

Joined: Dec 2002
Posts: 111
Hell
Welcome.


Experience The Void.. Are You Ready?