JVCL Help:TJvTabBar.SelectBeforeClose

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

Search in JVCL Help

 
Search in all projects
 

Summary

Indicates if a tab must be selected before it can be closed using the close button.


Pascal

 propertySelectBeforeClose: Boolean;


Description

SelectBeforeClose is a Boolean property that indicates if a tab must be selected before it can be closed using the close button. SelectBeforeClose is used when handling a mouse down event that occurs over the close button for an item in the Tabs property. When SelectBeforeClose contains True, the SelectedTab must be the same as the tab where the mouse click occurs or no action is performed. When SelectBeforeClose contains False, the tab will be closed even if it is not the item stored in the SelectedTab property. CloseButton must contain True in order for close buttons to be drawn on items in the Tabs collection. The default value for SelectBeforeClose is False, as assigned in the constructor for the control. Use the event handlers in OnTabClosing, OnTabClosed, OnTabSelecting, OnTabSelected, and OnChange perform application-specific actions required for items in the Tabs property.


See Also

TJvCustomTabBar.Tabs, TJvCustomTabBar.CloseButton, TJvCustomTabBar.SelectedTab, TJvCustomTabBar.OnTabClosing, TJvCustomTabBar.OnTabClosed, TJvCustomTabBar.OnTabSelecting, TJvCustomTabBar.OnTabSelected, TJvCustomTabBar.OnChange


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