Insert a tabbed control where clicking on each tab brings it to the fore. Also can be used to provide a toolbar look, including a cool "flat" toolbar look.
To load up a tab strip, one must create a container on the form that's loaded with the arrangement of controls to be displayed in the client area of the tab strip. At run time, as each tab is pressed we use Move to position the container full of desired controls into position into the client area.
Note: Non-Common Control properties are prefaced with "tab", suppressed in the following for greater legibility.
Properties
In addition to the properties listed below, a Control tab provides access to certain frequently used form properties for this control. See the Form Properties topic for information on those properties.
|
|
TabStrip |
|
General |
|
|
MultiRow |
True - Show many tabs as cascaded rows. False - add left/right scroll buttons to scroll through more tabs than can fit in the width of the control. |
|
ShowTips |
True (Default) - Show ToolTipsText. False - Don't. |
|
Enabled |
True or False. True means the object can respond to user-generated events, false prevents it from responding. |
|
MousePointer |
The type of mouse pointer displayed when over the tab strip. Choose from 16 different types plus a custom pointer |
|
Style |
Tabs (Default) - standard tabbed look. Buttons - tabs display as a row of buttons with no border around client area. Use to create a toolbar look. FlatButtons - button is flat until pressed and then takes on an indented look. |
|
TabWidthStyle |
Used when MultiRow is true. Justified - evens out width of tabs to evenly fill each row. NonJustified - each tab takes on the width of its contents. Fixed - use TabFixedWidth for all tabs. |
|
ImageList |
ImageList control to use with this treeview |
|
OLEDropMode |
Set to None (default) if the tab strip does not accept OLE drops and is to display the No Drop cursor if an OLE drop is attempted. Set to Manual, the tab strip will trigger OLE drop events, allowing programs to handle the OLE drop operation in code. |
|
Placement |
Tabs appear at Top, Bottom, Left or Right side of the control. Use with TabStyle set to TabOpposite to achieve a (weird) effect as if tabs are being moved from one side of a book to another. |
|
TabStyle |
Used with MultiRow = True. TabStandard (Default) - remaining tabs stay on same side of the control. TabOpposite - Rows of tabs in front of the row containing the selected tab are displayed on the opposite side of the control. |
|
TabFixedWidth |
Specify a fixed width to use when TabWidthStyle is set to Fixed. |
|
TabFixedHeight |
Specify a fixed height to use. If not set, TabStrip will use either the height of the font or the height of the images to compute the height of tabs. |
|
TabMinWidth |
The minimum allowable width of a tab. |
|
HotTracking |
Whether or not mouse-sensitive highlighting is enabled. True - captions are highlighted as the mouse passes over them. False (Default) - objects do not respond to mouse movement unless the mouse button is clicked. True is a good idea with FlatButton to achieve a "live" toolbar look that shows a raised button on a mouse hover. |
|
Separators |
True - Draw separators between buttons when Style is set to Button or FlatButton. False (Default) - No separators. Separators help users understand this is a control and not just a caption when FlatButton is used. |
|
MultiSelect |
Whether or not user can make multiple selections from the tab strip. NoMultiSelect means none. Simple, means a mouse click or SPACEBAR selects/deselects while arrow keys move focus. Extended adds CTRL and SHIFT click selection in the usual way. |
|
|
|
|
Tabs |
|
|
Index |
Integer that uniquely identifies a tab object in the Tab Strip collection. Numbered in order of creation from the first tab object, which is always 1. |
|
Caption |
Text for tab caption. |
|
Key |
A unique string that identifies each tab object. |
|
Tag |
Stores a string available for the programmer to use as desired. Often used to store an identification string of some sort. |
|
ToolTipText |
Tool tip text to display as tool tip for this tab. |
|
Image |
Image to use for this tab, if ImageList specified. |
|
|
|
|
Font |
|
|
Properties |
Font properties that may be changes. |
|
Font |
Choose a font installed on this system. It's wise to choose standard Windows fonts such as MS Sans Serif that are universally available. |
|
Size |
Size of font, in points. |
|
Effects |
Bold, Italic, Underline or Strikeout. |
|
Sample Text |
A preview of the selected settings. |
|
|
|
|
Picture |
|
|
MouseIcon |
Custom icon to use when the MousePointer property is set to 99. Like Visual Basic, will not load animated cursor (.ani) files. |