F O R · R E A L L Y · T H I N · C L I E N T S
 Home  |  Overview  |  Widgets  |  Demo  |  License  |  History 

» Component
» Label
» Button
» CheckBox
» ComboBox
» TextField
» PasswordField
» TextArea
» TabbedPane
» Panel
» Desktop
» Dialog
» SpinBox
» ProgressBar
» Slider
» SplitPane
» List
» Table
» Tree
» Separator
» MenuBar

ComboBox
ComboBox is a combination of a text field and drop-down list. This example has a default value, two choices, and it is editable.
<combobox text="ComboBox">
  <choice text="Choice" icon="image.gif" />
  <choice text="Disabled" enabled="false" />
</combobox>

Parameters
NameTypeDefaultDescription
iconiconnull The icon image that the combobox displays.
actionmethodnull Invokes the given method when there was change in the text or a new choice was selected.
selectedinteger-1 The index of the currently selected choice, value -1 indicates a custom edited value in an editable box.
text, columns, and editable parameters are described at textfield
name, enabled, visible, tooltip, width, height, colspan, rowspan, weightx, weighty, halign, and valign parameters are similar to component


Choice
The drop down list of a combobox contains choices. The popup combolist internally handles scrolling.

Parameters
NameTypeDefaultDescription
namestringnull Identifies the item.
enabledbooleantrue Enables or disables the item. A disabled item is painted gray, and can't be selected by mouse or keyboard.
textstringnull The text text that the choice displays.
iconiconnull The icon image that the choice displays.
alignmentchoiceleft The alignment of the text and image similar to label. Possible values are: left, center, and right.
tooltipstringnull The text pops up when the mouse lingers inside this specified part of the component, otherwise the tooltip text of the component.

Keyboard-actions
OperationAction
Spacebar, Down arrowPost menu
Up arrowSelects previous (or last) choice
Down arrowSelects next (or first) choice
HomeSelects first choice
EndSelects last choice
Page UpSelects choice one view up
Page DownSelects choice one view down
Enter, Return, SpacebarActivates selection, and retract menu
EscapeRetract menu without taking selection
Tab, Shift-TabNavigate forward, backward

Copyright © 2002 Robert Bajzat - info@thinlet.com - All rights reserved.