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

[?] Resizing a child window
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
O.P. Huh?  [?] Resizing a child window
Okay, as I now want to extend the GUI of Countdown Live, I would like to let the user resize the preferences window. Therefore, the child windows have to resize too... but they don't. This is what the XML looks like:
code:
In <Window Id="WndOptions">:
...
<Position Width="400" Height="275">
   <Resizeable Allowed="BothSides">
      <MinWidth>400</MinWidth>
      <MinHeight>275</MinHeight>
   </Resizeable>
</Position>
...
code:
In <Window Id="WndSettings">:
...
<ChildTmpl/>
<Position Width="291" Height="218">
   <Resizeable Allowed="BothSides">
      <MinWidth>291</MinWidth>
      <MinHeight>218</MinHeight>
   </Resizeable>
</Position>
...
<Elements>
   <Element xsi:type="FigureElement" Id="FigExample">
      <Position Top="88" Left="5" Height="40" Width="281">
         <Anchor Horizontal="LeftRightFixed" Vertical="BottomFixed"/>
      </Position>
      <Figure>
         <RoundRect><Radius>3</Radius></RoundRect>
      </Figure>
      <Border>
         <Color><GlobalColor>bg</GlobalColor></Color>
      </Border>
      <Fill>
         <PlainColor>
            <Red>255</Red>
            <Green>255</Green>
            <Blue>255</Blue>
            <Alpha>120</Alpha>
         </PlainColor>
      </Fill>
   </Element>
</Elements>
...
And this is how the result looks like:
[Image: attachment.php?pid=721115]
*containg = containing

For the full code, look on PasteBin.

Any ideas how to fix this?

.png File Attachment: cdl_resize.png (78.51 KB)
This file has been downloaded 313 time(s).

This post was edited on 08-29-2006 at 06:09 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-29-2006 03:43 PM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
O.P. RE: [?] Resizing a child window
[BUMP!]
Does anyone know? I really would like to let the user resize the window :(
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-29-2006 06:41 PM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
RE: [?] Resizing a child window
I think your code is the only way to do it,
if it doesn't work then i can't think of another way of doing it.
* Jimbo thinks that maybe more advanced scripters will be able to help you
08-29-2006 06:49 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
O.P. RE: [?] Resizing a child window
Damn, that's exactly what I thought. :(
It seems like my script doesn't want to work... could it be me? :P

Any ideas are more than welcome! :)

This post was edited on 08-29-2006 at 07:13 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-29-2006 07:13 PM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [?] Resizing a child window
In the XML where you are defining the size of the window (under "<ChildTmpl/>") you have width and height (this resizes the child window for you), just add left and top there and it will move the window into the position you want so it looks centred in the parent window, I am quite sure.  Sorry for not being overly confident on this one but I usually get Jay_Jay to do my windows :P and I don't have the scripting documentation at uni.  Have a look in the XML schema thing there (the bottom one all the way through) and if you have a look at the different adjustments you can make and compare them to what you have in your XML you should start to notice patterns and understand how the schema documentation is set out for future reference (don't worry it took me a while to understand too :P)

This post was edited on 08-29-2006 at 09:54 PM by markee.
[Image: markee.png]
08-29-2006 09:51 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
O.P. RE: [?] Resizing a child window
quote:
Originally posted by markee
In the XML where you are defining the size of the window (under "<ChildTmpl/>") you have width and height (this resizes the child window for you), just add left and top there and it will move the window into the position you want so it looks centred in the parent window, I am quite sure.  Sorry for not being overly confident on this one but I usually get Jay_Jay to do my windows :P and I don't have the scripting documentation at uni.  Have a look in the XML schema thing there (the bottom one all the way through) and if you have a look at the different adjustments you can make and compare them to what you have in your XML you should start to notice patterns and understand how the schema documentation is set out for future reference (don't worry it took me a while to understand too :P)
I don't want to place the whole child window in the center, but I want to anchor the elemens in the child to the sides of the parent. And therefore, I have to let the child window resize along with the parent. :-/
Anyone has other ideas? :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-30-2006 08:10 AM
Profile E-Mail PM Web 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