What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » ButtonControl not showing up

ButtonControl not showing up
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. ButtonControl not showing up
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>


07-29-2008 08:09 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: ButtonControl not showing up
Does the window show up? Specify a height ( Width="20" Height="20" ) ?

What is the xml code for the Window?

This post was edited on 07-29-2008 at 09:10 PM by matty.
07-29-2008 09:09 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: ButtonControl not showing up
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

This post was edited on 07-29-2008 at 09:19 PM by SmokingCookie.
07-29-2008 09:16 PM
Profile PM Find Quote Report
tribbium
Junior Member
**


Posts: 34
Reputation: 3
– / Male / Flag
Joined: Jul 2008
RE: ButtonControl not showing up
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.
Are you and your friends trivia enthusiasts? Download Tribbium! http://www.msgpluslive.net/scripts/view/427-Tribb...ia-Gaming-System)/

Download questions for Tribbium here:
http://www.tribbium.tk
07-29-2008 10:12 PM
Profile E-Mail PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: ButtonControl not showing up
Okay, thank you :)
07-30-2008 03:08 PM
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