TabStrip Control

This control defines multiple logical pages or sections of information in a window or dialog box, similar to a set of dividers in a notebook or labels in a file cabinet. The TabStrip control consists of one or more Tab objects in a Tabs collection.

Library Name

CETabStripCtl

DLL Name

Mscetabstrip.dll

The TabStrip control supports the following properties:

ClientHeight FontSize Parent
ClientWidth Height (ActiveX) SelectedItem
ClientLeft Width (ActiveX) Style (TabStrip)
ClientTop ImageList TabFixedHeight
FontBold Left (ActiveX) TabFixedWidth
FontItalic Top (ActiveX) Tabs
FontStrikethru MultiRow TabWidthStyle
FontUnderline Name Visible
FontName    

The TabStrip control supports the following methods:

The TabStrip control supports the following event:

Remarks

The TabStrip control is not a container. To contain the actual pages and their objects, you must use Frame controls or other containers that match the size of the internal area, which is shared by all Tab objects in the control.

When you put a TabStrip control on a form, it has one notebook tab by default. To change from a notebook tab to a push button, use the Style property tab.

To set the overall size of the TabStrip control, use its drag handles or set the Top, Left, Height, and Width properties. Based on the control's overall size at run time, the toolkit automatically determines the size and position of the internal area and returns the client-coordinate properties–ClientLeft, ClientTop, ClientHeight, and ClientWidth. The MultiRow property determines whether the control can have more than one row of tabs, the TabWidthStyle property determines the appearance of each row, and, if TabWidthStyle is set to TabFixed, the TabFixedHeight and TabFixedWidth properties set the same height and width for all tabs in the TabStrip control.