Textbox styleΒΆ

style = flags

Style flags may be assigned at group or at textbox level. If flags are assigned both to a group and to a textbox within the group, these are combined. The textbox style flags are added to any flags assigned to the group, rather than replacing them. It is not possible to override a group style flag at textbox level.

The following flags are currently available:

WS_INVISIBLE

Create invisible.

WS_NOTABSTOP

Stop textbox from receiving input focus.

WS_DISABLED

Create disabled.

WS_CLICKONLY

Only allow the textbox to receive input focus if the user clicks on it.

WS_CJT
WS_RJT
WS_LJT

Centre, right justify or left justify the textbox label (boxes with more than one row only). The default is for the label to be centred.

WS_LJD
WS_RJD

Left or right justify data. By default, the data in a textbox is right-justified if the field type is numeric, and left-justified if the field type is alpha or date. These styles can be used to override the default.

WS_VSCROLL

Create with vertical scroll bar (free format boxes only).

WS_HSCROLL

Create with horizontal scroll bar (free format boxes only).

WS_INDENT
WS_PLAIN
Indented border. Default border style.
Plain border.

Defaults: For a textbox group or ungrouped textbox, if the style = clause is omitted, or set to 0, only WS_INDENT is set. The default for a grouped textbox is the group style. Should both be assigned, WS_PLAIN takes precedence over WS_INDENT.

EXAMPLES

style = WS_VSCROLL | WS_DISABLED
style = WS_PLAIN

FURTHER EXAMPLE


RELATED TOPICS

Textboxes

Style flags