srvtabset TSRVTabSet

Properties   Methods   Events  | Overview

Top  Previous  Next

The TSRVTabSet component presents horizontal or vertical tabs users can click to initiate actions.

Unit SRVTabSet.

Syntax

TSRVTabSet = class(TCustomControl);

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TCustomControl

Description

You create a set of tabs for the tab set control when you specify a list of items as the value of the Tabs property. One tab is created for each item.

To determine which tab is currently selected or to use code to select a tab, use the TabIndex property. To find out which tab is the first/last visible tab in the tab set control use the FirstTabIndex/LastTabIndex properties. To make the tab visible, use ScrollToTab.

The user can close tabs, if closing buttons are displayed. Properties of these buttons are specified in CloseButton property.

Tabs are displayed horizontally or vertically, depending on the value of Kind property. Tabs can have icons from ImageList.

The following properties affect the size of tabs: AutoWidth, MinTabSize, MaxTabSize, TabHeight.

The following properties affect the layout of each tab: Indent, Margins, MirrorText, TextAlignH, TextAlignV.

Visual appearance

TSRVTabSet is a skinnable component. Skins are used when SkinManager and SkinSchemeIndex properties are assigned. You can draw various parts of the control yourself using custom drawing events.

SRVTabSet SkinScheme
SRVTabSet Properties

Rearranging tabs

Tabs can be moved with the mouse, if CanMoveTabs is True. When moving, OnMoveTab event occurs.


ScaleRichView © trichview.com