Struct winsafe::gui::spec::ComboBoxItems [−][src]
pub struct ComboBoxItems<'a> { /* fields omitted */ }
Expand description
Exposes item methods of a ComboBox
control.
You cannot directly instantiate this object, it is created internally by the control.
Implementations
Adds new texts by sending cb::AddString
messages.
Examples
ⓘ
use winsafe::ComboBox;
let cmb_names: ComboBox; // initialized somewhere
cmb_names.items().add(&["John", "Mary"]);
Retrieves the number of items by sending a
cb::GetCount
message.
Deletes the item at the given index by sending a
cb::DeleteString
message.
Deletes all items by sending a
cb::ResetContent
message.
Retrieves the index of the currently selected item, if any, by sending a
cb::GetCurSel
message.
Retrieves the currently selected text, if any, by calling
selected_index
and
text
methods.
Sets the currently selected index, or clears it, by sending a
cb::SetCurSel
message.