mIRC Home    About    Download    Register    News    Help

Print Thread
#205582 26/10/08 11:32 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
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,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Code:
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
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
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 smile 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
R
Hoopy frood
Offline
Hoopy frood
R
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
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Or use mdx / dcx.

Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I don't want to use more DLL files, i using two so far and that's enough smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
To expand on Wims' example:

Code:
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)


Link Copied to Clipboard