User Tools

Site Tools


Sidebar

<< Back


koda:en:documentation:control_combo

Combo

{|class=“cboxtable”

class=“cboxcell1”
class=“cboxcell2”TACombo

Creates a ComboBox control

Properties:

ColorBackground color of control. Choose from the list, or enter your own. Format is 0xnumber where number is 6 hexadecimal digits: 2 for blue, 2 for green and 2 for red
ContextMenuSpecifies context menu to attach to control. Create the ContextMenu first
CursorCursor shape to display when mouse is over this control
EnabledFalse generates <color blue>GUICtrlSetState(-1, $GUI_DISABLE)</color>
FontDouble-click to the right to open the Font dialog. Click on + to show the Color, Name, Size and Style properties
Left,TopPosition of control relative to its parent
Width,HeightSize of control in pixels
HintText that appears when cursor hovers over control. Generates call to <color blue>GUICtrlSetTip</color>
ItemIndexOrdinal number of Item that shows initially. (The first item is 1)
ItemsDouble-click to open Strings Editor. Enter one item per line. Generates call to <color blue>GUICtrlSetData</color> which uses item separator specified in Options→Options→Code Generator Formatting
NameName of control and of the variable that is assigned its control ID in generated code. If not specified, no variable is generated
OnChangeGenerates (in Message Loop mode) a Case or (in OnEvent mode) a call to GUISetOnEvent and a skeleton event function. Double-click to right to open Events Editor
ResizingClick on + to expand resize modes:
DocAuto - resize and reposition according to new window size
DocRight - Do not move right side
DocLeft - Do not move left side
DocTop - Do not move top
DocBottom - Do not move bottom
DocHCenter - Horizontal center remains fixed
DocVCenter - Vertical center remains fixed
DocWidth - Width does not change
DocHeight - Height does not change
TabOrderSequence in which controls are selected with the Tab and Shift+Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the TabOrder Visual Editor: press Ctrl+T to open it.
TextThis property contain text that will be visible on form.
VisibleIf False, generates <color blue>GUICtrlSetState(-1, $GUI_HIDE)</color>

Styles:

A Combo control consists of an input area and a list area.

CBS_SIMPLEShows only the list area
CBS_DROPDOWNShows input area and down arrow to open list
CBS_DROPDOWNLISTShows only the list area with down arrow
CBS_AUTOHSCROLLWhen user enters characters beyond width of control, text automatically scrolls
CBS_OEMCONVERTEnsures proper conversion of characters entered into control
CBS_SORTSorts list items
CBS_NOINTEGRALHEIGHTControl is exactly Height pixels high, rather than adjusting so no items show partially
CBS_DISABLENOSCROLLList area shows a disabled vertical scroll bar when it does not contain enough items to require scrolling
CBS_UPPERCASEText in input area is upper-cased
CBS_LOWERCASEText in input area is lower-cased
WS_TABSTOPControl can be selected with Tab and Shift+Tab
WS_HSCROLLControl has horizontal scroll bar
WS_VSCROLL Control has vertical scroll bar
WS_BORDERControl has a thin-line border
WS_CLIPSIBLINGSIf this control overlaps with another, this control shows partially

Extra Styles:

WS_EX_CLIENTEDGEControl has border with sunken edge
WS_EX_STATICEDGEControl has a three-dimensional border

Remarks:

The Height property is the height of the closed Combobox.

None

koda/en/documentation/control_combo.txt · Last modified: 2016/12/02 19:14 by c.haslam