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

ListBoxControl
Author: Message:
neohunter
Junior Member
**


Posts: 38
Joined: Aug 2006
O.P. ListBoxControl
Hi! i want to create a listbox but i just cant do it!!!

i read the documentation and try adding this

<Control xsi:type="ListBoxControl" Id="Lblserver" Enabled="1" Visible="1">
                <Position Left="20" Top="80" Width="90"/>
         <Caption>Service:</Caption>
</Control>

but just dont know how to put the options!! please help meeeee eaaaargg
09-06-2006 04:48 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: ListBoxControl
code:
            <Control xsi:type="ListViewControl" Id="LstContact">
                <Position Top="30" Width="370" Left="10" Height="110">
                    <Anchor Horizontal="LeftRightFixed" Vertical="TopBottomFixed"/>
                </Position>
                <Attributes>
                    <AutoTip>true</AutoTip>
                    <AlwaysShowSelection>false</AlwaysShowSelection>
                </Attributes>
                <ReportView>
                    <HeaderDragDrop>true</HeaderDragDrop>
                    <HasCheckboxes>false</HasCheckboxes>
                </ReportView>
                <Columns>
                    <Column>
                        <ColumnId>ColCount</ColumnId>
                        <Label>Count</Label>
                        <Width>11</Width>
                    </Column>
                    <Column>
                        <ColumnId>ColSong</ColumnId>
                        <Label>Song Name</Label>
                        <Width>40</Width>
                    </Column>
                    <Column>
                        <ColumnId>ColArtist</ColumnId>
                        <Label>Artist</Label>
                        <Width>40</Width>
                    </Column>
                </Columns>
            </Control>

An example of what i did for the Music Logger Plus! script :p. Hope you understand from this. Try looking at other scripts with LstBoxControl and then use them as examples [Image: msn_wink.gif].
09-06-2006 05:29 PM
Profile E-Mail PM Web Find Quote Report
neohunter
Junior Member
**


Posts: 38
Joined: Aug 2006
O.P. RE: ListBoxControl
mmm thanks for your reply.. i understand it and try it.. but now is what i looking for...

i do this on HTML

<select size="1" name="D1">
    <option>option1</option>
    <option>option2</option>
</select>

im sorry cause i dont speak english i dont know if it is a listbox.. or what.. but just put it on a html and tell me please how to put somethink like this on Messenger Plus =)
09-06-2006 05:39 PM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: ListBoxControl
It appears what you want is a ComboBoxControl, heres some example xml:
code:
<Control xsi:type="ComboBoxControl" Id="ComboExample">
  <Position Left="20" Top="80" Width="90" />
</Control>

And to add items to it with JScript:
(where WindowObject is the window returned from MsgPlus.CreateWnd())
code:
WindowObject.Combo_AddItem("ComboExample", "Example combo item");

This post was edited on 09-06-2006 at 06:12 PM by Eljay.
09-06-2006 06:08 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: ListBoxControl
To set some things strait:

A listbox is not a listview (and vice versa). What Felu has showed is a ListView control, not a ListBox control.

Setting up controls is all the same though, only some have different attributes and all. Everything, including examples can be found in the Official Scripting Documentation > XML schemas reference > interface windows > ...
And of course in other scripts...

An example of a ListBox control can be found in the Plus! Preferences > General > Main > Change Language.
An example of a ListView control can be found in the Plus! Sound Library.

As you can see a ListView can be shown in different modes. The right hand side window in Windows Explorer is a nice example of this. That too is a ListView and you can select how you want to see your files: small icons, large icons, as a list, as tiles, etc... all that is possible with a ListView control.

A ListBox can only be a simple list, nothing more.

(So it also speaks for its own that a ListBox also uses far less memory and is far easier to set up and control than a ListView control)

This post was edited on 09-06-2006 at 09:54 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-06-2006 09:51 PM
Profile PM 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