ListBoxControl - 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: ListBoxControl (/showthread.php?tid=65912)
ListBoxControl by neohunter on 09-06-2006 at 04:48 PM
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
RE: ListBoxControl by Felu on 09-06-2006 at 05:29 PM
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 . Hope you understand from this. Try looking at other scripts with LstBoxControl and then use them as examples .
RE: ListBoxControl by neohunter on 09-06-2006 at 05:39 PM
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 =)
RE: ListBoxControl by Eljay on 09-06-2006 at 06:08 PM
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");
RE: ListBoxControl by CookieRevised on 09-06-2006 at 09:51 PM
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)
|