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

Pages: (2): « First [ 1 ] 2 » Last »
[Help] Resizing Windows
Author: Message:
rob_botch
Full Member
***

Avatar

Posts: 180
Reputation: 4
33 / Male / Flag
Joined: Apr 2006
O.P. [Help] Resizing Windows
I have been recommended to allow the window of my script to be resized. How would I go about doing this? I presume that there is a tag in the xml file.


Any help would be much appreciated.
06-30-2006 02:58 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: [Help] Resizing Windows
The schema doesn't seem to allow resizeable windows...

Edit: After more careful examination, yes it does :$

This post was edited on 06-30-2006 at 08:08 PM by RaceProUK.
[Image: spartaafk.png]
06-30-2006 04:01 PM
Profile PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [Help] Resizing Windows
code:
<Position Width="200" Height="370">       
    <Resizeable Allowed="BothSides">
        <MinWidth>200</MinWidth>
        <MinHeight>370</MinHeight>
    </Resizeable>
</Position>

as a sub element of <Window>
06-30-2006 04:28 PM
Profile PM Find Quote Report
rob_botch
Full Member
***

Avatar

Posts: 180
Reputation: 4
33 / Male / Flag
Joined: Apr 2006
O.P. RE: [Help] Resizing Windows
Thank you for your help. One more question, though, if I may. How would I get the controls in the window to resize or move with the main window?

Thank you again,
06-30-2006 05:55 PM
Profile E-Mail PM Web Find Quote Report
ramik
Junior Member
**


Posts: 34
– / Male / –
Joined: Nov 2003
RE: [Help] Resizing Windows
yep, nice question rob_botch.... i want to be able to resize the window i made... waiting for an answer.

there should be (in future relase if not now) some events for window OnEventWindowIdResize(oldsize, new size)
and a way to resize elements in scripts, it will be great.
06-30-2006 06:26 PM
Profile PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [Help] Resizing Windows
example of auto resizing element:
code:
<Element xsi:type="LineElement" Id="BottomLine">
    <Position Top="313" Left="1" Width="188" Height="0">
        <Anchor Horizontal="LeftRightFixed" />
    </Position>
    <Color>
        <GlobalColor>label</GlobalColor>
    </Color>
</Element>

options for Anchor:
Horizontal
-LeftFixed
-RightFixed
-LeftRightFixed
Vertical
-TopFixed
-BottomFixed
-TopBottomFixed
06-30-2006 08:12 PM
Profile PM Find Quote Report
rob_botch
Full Member
***

Avatar

Posts: 180
Reputation: 4
33 / Male / Flag
Joined: Apr 2006
O.P. RE: [Help] Resizing Windows
Thank you for your help. This code works perfectly for me for horizontal stretching, but the vertical element does not apear to work. Is the syntax the same? As in:

code:
<Anchor Vertical="TopBottomFixed" />

Thank you,


Edit: Sorted now, Thanks!

This post was edited on 07-01-2006 at 07:41 AM by rob_botch.
07-01-2006 07:30 AM
Profile E-Mail PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [Help] Resizing Windows
yes thats the right syntax, ive tested it here and it works fine

example:
you have a window with width 100 and height 200, and an element that is 20 dlg units away from all sides

code:
<Window Id="TestWnd" Version="1">
    <WindowTmpl />
    <Position Height="200" Width="100">
        <Resizeable Allowed="BothSides">
            <MinWidth>100</MinWidth>
            <MinHeight>200</MinHeight>
        </Resizeable>
    </Position>
    <Elements>
        <Element xsi:type="FigureElement" Id="Background">
            <Position Top="20" Left="20" Width="60" Height="160">
                <Anchor Horizontal="LeftRightFixed" Vertical="TopBottomFixed" />
            </Position>
            <Figure><Rectangle /></Figure>
            <Fill><PlainColor><BaseColor/></PlainColor></Fill>
       </Element>
    </Elements>
</Window>


when this window is resized it will always be 20 dlg units away from all sides.

This post was edited on 07-01-2006 at 07:56 AM by Eljay.
07-01-2006 07:55 AM
Profile PM Find Quote Report
rob_botch
Full Member
***

Avatar

Posts: 180
Reputation: 4
33 / Male / Flag
Joined: Apr 2006
O.P. RE: [Help] Resizing Windows
Thank you, yes it works for me too, now. I was being stupid and putting the Horizontal and Vertical components in separate tags! :P


Thank you for your help.
07-01-2006 07:57 AM
Profile E-Mail PM Web Find Quote Report
ramik
Junior Member
**


Posts: 34
– / Male / –
Joined: Nov 2003
RE: [Help] Resizing Windows
There is a bug in the resize algorithm:
if I set to resize only in vertical, it doesn't work unless I put minWidth too...

This post was edited on 07-01-2006 at 11:56 AM by ramik.
07-01-2006 11:54 AM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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