mIRC Homepage
Posted By: Terminator2004 mdx help needed - 03/07/06 05:02 PM
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 
} 
 
Posted By: hmtX Re: mdx help needed - 03/07/06 06:21 PM
not possible afaik.

/edit: nevermind, dunno about mdx - never used it.
Posted By: Crash_N_Burn Re: mdx help needed - 04/07/06 07:34 PM
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

*
© mIRC Discussion Forums