|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
Someone that know if you can make a icon work like a button? if someone click on a icon in a dialog, then it don't show in any way it's been triggered, or is the only way to ether echo some text, make a tip, or add a sound to it?
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Jul 2006
Posts: 4,151
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,151 |
dialog t_mirc {
title "Ga"
size -1 -1 200 200
icon 1,50 50 50 50 , $mircexe ,2
}
on *:dialog:t_mirc:sclick:1:echo -a click on icon /dialog -m t_mirc t_mirc Is this is what you want ?
Last edited by Wims; 26/10/08 11:42 AM.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
Yes i know you can echo a text, but any way to show the user they clicked a icon in the dialog? if you have the dialog open it's easy to miss a text that echoing in the channel/status window it would be nice if it looks like a button so it show you just clicked it, or any other way to show what you just pressed.. =)
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
One possibility is to have the icon change when you click it. An example might be like the Windows recycle bin showing two different icons depending on if there is information in the recycle bin or not, That way the icon will always be visible and available to be clicked. Alternatively, you could hide/show the icon ID, or Enable/disable it.
You could also hav ethe text display in the dialog, rather than a window.
All of these options will make a change in the dialog display.
|
|
|
|
Joined: Jan 2007
Posts: 1,156
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,156 |
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
I don't want to use more DLL files, i using two so far and that's enough
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
To expand on Wims' example: dialog t_mirc {
title "Ga"
size -1 -1 200 200
icon 1, 50 50 50 50, $mircexe , 2
}
on *:dialog:t_mirc:sclick:1: did -g $dname 1 1 $qt($mircexe)
on *:dialog:t_mirc:uclick:1: did -g $dname 1 2 $qt($mircexe)
|
|
|
|
|
|