mIRC Home    About    Download    Register    News    Help

Topic Options
#672 - 09/12/02 07:01 PM how do you have a clickable icon in dialog
PHMinistries Offline
Vogon poet

Registered: 09/12/02
Posts: 174
is it possible to have a clickable icon in a dialog? that you could click it and make it do an action?

Top
#673 - 09/12/02 07:05 PM Re: how do you have a clickable icon in dialog
Merlin Offline
Vogon poet

Registered: 08/12/02
Posts: 164
Loc: 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

Top
#674 - 09/12/02 08:18 PM Re: how do you have a clickable icon in dialog
PHMinistries Offline
Vogon poet

Registered: 09/12/02
Posts: 174
yes but in the actuall dialog box how do you do it?

Top
#675 - 09/12/02 10:51 PM Re: how do you have a clickable icon in dialog
KennyJ Offline
Ameglian cow

Registered: 09/12/02
Posts: 25
Loc: 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.
_________________________
KennyJ@VietSweet.com

Top
#676 - 09/12/02 11:00 PM Re: how do you have a clickable icon in dialog
Frog Offline
Vogon poet

Registered: 09/12/02
Posts: 111
Loc: 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?

Top
#677 - 09/12/02 11:07 PM Re: how do you have a clickable icon in dialog
PHMinistries Offline
Vogon poet

Registered: 09/12/02
Posts: 174
oh kewl now i understand thanks

Top
#678 - 09/12/02 11:15 PM Re: how do you have a clickable icon in dialog
Frog Offline
Vogon poet

Registered: 09/12/02
Posts: 111
Loc: Hell
Welcome.
_________________________
Experience The Void.. Are You Ready?

Top