# AUI\_Control Parameters

> [HTML Version](aui_controlparameters.htm)

All of the parameters are optional except for the first two, _opcode_ and _ctlid_, which together are sufficient to delete the control. Even when adding a new control, the last several parameters are only needed when you want to do something slightly unusual or fancy. Refer to the documentation on the individual parameters below for deciding how many you need to specify for a particular effect.

In the case of _opcode_ CTLOP\_INFO, all of the parameters besides _opcode_ may be updated. The indicators in the I/O column ignore this case and apply only to the _opcodes_ other than CTLOP\_INFO.

| **Parameter** | **Type** | **I/O** | **Description** |
|------|------|------|------|
| [opcode](opcode_auicontrol.md) | [Num](num.md) | in | Determines the "method" or operation to perform. |
| [ctlid](ctlid.md) | Num | in/out | Control ID: an integer starting from 1, or an alphanumeric name, that uniquely identifies each control. |
| [ctext](ctext.md) | [String](string.md) | in/out | Text associated with the control. For most typical controls (buttons, static text, checkbox, etc.) this is the text that appears in the control. |
| [cstate](cstate.md) | B,4 | in | State of the control (enabled, disabled, hidden, etc.). |
| [ctype](ctype.md) | B,4 | in | Control type and attributes. For more exotic controls, leave this zero and use _winclass_, _winstyle_, _winstylex_. |
| [cmd](cmd_aui_control.md) | String | in | Specifies the command or keyboard string which is invoked when the control is clicked. |
| [func](func_aui_control.md) | Num | in/out | When the cmd type is DLL, this can specify a function within the DLL to execute. For checkboxes, _func_ is a 1-byte binary which gets set and cleared along with the display state of the checkbox. |
| [cstatus](cstatus_aui_control.md) | Signed Num | in/out | Returns status indicating success of operation. For some opcodes, it is used as an input also.  |
| [srow, scol, erow, ecol](srowscole-etc-aui.md) | Num | in | Coordinates of the control. |
| [fgc, bgc](fgcbgc.md) | Num | in | Foreground and background color palette numbers for the control. |
| [fontattr](fontattr.md) | B,4 | in | Used to override the default font attributes for the control. |
| [fontscale](fontscale_aui_control.md) | Num | in | Scales the font to the specified percentage. |
| [fontface](fontface.md) | String | in | Overrides the default font selection.  |
| [tooltip](tooltip.md) | String | in | Defines a "tooltip" (popup message)  |
| [parentid](parentid_aui_control.md) | Num | in | If specified, new control becomes child of specified control. |
| [winclass](winclass.md) | String | in | May be used as an alternative to _ctype_ to create a control using the standard Windows control classes and styles. |
| [winstyle](winstyle_aui_control.md) | B,4 | in | 
| [winstylex](winstylex.md) | B,4 | in | 
| [ctype2](ctype2.md) | B,4 | in | Extension of _ctype_; control type and attributes. |


