What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » A simple question about scripts^^

A simple question about scripts^^
Author: Message:
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: RE: A simple question about scripts^^
quote:
Originally posted by Light86
code:
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <Window Id="WndTest" Version="1">
            <Attributes>
                <Caption>Test Window</Caption>
            </Attributes>

            <TitleBar>
                <Title><Text>Hello!</Text></Title>
            </TitleBar>

            <Position Width="180" Height="75"/>
            <DialogTmpl/>

            <Controls>
                <Control xsi:type="StaticControl" Id="LblTop">
                    <Position Left="10" Top="10" Width="150"/>
                    <Caption>Hello world!</Caption>
                </Control>
             
              <Element xsi:type="ImageElement" Id="MyImage">
              <Position Top="1" Left="1"/>
               <Image><Name>Dark.jpg</Name></Image>
                </Element>


                <Control xsi:type="ButtonControl" Id="BtnClose">
                    <Position Left="112" Top="25" Width="50"/>
                    <Caption>Close</Caption>
                </Control>
            </Controls>
        </Window>

    </Interfaces>

Something still doesn't work...1 don't know very well the xml8-)
Anyway 1 didn't c anything like "how to put an image in a window" in the script documentation...

In the <elements> tag, not the controls tag.. The XML should be like this:
code:
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <Window Id="WndTest" Version="1">
            <Attributes>
                <Caption>Test Window</Caption>
            </Attributes>

            <TitleBar>
                <Title><Text>Hello!</Text></Title>
            </TitleBar>

            <Position Width="180" Height="75"/>
            <DialogTmpl/>

            <Elements>
                     <Element xsi:type="ImageElement" Id="MyImage">
                                <Position Top="1" Left="1"/>
                                <Image><Name>Dark.jpg</Name></Image>
                     </Element>
             </Elements>
            <Controls>
                <Control xsi:type="StaticControl" Id="LblTop">
                    <Position Left="10" Top="10" Width="150"/>
                    <Caption>Hello world!</Caption>
                </Control>
             
                <Control xsi:type="ButtonControl" Id="BtnClose">
                    <Position Left="112" Top="25" Width="50"/>
                    <Caption>Close</Caption>
                </Control>
            </Controls>
        </Window>

    </Interfaces>
I suggest you to learn XML, it will help you a lot. If this still doesn't work, try converting Dark.jpg to Dark.png, and just enter:
code:
<Image><Name>Dark</Name></Image>
4 8 15 16 23 42
04-26-2007 06:17 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
A simple question about scripts^^ - by Light86 on 04-24-2007 at 08:56 PM
RE: A simple question about scripts^^ - by matty on 04-24-2007 at 10:08 PM
RE: A simple question about scripts^^ - by deAd on 04-24-2007 at 10:13 PM
RE: A simple question about scripts^^ - by Light86 on 04-25-2007 at 10:44 AM
RE: A simple question about scripts^^ - by Supersonicdarky on 04-25-2007 at 11:16 AM
RE: A simple question about scripts^^ - by Light86 on 04-25-2007 at 11:58 AM
RE: A simple question about scripts^^ - by Volv on 04-25-2007 at 12:31 PM
RE: A simple question about scripts^^ - by Light86 on 04-25-2007 at 02:13 PM
RE: A simple question about scripts^^ - by Spunky on 04-26-2007 at 02:26 PM
RE: A simple question about scripts^^ - by Light86 on 04-26-2007 at 03:06 PM
RE: A simple question about scripts^^ - by foaly on 04-26-2007 at 03:17 PM
RE: A simple question about scripts^^ - by Light86 on 04-26-2007 at 04:49 PM
RE: A simple question about scripts^^ - by vikke on 04-26-2007 at 05:00 PM
RE: A simple question about scripts^^ - by Light86 on 04-26-2007 at 05:23 PM
RE: A simple question about scripts^^ - by vikke on 04-26-2007 at 05:35 PM
RE: A simple question about scripts^^ - by Light86 on 04-26-2007 at 05:51 PM
RE: RE: A simple question about scripts^^ - by vikke on 04-26-2007 at 06:17 PM
RE: A simple question about scripts^^ - by Light86 on 04-26-2007 at 06:33 PM
RE: A simple question about scripts^^ - by Volv on 04-27-2007 at 07:16 AM


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