What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Alter Element Colour Dynamicaly

Alter Element Colour Dynamicaly
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. Alter Element Colour Dynamicaly
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>
<Eljay> "Problems encountered: shit blew up" :zippy:
11-29-2006 12:17 AM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Alter Element Colour Dynamicaly
It's not possible to change an element, except for Image elements.

You can change most controls' properties with Windows Messages...
11-29-2006 12:25 AM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: Alter Element Colour Dynamicaly
Any ideas which messages? I'm a noob with things like that :s
<Eljay> "Problems encountered: shit blew up" :zippy:
11-29-2006 12:35 AM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: RE: Alter Element Colour Dynamicaly
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 :)

This post was edited on 11-29-2006 at 12:48 AM by deAd.
11-29-2006 12:48 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On