wListBox

A listbox is used to select one or more of a list of strings.

Appearance:
Superclass:wControl
Styles:
StylesDescription
wLbSingleSingle-selection list.
wLbMultipleMultiple-selection list.
wLbExtendedExtended-selection list: the user can extend the selection by using SHIFT or CTRL keys together with the cursor movement keys or the mouse.
wLbNeededScrollOnly create a vertical scrollbar if needed.
wLbAlwaysScrollAlways show a vertical scrollbar.
wLbSortThe listbox contents are sorted in alphabetical order.
wLbNoSelSpecifies that the list box contains items that can be viewed but not selected.
Events:wCommandEvent
wCommandEventDescription
wEvent_ListBoxWhen an item on the list is selected or the selection changes.
wEvent_ListBoxDoubleClickWhen the listbox is double-clicked.

Consts

wLbSingle = 0
wLbMultiple = 0x00000008
wLbExtended = 0x00000800
wLbNeededScroll = 0x00200000
wLbAlwaysScroll = 2101248
wLbSort = 0x00000002
wLbNoSel = 0x00004000

Procs

proc select(self: wListBox; text: string) {...}{.raises: [], tags: [].}
Searches and selects an item in the list box.
proc deselect(self: wListBox; text: string) {...}{.raises: [], tags: [].}
Searches and deselects an item in the list box.