Shoutbox

[Solved] Button Image? - 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: [Solved] Button Image? (/showthread.php?tid=62920)

[Solved] Button Image? by pollolibredegrasa on 07-09-2006 at 07:06 PM

Reading the Schema Documentation, under the ButtonControl element there is "Image".
Does this mean I can have an image shown on/instead of the default button? And if so, how do I do it, as I tried the followng which failed:

code:
<Control xsi:type="ButtonControl" Id="BtnClose">
        <Position Left="215" Top="163" Width="76"/>
        <Image><Name>close</Name></Image>
</Control>
Using this I just get a blank button.

I have a file called close.png in the Images subdirectory of my script folder.

Any help appreciated...

Edit:

It appears that the image must be the exact same size or smaller than the button it is being placed on, or it will not draw. My image was 1px too tall, but after removing that it worked.

RE: Button Image? by Joereynolds89 on 07-09-2006 at 09:27 PM

<Control xsi:type="ButtonControl" Id="BtnClose">
<Position Left="215" Top="163" Width="76"/>
<Image><Name>images/close.png</Name></Image>
</Control>

im just guessing btw :P


RE: Button Image? by pollolibredegrasa on 07-09-2006 at 10:34 PM

Nah, didnt work :(

I just get a blank button still.

Thanks anyway