Shoutbox

RichStatic Control (Colours) - 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: RichStatic Control (Colours) (/showthread.php?tid=67667)

RichStatic Control (Colours) by Spunky on 10-25-2006 at 02:22 PM

I've just been looking at RichStatic controls and know they can use colours, but is it possible to use more than one colour (ie so I can display a contacts name in full colour)?


RE: RichStatic Control (Colours) by Matti on 10-25-2006 at 02:37 PM

YES!!! The RichStaticControls use the same syntax as MsgPlus! color codes. Hell, it supports all codes, including the old tags! (·$ etc.)

So, you can simply send the whole name to the control. :)

code:
PlusWnd.SetControlText("MyRichStaticControl", Contact.Name);

RE: RichStatic Control (Colours) by Spunky on 10-25-2006 at 02:46 PM

Yay! Thanks :D