mIRC Home    About    Download    Register    News    Help

Print Thread
#152612 03/07/06 05:02 PM
Joined: Aug 2004
Posts: 9
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2004
Posts: 9
Can someone show me how to code colored buttons in a dialog box? This is just a joke script for an example, but would be nice to have the button in a red color (the whole button, not just the text). I have another script with multiple buttons and would be handy to have them red,yellow, blue,etc... Once I saw how the code needed to be, then I think I can adapt it to the other script...thanks!
Code:
  

alias button { /dialog -m button button } 
dialog Button { 
  title "The Magic Button" 
  size -1 -1 137 101 
  option dbu 
  button "Button !!! Click it!", 1, 10 9 117 82 
} 
on *:DIALOG:Button:Sclick:1:{ 
  /disconnect 
  /exit 
} 
 

#152613 03/07/06 06:21 PM
Joined: Jul 2004
Posts: 31
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Jul 2004
Posts: 31
not possible afaik.

/edit: nevermind, dunno about mdx - never used it.

Last edited by hmtX; 03/07/06 06:54 PM.
#152614 04/07/06 07:34 PM
Joined: Jan 2006
Posts: 61
C
Babel fish
Offline
Babel fish
C
Joined: Jan 2006
Posts: 61
For the background color in buttons i never used before but i think you can use:

Text Background Color: /dll $mdx SetColor $dname <id> textbg $rgb(0,0,0)
Text Color: /dll $mdx SetColor $dname <id> text $rgb(0,0,0)
ID Background Color: /dll $mdx SetColor $dname <id> background $rgb(0,0,0)
or
/did -a $dname <id> BGColor $rgb(0,0,0)

==

If you wanna put black background on the button, use $rgb(0,0,0)...

White: $rgb(255,255,255)
Black: $rgb(0,0,0)
Green: $rgb(0,128,0)
Blue: $rgb(255,0,255)
Red: $rgb(255,0,0)
Yellow: $rgb(255,255,0)

==

I hope its usefull for you!

Thats all

*


The practice do the Master...

Link Copied to Clipboard