Interface Window Colors - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Interface Window Colors (/showthread.php?tid=87914)
Interface Window Colors by trevorpe on 12-22-2008 at 08:26 PM
Hello,
I'm only 13, and I'm scripting a bit. I have an interface window that I want users to be able to choose a color by th RGB format. I made a function to turn that into hexadecimal to put in conversation windows. Is it possible to change the color of a control or element in the interface window to preview the color? Also, can the script get the value of slider controls? Because I would rather use sliders for each color than edit boxes. Please reply.
Trevor
RE: Interface Window Colors by roflmao456 on 12-23-2008 at 12:40 AM
I never tried custom colouring the window from a script (only done it by xml) so I can't give you an answer for that.
As for slider controls, in fact you can get the value by sending a TBM_GETPOS message to the control handle. You can also set the value on the slider control by sending TBM_SETPOS with a value as a parameter
code: PlusWnd.SendControlMessage("SliderControl", 0x405 /* TBM_SETPOS */, 1, 255 /* new value */);
PlusWnd.SendControlMessage("SliderControl", 0x400 /* TBM_GETPOS */, 0, 0);
TBM_SETPOS = TBM_GETPOS+5
RE: Interface Window Colors by trevorpe on 12-23-2008 at 12:51 AM
Thanks, but until I figure out (if it is even possible), how to change the xml values from the script, It is no use to me.
Hopefully I'll find something or someone can help me out.
|