Home | All Classes | Grouped Classes | Index | Search

CL_ListBox::set_selected

Selects item at index if select is true, or unselects it if select is false.

	void set_selected(
		int index, bool select);

Detailed description:

If the listbox is a single-selection listbox and and select is true, set_current_item() is called. If the listbox is a single-selection listbox and and select is false, clear_selection() is called if index is the currently selected item.

See also:

CL_ListBox



Questions or comments, write to the ClanLib mailing list.