JVCL Help:TJvCustomTabBar.AddTab

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Creates a new tab on the tabbed-bar control.


Pascal

 functionAddTab(constCaption: string): TJvTabBarItem;


Parameters

Parameters Description
const Caption: string Text to display on the tab.


Return Value

TJvTabBarItem - Tab definition created with the specified caption text.


Description

AddTab is a TJvTabBarItem function used to create a new tab definition with the specified caption text in the Tabs collection. AddTab calls the TJvTabBarItems.Add method to create the TJvTabBarItem instance in the return value. The value in its' Caption property is set to the argument passed to the method.
Use properties in the TJvTabBarItem instance to access additional information about the tab definition, including:

Caption
Closing
Data
DisplayRect
Enabled
Hint
Hot
ImageIndex
Modified
PopupMenu
Selected
ShowHint
Tag
Visible


Use Tabs to access properties and methods for tabs already defined in the control.
Use FindTab to locate a specific tab defined in the Tabs collection.
Use FindData to locate a tab with a specific Data object in the Tabs collection.


See Also

TJvCustomTabBar.Tabs, TJvCustomTabBar.FindTab, TJvCustomTabBar.FindData, , TJvTabBarItem


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page