Shoutbox

Alter Element Colour Dynamicaly - 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: Alter Element Colour Dynamicaly (/showthread.php?tid=68943)

Alter Element Colour Dynamicaly by Spunky on 11-29-2006 at 12:17 AM

I'm using the following code in my xml file to add an element (A square with rounded corners). Is there a way to change it's colour from within the script as I want it to change under different circumstances, however there are too many possibilities to use loadsof image files. I've got a feeling that it's not possible and if it isn't, are there any controls/Elements where it is possible?

The <Red>, <Green> and <Blue> tags are what need changing

quote:
<Elements>
  <Element xsi:type="FigureElement" Id="FigRectOptions">
    <Position Top="20" Left="50" Height="30" Width="30"/>
      <Figure>
        <RoundRect><Radius>5</Radius></RoundRect>
      </Figure>
    <Border>
      <Color><GlobalColor>bg</GlobalColor></Color>
    </Border>
    <Fill>
      <PlainColor>
        <Red>255</Red>
        <Green>255</Green>
        <Blue>255</Blue>
        <Alpha>255</Alpha>
      </PlainColor>
    </Fill>
  </Element>
</Elements>

RE: Alter Element Colour Dynamicaly by deAd on 11-29-2006 at 12:25 AM

It's not possible to change an element, except for Image elements.

You can change most controls' properties with Windows Messages...


RE: Alter Element Colour Dynamicaly by Spunky on 11-29-2006 at 12:35 AM

Any ideas which messages? I'm a noob with things like that :s


RE: RE: Alter Element Colour Dynamicaly by deAd on 11-29-2006 at 12:48 AM

quote:
Originally posted by SpunkyLoveMuff
Any ideas which messages? I'm a noob with things like that :s

Well here's the list of messages for Plus!'s controls:
http://msdn.microsoft.com/library/default.asp?url...ls/wincontrols.asp
I'd suggest looking through there :)