Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/wb get selected

Returns the selected state of one or more items

Syntax

mixed wb_get_selected (int wbobject)

Returns

Returns a value or array with the indices or identifiers of the selected elements or items in wbobject, depending on class.

Class What it retrieves
ComboBoxThe index of the currently selected item.
ListBoxThe index of the currently selected item.
ListViewAn array with the indices of the selected items. ¹
TabControlThe index of the selected tab page.
TreeViewThe handle of the currently selected node.
Window0 (zero).
Other controls 0 (zero).
¹ Compare with <winterpostwiki>wb_get_value</winterpostwiki>().

See also

Winbinder Projects