What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Line/Separator

Line/Separator
Author: Message:
mathieumg
Full Member
***


Posts: 181
Reputation: 2
34 / Male / Flag
Joined: May 2004
O.P. Line/Separator
I read the whole documentation yesterday but I'm not sure anymore if there is a line control available for the scripts.

There is a Line object but its not a Control, that is why the following code does not work. Will I be forced to use an image to display a line?

code:
<Control xsi:type="LineChunk">
     <X1>70</X1>
     <Y1>280</Y1>
     <X2>70</X2>
     <Y2>300</Y2>
</Control>

Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
06-25-2006 07:04 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Line/Separator
code:
        <Elements>
            <Element xsi:type="LineElement" Id="LnVerticalLine">
                <Position Top="0" Left="96" Width="0" Height="210">
                    <Anchor Horizontal="LeftRightFixed"/>
                </Position>
                <Size>1</Size>
                <Color><Red>195</Red><Green>195</Green><Blue>195</Blue></Color>
            </Element>               
        </Elements>

Wrong element ;)
06-25-2006 07:15 PM
Profile E-Mail PM Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
34 / Male / Flag
Joined: May 2004
O.P. RE: Line/Separator
Thank you :)
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
06-25-2006 07:25 PM
Profile E-Mail PM Web Find Quote Report
Skyler0
Junior Member
**


Posts: 18
– / Male / –
Joined: Jun 2006
RE: Line/Separator
Just out of curiousity, what is that for?
06-25-2006 07:30 PM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: RE: Line/Separator
quote:
Originally posted by Skyler0
Just out of curiousity, what is that for?

Adding a vertical line to a window in a plus script.
06-25-2006 07:34 PM
Profile E-Mail PM Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
34 / Male / Flag
Joined: May 2004
O.P. RE: Line/Separator
I realize I am reviving a very old thread of mine, but I have an issue with this very line at the moment.

I am using a BottomBar element to place my buttons, I have 6 buttons in the LeftControls and 1 button in the RightControls. I want to place this vertical line in-between the 3rd and 4th buttons of the LeftControls.

The problem is that the above code is an Element, and I believe LeftControls will only accept Control objects. Moreover, when resizing the window vertically, the vertical line will not move and when resizing the window horizontally, only the bottom of the line will move creating a slope, which is not the goal at all here.

I have tried some properties:

XML code:
        <Elements>
            <Element xsi:type="LineElement" Id="LnVerticalLine">
                <Position Top="280" Left="175" Width="0" Height="15">
                    <Anchor Horizontal="LeftRightFixed" Vertical="TopBottomFixed" />
                </Position>
                <Attributes>
                    <StartCap>Flat</StartCap>
                    <EndCap>Flat</EndCap>
                </Attributes>
                <Size>1</Size>
                <Color><Red>195</Red><Green>195</Green><Blue>195</Blue></Color>
            </Element>                
        </Elements>


Without success. I would need help with these two problems.

Thank you in advance.

Edit:

I have managed to fix the second slope/vertical issue by using this instead:

XML code:
<Anchor Horizontal="LeftFixed" Vertical="BottomFixed" />


This was my bad. I still require help regarding the BottomBar however. I think the element could be placed independently of the BottomBar, but for it to work I would need to find a way to make more space in-between the 3rd and 4th buttons but the Left attribute doesn't work for controls in the BottomBar :( Any point of view on this is welcome. Thanks again.
Well, nevermind all this haha. I thought Margin was an attribute of LeftControls while it actually is a child that you can reuse as much as you want inbetween controls. Exactly what I was looking for.

This post was edited on 06-21-2009 at 01:49 AM by mathieumg.
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
06-21-2009 01:35 AM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: Line/Separator
Good thing you have figured it out yourself, and thanks for sharing your solution! :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
06-21-2009 08:23 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