====== Combo ====== {{page>commctrl}} {{page>commstyle}} {|class="cboxtable" |- |class="cboxcell1"|{{ control_combo.gif }}| |class="cboxcell2"|**TACombo**|} Creates a ComboBox control ==== Properties: ==== |**Color**|{{KODA>VAR>Color}} | |**ContextMenu**|{{KODA>VAR>ContextMenu}} | |**Cursor**|{{KODA>VAR>Cursor}} | |**Enabled**|False generates GUICtrlSetState(-1, $GUI_DISABLE) | |**Font**|{{KODA>VAR>Font}} | |**Left,Top**|{{KODA>VAR>Left,Top}} | |**Width,Height**|{{KODA>VAR>Width,Height}} | |**Hint**|Text that appears when cursor hovers over control. Generates call to GUICtrlSetTip| |**ItemIndex**|Ordinal number of Item that shows initially. (The first item is 1) | |**Items**|Double-click to open [[proped_strings_editor]]. Enter one item per line. Generates call to GUICtrlSetData which uses item separator specified in Options->Options->Code Generator Formatting | |**Name**|{{KODA>VAR>Name}} | |**OnChange**|{{KODA>VAR>StdEvent}} | |**Resizing**|{{KODA>VAR>Resizing}} | |**TabOrder**|Sequence in which controls are selected with the Tab and S-Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the [[dialog_tab_order_editor|TabOrder Visual Editor]]: press C-t to open it. | |**Text**|{{KODA>VAR>Text}} | |**Visible**|If False, generates GUICtrlSetState(-1, $GUI_HIDE) | ==== Styles: ==== A Combo control consists of an //input area// and a //list area//. |CBS_SIMPLE|Shows only the list area | |CBS_DROPDOWN|Shows input area and down arrow to open list| |CBS_DROPDOWNLIST|Shows only the list area with down arrow | |CBS_AUTOHSCROLL|When user enters characters beyond width of control, text automatically scrolls | |CBS_OEMCONVERT|Ensures proper conversion of characters entered into control | |CBS_SORT|Sorts list items | |CBS_NOINTEGRALHEIGHT|Control is exactly Height pixels high, rather than adjusting so no items show partially | |CBS_DISABLENOSCROLL|List area shows a disabled vertical scroll bar when it does not contain enough items to require scrolling | |CBS_UPPERCASE|Text in input area is upper-cased | |CBS_LOWERCASE|Text in input area is lower-cased | |WS_TABSTOP|Control can be selected with Tab and S-Tab | |WS_HSCROLL|{{KODA>VAR>WS_HSCROLL}} | |WS_VSCROLL| {{KODA>VAR>WS_VSCROLL}}| |WS_BORDER|{{KODA>VAR>WS_BORDER}} | |WS_CLIPSIBLINGS|{{KODA>VAR>WS_CLIPSIBLINGS}} | ==== Extra Styles: ==== |WS_EX_CLIENTEDGE|{{KODA>VAR>WS_EX_CLIENTEDGE}}| |WS_EX_STATICEDGE|{{KODA>VAR>WS_EX_STATICEDGE}} | ==== Remarks: ==== The Height property is the height of the //closed// Combobox. ==== Related: ===== None