What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HELP - Resizing a child window!

HELP - Resizing a child window!
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. HELP - Resizing a child window!
This is basically a script which gives you a "command bar" (sort of like a floating deskbar), with various commands.

xml code:
<!-- the parent window -->

<Window Id="WndCommandBar_Shell" Version="1">

    <Attributes>
        <Caption>Command Bar</Caption>
        <TopMost>true</TopMost>
        <ShowInTaskbar>false</ShowInTaskbar>
    </Attributes>
   
    <TitleBar>
        <AllowMinimize>false</AllowMinimize>
        <AllowClose>false</AllowClose>
    </TitleBar>
   
    <Position Width="188" Height="28">
        <IsAbsolute>true</IsAbsolute>
        <Resizeable Allowed="BothSides">
            <MinWidth>150</MinWidth>
            <MinHeight>28</MinHeight>
        </Resizeable>
    </Position>
   
    <WindowTmpl>
        <Borders Type="Simple"/>
    </WindowTmpl>

</Window>
xml code:
<!-- the child window -->

<Window Id="WndCommandBar_CMain" Version="1">

    <Position Width="188" Height="28">
        <IsAbsolute>true</IsAbsolute>
        <Resizeable Allowed="BothSides">
            <MinWidth>150</MinWidth>
            <MinHeight>28</MinHeight>
        </Resizeable>
    </Position>
   
    <ChildTmpl/>
   
    <Controls>
        <Control xsi:type="ButtonControl" Id="BtnCommands">
            <Position Left="10" Top="0" Width="24">
                <Units>AllPixels</Units>
                <Anchor Vertical="TopBottomFixed"/>
            </Position>
            <Image><Name>Options</Name></Image>
            <Help>Some useful preset commands.</Help>
            <StandardLook Template="Clear"/>
        </Control>
        <Control xsi:type="ButtonControl" Id="BtnContacts">
            <Position Left="35" Top="0" Width="24">
                <Units>AllPixels</Units>
                <Anchor Vertical="TopBottomFixed"/>
            </Position>
            <Image><Name>Contacts</Name></Image>
            <Help>Your Messenger contacts.</Help>
            <StandardLook Template="Clear"/>
        </Control>
        <Control xsi:type="EditControl" Id="EdtCmd">
            <Position Left="60" Top="0" Width="99" Height="24">
                <Units>AllPixels</Units>
                <Anchor Horizontal="LeftRightFixed" Vertical="TopBottomFixed"/>
            </Position>
            <Help>Type a command here...</Help>
        </Control>
        <Control xsi:type="ButtonControl" Id="BtnOk">
            <Position Left="160" Top="0" Width="24">
                <Units>AllPixels</Units>
                <Anchor Horizontal="RightFixed" Vertical="TopBottomFixed"/>
            </Position>
            <Attributes>
                <IsDefault>true</IsDefault>
            </Attributes>
            <Image><Name>Tick</Name></Image>
            <Help>Click to process the command, or press Enter.</Help>
            <StandardLook Template="Clear"/>
        </Control>
    </Controls>

</Window>
And that builds it fine, but I want to make it resizable, and when it is resized, only the parent changes.  How do I go about making the child resize with the parent?
09-12-2009 01:28 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HELP - Resizing a child window! - by whiz on 09-12-2009 at 01:28 PM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-12-2009 at 02:24 PM
RE: HELP - Resizing a child window! - by whiz on 09-12-2009 at 02:35 PM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-12-2009 at 02:49 PM
RE: HELP - Resizing a child window! - by whiz on 09-12-2009 at 03:09 PM
RE: HELP - Resizing a child window! - by Matti on 09-12-2009 at 03:32 PM
RE: HELP - Resizing a child window! - by whiz on 09-13-2009 at 09:59 AM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-12-2009 at 03:33 PM
RE: HELP - Resizing a child window! - by Matti on 09-12-2009 at 03:42 PM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-12-2009 at 03:46 PM
RE: HELP - Resizing a child window! - by Matti on 09-13-2009 at 10:10 AM
RE: HELP - Resizing a child window! - by whiz on 09-13-2009 at 10:33 AM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-14-2009 at 07:39 AM
RE: HELP - Resizing a child window! - by whiz on 09-14-2009 at 03:55 PM
RE: HELP - Resizing a child window! - by Matti on 09-14-2009 at 05:20 PM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-14-2009 at 05:20 PM
RE: HELP - Resizing a child window! - by whiz on 09-14-2009 at 05:58 PM


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