Shoutbox

Line/Separator - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Line/Separator (/showthread.php?tid=61386)

Line/Separator by mathieumg on 06-25-2006 at 07:04 PM

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>


RE: Line/Separator by matty on 06-25-2006 at 07:15 PM

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 ;)
RE: Line/Separator by mathieumg on 06-25-2006 at 07:25 PM

Thank you :)


RE: Line/Separator by Skyler0 on 06-25-2006 at 07:30 PM

Just out of curiousity, what is that for?


RE: RE: Line/Separator by alexp2_ad on 06-25-2006 at 07:34 PM

quote:
Originally posted by Skyler0
Just out of curiousity, what is that for?

Adding a vertical line to a window in a plus script.
RE: Line/Separator by mathieumg on 06-21-2009 at 01:35 AM

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.
RE: Line/Separator by Matti on 06-21-2009 at 08:23 AM

Good thing you have figured it out yourself, and thanks for sharing your solution! :)