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

LstViewControl
Author: Message:
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. LstViewControl
Hi.
I have made a LstViewControl wich contains three columns.
I'll try to find the right size of the LstViewControl and the columns, but when i adjust the size it "push" the columns, it mades them bigger.
I can't avoid the bottomscroller.

The meaning is that you can see all three columns without scroll.

Heres a picture of how it looks now:
[Image: lstviewcontrol.gif]

code:
        <Control xsi:type="ListViewControl" Id="liste">
            <Position Top="17" Left="5" Width="300" Height="130">
                <Anchor Horizontal="LeftRightFixed" Vertical="TopBottomFixed"/>
            </Position>

            <Attributes>
                <AutoTip>true</AutoTip>
                <AlwaysShowSelection>false</AlwaysShowSelection>
            </Attributes>

            <ReportView>
                <HeaderDragDrop>true</HeaderDragDrop>
                <HasCheckboxes>false</HasCheckboxes>
                <SortColHeader>true</SortColHeader>
            </ReportView>

            <Columns>
                <Column>
                    <ColumnId>Kunstner</ColumnId>
                    <Label>Kunstner</Label>
                    <Width>50</Width>
                </Column>
                <Column>
                    <ColumnId>Nummer</ColumnId>
                    <Label>Nummer</Label>
                    <Width>50</Width>
                </Column>
                <Column>
                    <ColumnId>Album</ColumnId>
                    <Label>Album</Label>
                    <Width>50</Width>
                </Column>
            </Columns>
        </Control>

Thanks in advance.
11-29-2006 07:03 PM
Profile E-Mail PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: LstViewControl
The column width attribute is (by default) in percentages not in pixels/dialog units.
11-29-2006 07:11 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: LstViewControl
As far as I know, the Width accepts an integer indicating the column width in percent, so when you use 3 times 50, you have a total of 150, hence the scrollbar. I recommend you to use something like 33 or 30, so everything will fit nicely in it. ;)

However, if you want the columns to be 50 pixels wide instead of 50 percent, you can add the WidthFormat attribute to the Columns element, like this:
code:
<Columns WidthFormat="Absolute">
...
</Columns>
so all widths will be interpreted as absolute.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-29-2006 07:15 PM
Profile E-Mail PM Web Find Quote Report
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: LstViewControl
Hi.
Ohh thanks for the quickly respons!
It works! I didn't knew that it was percent ;-)

Many thanks!

This post was edited on 11-29-2006 at 07:23 PM by SnuZZer.
11-29-2006 07:20 PM
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