TabButton Object
Parents Children Properties Methods Events
Purpose: The TabButton object represents an individual tab or button in a TabControl

Description

The TabButton object represents an individual tab or button in a TabControl

The position and size of a TabButton object are entirely determined by its parent TabControl and may not be altered. For this reason, the Posn and Size properties are read-only.

The Caption property specifies the text that appears on the button or tab.

A picture is specified by setting the ImageIndex property of the TabButton. This is a number that points to a particular icon or bitmap defined in an ImageList object whose name is specified by the ImageListObj property of the parent TabControl.

Note that all TabButton objects share the same font which is defined by the FontObj property of the TabControl.

The foreground and background colours of the TabButton object are fixed.

When used as a tab, a TabButton is normally attached to a SubForm by the TabObj property of the SubForm. The TabObj property of the TabButton itself, is a read-only property that specifies the name of, or ref to, the SubForm to which the TabButton is attached.

The State property reports the (selected) state of a TabButton.