What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Changing a buttons image?

Changing a buttons image?
Author: Message:
effection
Full Member
***

Destroy The Runner

Posts: 135
Reputation: 4
– / Male / Flag
Joined: Sep 2006
O.P. Changing a buttons image?
i want to be able to change the image i am using to skin a button from a script and not have to edit the xml file. ive seen the function "ImageElmt_SetImageFile" but that is only to set image elements and i'm not sure how to use an image element to skin a button:S

any help would be appreciated
03-11-2007 08:33 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Changing a buttons image?
Not sure it can be done... You could use a script to parse a new xml file each time a skin was created with the right file names etc (I've tried this before btw)
<Eljay> "Problems encountered: shit blew up" :zippy:
03-12-2007 03:26 PM
Profile PM Find Quote Report
effection
Full Member
***

Destroy The Runner

Posts: 135
Reputation: 4
– / Male / Flag
Joined: Sep 2006
O.P. RE: Changing a buttons image?
yeah i was hoping not to result to that and just have  some regidtry settings :(
03-12-2007 03:48 PM
Profile E-Mail PM Find Quote Report
the DtTvB
Junior Member
**


Posts: 47
Reputation: 10
– / Male / –
Joined: Mar 2007
Status: Away
RE: Changing a buttons image?
What about using an image as the button's background and use some clickable control i.e. link control as the button's hotspot and/or text?
the DtTvB - My name has no meaning, but it's unique at least!
[Image: asj.gif]
03-12-2007 03:56 PM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Changing a buttons image?
A simple work around is to have an image control with a fully transparent button control sitting on top.  This way you can change the image easily while still having the button (you just lose the effects of what a button looks like when pressed).
[Image: markee.png]
03-12-2007 04:01 PM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Changing a buttons image?
quote:
Originally posted by markee
A simple work around is to have an image control with a fully transparent button control sitting on top.  This way you can change the image easily while still having the button (you just lose the effects of what a button looks like when pressed).

Or to keep the state effects, use CustomLook in the button control to add an ImageElement that you can then change the image of. (I haven't tested this but in theory it should work... )
03-12-2007 09:09 PM
Profile PM Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Changing a buttons image?
quote:
Originally posted by Eljay
quote:
Originally posted by markee
A simple work around is to have an image control with a fully transparent button control sitting on top.  This way you can change the image easily while still having the button (you just lose the effects of what a button looks like when pressed).

Or to keep the state effects, use CustomLook in the button control to add an ImageElement that you can then change the image of. (I haven't tested this but in theory it should work... )
yea you can just use the CustomLook and change the images each time (tested it :P)
03-12-2007 09:13 PM
Profile PM Find Quote Report
effection
Full Member
***

Destroy The Runner

Posts: 135
Reputation: 4
– / Male / Flag
Joined: Sep 2006
O.P. RE: Changing a buttons image?
any examples? i haven't used custom look or an image element for that fact
03-12-2007 10:14 PM
Profile E-Mail 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