A combobox that displays bitmap in front of the list items.
It currently only allows using bitmaps of one size, and resizes itself
so that a bitmap can be shown next to the text field.
While BitmapComboBox contains the ComboBox
API, but it might not actually be derived from that class. In fact,
if the platform does not have a native implementation, BitmapComboBox
will inherit from OwnerDrawnComboBox.
You can determine if the implementation is generic by checking whether
GENERIC_BITMAPCOMBOBOX is defined.
CB_READONLY |
Creates a combobox without a texteditor. On some platforms the control may appear very different when thisstyle is used. |
CB_SORT |
Sorts the entries in the list alphabetically. |
TE_PROCESS_ENTER |
The control will generatethe event EVT_COMMAND_TEXT_ENTER (otherwise pressing Enter keyis either processed internally by the control or used for navigation betweendialog controls). Windows only. |
See also window styles overview.
evt_combobox(id) { | event | … } | Process a EVT_COMMAND_COMBOBOX_SELECTED event,when an item on the list is selected. |
evt_text(id) { | event | … } | Process a EVT_COMMAND_TEXT_UPDATED event,when the combobox text changes. |
evt_text_enter(id) { | event | … } | Process a EVT_COMMAND_TEXT_ENTER event,when |
ComboBox, Choice, OwnerDrawnComboBox,
CommandEvent
Constructor, creating and showing a combobox.
BitmapComboBox#create, Validator
Creates the combobox for two-step construction. Derived classes
should call or replace this function. See BitmapComboBox.new for further details.
Adds the item to the end of the combo box.
Integer append(%(arg-type)String% item, Bitmap bitmap, Object item_data)Adds the item to the end of the combo box, associating the given item
data with the item. As with other controls with items,
any normal ruby object may be set as item data.
Returns size of bitmaps used in the list.
Returns the bitmap of the item with the given index.
Inserts the item into the list before pos. Not valid for CB_SORT
style, use append instead.
Inserts the item into the list before pos, associating the given item
data with the item. Not valid for CB_SORT
style, use
append instead.
Sets the bitmap for the given item.
[This page automatically generated from the Textile source at 2023-06-09 00:45:36 +0000]