====== Checkbox ====== {{page>commctrl}} {{page>commstyle}} {|class="cboxtable" |- |class="cboxcell1"|{{ control_checkbox.gif |}} |class="cboxcell2"|**TACheckbox** |} Creates a checkbox control #remarks_header[Properties:]# |**Caption**|{{KODA>VAR>Caption}} | |**Checked**|{{KODA>VAR>Checked}} | |**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 | |**Name**|{{KODA>VAR>Name}} | |**OnClick**|Generates (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 | |**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. | |**Visible**|If False, generates GUICtrlSetState(-1, $GUI_HIDE) | #remarks_header[Styles:]# |BS_CHECKBOX|Creates two-state check box with initial state set by **Checked** property and subsequent states set by code | |BS_AUTOCHECKBOX|Like BS_CHECKBOX but toggles state when control is clicked | |BS_3STATE|Creates three-state check box with initial state set by **Checked** property and subsequent states set by code | |BS_AUTO3STATE|Like BS_3STATE but toggles state when control is clicked | |BS_RIGHTBUTTON|Placex check-box square to right of text | |BS_LEFT|Left-aligns the text, word-wrapping if BS_MULTILINE is checked | |BS_RIGHT|Center-aligns text, word-wrapping if BS_MULTILINE is checked | |BS_CENTER|Right-aligns text, word-wrapping if BS_MULTILINE is checked | |BS_TOP|Places check-box square and text at top of control | |BS_BOTTOM|Places check-box square and text at bottom of control | |BS_VCENTER|Vertically centers check-box square and text in control | |BS_PUSHLIKE|Makes a check box look like a push button | |BS_MULTILINE|Wraps text to multiple lines if text doesn't fit on one line | |BS_FLAT|Button appears two-dimensional | |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}} | #remarks_header[Extra Styles:]# |WS_EX_CLIENTEDGE|{{KODA>VAR>WS_EX_CLIENTEDGE}}| |WS_EX_STATICEDGE|{{KODA>VAR>WS_EX_STATICEDGE}} | #remarks_header[Remarks:]# None #remarks_header[Related:]# None