An edit box is an editable field that allows the user to enter plain text using the keyboard.
To create an edit box, use the <winterpostwiki>wb_create_control</winterpostwiki>() function. The following style flags are accepted in the styles parameter:
| Style flag | Result |
|---|---|
| WBC_CENTER | Text is centered on the control. |
| WBC_DISABLED | Control is grayed and disabled. It will not generate messages. |
| WBC_INVISIBLE | Control is not displayed and will not generate messages. |
| WBC_LEFT | Text is left-aligned. This is the default. |
| WBC_MASKED | All characters are replaced by a bullet or asterisk. Useful for passwords and other sensitive data. |
| WBC_MULTILINE | Long text lines are automatically wrapped to the next line and the control accepts return characters. |
| WBC_NUMBER | Only integers can be entered. |
| WBC_READONLY | The control text cannot be changed by the user. Its background is displayed in gray. |
| WBC_RIGHT | Text is right-aligned. |
| WBC_VISIBLE | Control is displayed normally. This is the default. |