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

WinBinder Manual/wb set selected

Selects one or more items of a control.

Syntax

bool wb_set_selected (int control, mixed items [, bool selected])

  • selected is optional and it is set to TRUE by default.
  • The action taken depends on the class of control; see the following table.
Class of control Action
ComboBoxSelects the specified item.
ListBoxSelects the specified item.
ListViewAdds or removes the specified items from the current selection. ¹
MenuSelects the specified menu item and unselects all other items in the menu. ¹
TabControlChanges the current tab to the specified one.
TreeViewChanges the selected node to the specified node.
¹ Compare with <winterpostwiki>wb_set_value</winterpostwiki>().

Returns

Returns TRUE on success or FALSE if an error occurs.

See also

Winbinder Projects