TAB control styles

Styles

%TCS_TABS

Tab control has a border, and tabs are displayed as tabs (not buttons).

%TCS_BUTTONS

Tabs are displayed as buttons, and control has no border.

%TCS_FIXEDWIDTH

All tabs in the control are displayed with the same width.

%TCS_RAGGEDRIGHT

Tab rows are not stretched to fill the width of the control

%TCS_FLATBUTTONS

The selected tab is indented. This style is only valid if the %TCS_BUTTONS style is also applied.

%TCS_FORCEICONLEFT

Icons are forced to the left.

%TCS_FORCELABELLEFT

Labels are forced to the left.

%TCS_FOCUSONBUTTONDOWN

Tabs receive the focus when clicked.

%TCS_FOCUSNEVER

Tab never receives the focus.

%TCS_OWNERDRAWFIXED

Parent window is responsible for drawing tabs

%TCS_TOOLTIPS

A Tooltip control is associated with the control

%WS_BORDER

Add a thin line border around the text box control.

%WS_DISABLED

Create a control that is initially disabled. A disabled control cannot receive input from the user.

%WS_GROUP

Define the start of a group of controls. The first control in each group should also use %WS_TABSTOP style. The next %WS_GROUP control in the tab order defines the end of this group and the start of a new group. Groups configured this way permit the arrow keys to shift focus between the controls within the group, and focus can jump from group to groups with the usual TAB and SHIFT+TAB keys. Both tab stops and groups are permitted to wrap from the end of the tab order back to the start.

%WS_TABSTOP

Allow the list box control to receive keyboard focus when the user presses the TAB and SHIFT+TAB keys. The TAB key shifts keyboard focus to the next control with the %WS_TABSTOP style, and SHIFT+TAB shifts focus to the previous control with %WS_TABSTOP. (default)

 

Extended Styles

%WS_EX_CLIENTEDGE

Apply a sunken edge border to the control.

%WS_EX_LEFT

The control has generic "left-aligned" properties. (default)

%WS_EX_RIGHT

The control has generic "right-aligned" properties. This style has an effect only if the shell language is Hebrew, Arabic, or another language that supports reading order alignment.

%WS_EX_STATICEDGE

Apply a three-dimensional border style to the control (intended to be used for items that do not accept user input).

%WS_EX_TRANSPARENT

Controls/windows beneath the dialog are drawn before the dialog is drawn. The dialog is deemed transparent because elements behind the dialog have already been painted - the dialog itself is not drawn differently. True transparency is achieved by using Regions - see MSDN and/or the Platform SDK documentation for more information.

%WS_EX_WINDOWEDGE

Apply a raised edge border to the control.

 

See Also

Styles reference

CONTROL ADD TAB

TAB statement