Shoutbox

ButtonControl not showing up - 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: ButtonControl not showing up (/showthread.php?tid=85068)

ButtonControl not showing up by SmokingCookie on 07-29-2008 at 08:09 PM

Hi,

I have a problem in a window's XML file.
I have specified a ButtonControl, yet it won't show up (and I cannot find any flaws in the XML).

Here's the code:

code:
            <Control xsi:type="ButtonControl" Id="BtnNextPage">
                <Position Left="100" Top="70" Width="5" />
                <Caption>&gt;</Caption>
            </Control>



RE: ButtonControl not showing up by matty on 07-29-2008 at 09:09 PM

Does the window show up? Specify a height ( Width="20" Height="20" ) ?

What is the xml code for the Window?


RE: ButtonControl not showing up by SmokingCookie on 07-29-2008 at 09:16 PM

Window shows up perfectly (apart from that button).

I firstly didn't want to post the window's code because it's pretty long :P

code:
<?xml version="1.0" encoding="Unicode"?>
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">

    <Window Id="WndMain_Options" Version="1">
        <Position ClientWidth="200" ClientHeight="117"/>
        <InitialPos>CenteredScreen</InitialPos>
        <Controls>
            <Control xsi:type="StaticControl" Id="LblOptions">
                <Position Left="10" Top="0" Width="200" Height="20"/>
                <Color>
                    <Red>54</Red>
                    <Green>94</Green>
                    <Blue>145</Blue>
                </Color>
                <Font>
                    <Size>14</Size>
                </Font>
                <Caption>LblOptions</Caption>
            </Control>
            <Control xsi:type="CheckBoxControl" Id="ChkAutoUpd">
                <Position Left="10" Top="20" Width="180"/>
                <Caption>Automatically check for updates</Caption>
            </Control>
            <Control xsi:type="CheckBoxControl" Id="ChkSP">
                <Position Left="10" Top="30" Width="180"/>
                <Caption>I have StuffPlug (used for some extras)</Caption>
            </Control>
            <Control xsi:type="CheckBoxControl" Id="ChkNotif">
                <Position Left="10" Top="40" Width="180"/>
                <Caption>Receive notifications about my other work</Caption>
            </Control>
            <Control xsi:type="CheckBoxControl" Id="ChkSDev">
                <Position Left="10" Top="50" Width="180"/>
                <Caption>Register as developer</Caption>
            </Control>
            <Control xsi:type="StaticControl" Id="LblExtCommandPrefix">
                <Position Left="10" Top="60" Width="180"/>
                <Caption>External commands prefix:</Caption>
            </Control>
            <Control xsi:type="EditControl" Id="EdtExtCommandPrefix">
                <Position Left="10" Top="70" Width="20" Height="11"/>
            </Control>
            <Control xsi:type="LinkControl" Id="LnkLanguage">
                <Position Left="10" Top="86" Width="120" Height="11"/>
                <Caption>Choose language</Caption>
                <Attributes>
                    <UnderLine>WhenHot</UnderLine>
                </Attributes>
                <TextColor>
                    <Red>0</Red>
                    <Green>0</Green>
                    <Blue>255</Blue>
                </TextColor>
                <HotTextColor>
                    <Red>128</Red>
                    <Green>0</Green>
                    <Blue>255</Blue>
                </HotTextColor>
            </Control>
<Control xsi:type="ButtonControl" Id="BtnNextPage">
<Position Left="100" Top="70" Width="5" />
<Caption>&gt;</Caption>
</Control>
        </Controls>
        <ChildTmpl/>
    </Window>
</Interfaces>


EDIT:: ha that's the old version
RE: ButtonControl not showing up by tribbium on 07-29-2008 at 10:12 PM

The problem with your button control is that its width is too small (5px) and so they decide to not generate it at all (dunno why). If you go to 6, itll show up but the arrow is cut off. At 10, youll be able to see the whole arrow. I suggest you change the Width to 11, cuse the arrow will be visible and centered.


RE: ButtonControl not showing up by SmokingCookie on 07-30-2008 at 03:08 PM

Okay, thank you :)