Public Member Functions | |
this (Dialog parent, int id) | |
Constructs a ComboBox object to interface a given combo box control. | |
this (WindowBase parent, int id, string text, Rect position) | |
Constructs a combo box to be created at runtime. | |
override int | add (cstring s) |
Adds an item to the end of this list, or in its sorted position if the combo box has the CBS.SORT style. | |
override int | add (int index, cstring s) |
Inserts an item at the given position. | |
override int | remove (int index) |
Removes the item at the given position. | |
override int | find (cstring s, int startAfter=-1, bool beginsWith=false) |
Finds an item in the combo box. | |
override void | removeAll () |
Removes all items from the list of this combo box, and clears the edit portion. | |
override string | item (int index) |
Gets text of an item in the combo box. | |
override int | findAndSelect (cstring s, int startAfter=-1) |
Finds an item in the combo box beginning with a given string, and selects it. | |
Public Properties | |
override int | length () |
The number of items in this combo box. | |
override int | selected () |
The zero-based index of the currently selected item. | |
override int | selected (int index) |
The zero-based index of the currently selected item. | |
override int | scrollPosition () |
The zero-based index of the uppermost visible item in the list. | |
override int | scrollPosition (int pos) |
The zero-based index of the uppermost visible item in the list. | |
bool | droppedDown () |
Whether the list portion of the combo box is visible at the moment. | |
bool | droppedDown (bool d) |
Whether the list portion of the combo box is visible at the moment. | |
int | dropDownWidth () |
The minimum width, in pixels, of the drop-down list. | |
int | dropDownWidth (int w) |
The minimum width, in pixels, of the drop-down list. | |
bool | extendedUI () |
Whether this combo box uses the so-called 'extended UI'. | |
bool | extendedUI (bool e) |
Whether this combo box uses the so-called 'extended UI'. | |
uint | maxLength (uint len) |
The maximum number of characters that may be entered the edit portion of this combo box. | |
uint | maxLength () |
The maximum number of characters that may be entered the edit portion of this combo box. | |
Public Attributes | |
mixin | EditOperations |
smjg.libs.sdwf.control.ComboBox.this | ( | Dialog | parent, | |
int | id | |||
) |
Constructs a ComboBox object to interface a given combo box control.
Reimplemented from smjg.libs.sdwf.control.ListBox.
smjg.libs.sdwf.control.ComboBox.this | ( | WindowBase | parent, | |
int | id, | |||
string | text, | |||
Rect | position | |||
) |
Constructs a combo box to be created at runtime.
parent | the window or dialog on which the combo box will be placed. | |
id | numeric ID that the combo box will have. | |
text | the text that will initially be placed in the combo box's edit portion. | |
position | the position on the parent window where the combo box will be placed. The height of the rectangle will be the combined height of the combo box's edit and list portions. |
override int smjg.libs.sdwf.control.ComboBox.add | ( | cstring | s | ) |
Adds an item to the end of this list, or in its sorted position if the combo box has the CBS.SORT
style.
s | text of item to add. |
Reimplemented from smjg.libs.sdwf.control.ListBox.
override int smjg.libs.sdwf.control.ComboBox.add | ( | int | index, | |
cstring | s | |||
) |
Inserts an item at the given position.
Unlike the add(string)
form, this method ignores the CBS.SORT
style.
index | zero-based index at which to add item, or -1 to add to the end of the list. | |
s | text of item to add. |
Reimplemented from smjg.libs.sdwf.control.ListBox.
override int smjg.libs.sdwf.control.ComboBox.remove | ( | int | index | ) |
Removes the item at the given position.
index | zero-based index of item to remove from the list. |
Reimplemented from smjg.libs.sdwf.control.ListBox.
override int smjg.libs.sdwf.control.ComboBox.find | ( | cstring | s, | |
int | startAfter = -1 , |
|||
bool | beginsWith = false | |||
) |
Finds an item in the combo box.
s | string to match. | |
startAfter | zero-based index of item after which to start the search, or -1 to start at the beginning. | |
beginsWith | whether to look for an item merely beginning with s , as opposed to an exact match. |
-1 | if no matching item was found. |
Reimplemented from smjg.libs.sdwf.control.ListBox.
override void smjg.libs.sdwf.control.ComboBox.removeAll | ( | ) |
Removes all items from the list of this combo box, and clears the edit portion.
Reimplemented from smjg.libs.sdwf.control.ListBox.
override string smjg.libs.sdwf.control.ComboBox.item | ( | int | index | ) |
Gets text of an item in the combo box.
index | zero-based index of item to inspect. |
Reimplemented from smjg.libs.sdwf.control.ListBox.
override int smjg.libs.sdwf.control.ComboBox.findAndSelect | ( | cstring | s, | |
int | startAfter = -1 | |||
) |
Finds an item in the combo box beginning with a given string, and selects it.
s | string to match. | |
startAfter | zero-based index of item after which to start the search, or -1 to start at the beginning. |
-1 | if no matching item was found. |
Reimplemented from smjg.libs.sdwf.control.ListBox.
override int smjg.libs.sdwf.control.ComboBox.length | ( | ) |
The number of items in this combo box.
Reimplemented from smjg.libs.sdwf.control.ListBox.
override int smjg.libs.sdwf.control.ComboBox.selected | ( | ) |
The zero-based index of the currently selected item.
A value of -1 denotes that no item is selected.
Reimplemented from smjg.libs.sdwf.control.ListBox.
override int smjg.libs.sdwf.control.ComboBox.selected | ( | int | index | ) |
The zero-based index of the currently selected item.
A value of -1 denotes that no item is selected.
Reimplemented from smjg.libs.sdwf.control.ListBox.
override int smjg.libs.sdwf.control.ComboBox.scrollPosition | ( | ) |
The zero-based index of the uppermost visible item in the list.
Reimplemented from smjg.libs.sdwf.control.ListBox.
override int smjg.libs.sdwf.control.ComboBox.scrollPosition | ( | int | pos | ) |
The zero-based index of the uppermost visible item in the list.
If set to an index that would scroll the list beyond the last item, it scrolls to the end of the list.
Reimplemented from smjg.libs.sdwf.control.ListBox.
bool smjg.libs.sdwf.control.ComboBox.droppedDown | ( | ) |
Whether the list portion of the combo box is visible at the moment.
bool smjg.libs.sdwf.control.ComboBox.droppedDown | ( | bool | d | ) |
Whether the list portion of the combo box is visible at the moment.
int smjg.libs.sdwf.control.ComboBox.dropDownWidth | ( | ) |
The minimum width, in pixels, of the drop-down list.
int smjg.libs.sdwf.control.ComboBox.dropDownWidth | ( | int | w | ) |
The minimum width, in pixels, of the drop-down list.
bool smjg.libs.sdwf.control.ComboBox.extendedUI | ( | ) |
Whether this combo box uses the so-called 'extended UI'.
This has an effect only on drop-down combo boxes (CBS_DROPDOWN
and CBS_DROPDOWNLIST
styles).
false
default UI - Up/Down arrows select item, Alt+Down opens drop-down. true
extended UI - Down arrow opens drop-down.bool smjg.libs.sdwf.control.ComboBox.extendedUI | ( | bool | e | ) |
Whether this combo box uses the so-called 'extended UI'.
This has an effect only on drop-down combo boxes (CBS_DROPDOWN
and CBS_DROPDOWNLIST
styles).
false
default UI - Up/Down arrows select item, Alt+Down opens drop-down. true
extended UI - Down arrow opens drop-down.uint smjg.libs.sdwf.control.ComboBox.maxLength | ( | uint | len | ) |
The maximum number of characters that may be entered the edit portion of this combo box.
uint smjg.libs.sdwf.control.ComboBox.maxLength | ( | ) |
The maximum number of characters that may be entered the edit portion of this combo box.