JVCL Help:TJvTabBarItem.DisplayRect

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

Search in JVCL Help

 
Search in all projects
 

Summary

Display area for the tab in the tabbed-bar control.


Pascal

 propertyDisplayRect: TRect;


Description

DisplayRect is a read-only TRect property that represents the display area required for the tab on the tabbed-bar control.
Reading the value for DisplayRect causes the values in the TRect to be recalculated. When Visible contains False, the derived display area is a rectangle with the following Left, Top, Bottom, and Right coordinates:
Rect(-1, -1, -1, -1);
Otherwise, the display area for tab is adjusted for the current orientation in the TabBar.Orientation property. The display area will include space required for the image specified in ImageIndex and the Caption for the tab.
DisplayRect is used extensively in the implementation of the TJvTabBar control that owns the tab definition. DisplayRect is used during MouseUp, MouseDown, and MouseMove operations in the tab bar, and provides the screen coordinates for tab when selected using a Mouse Click.


See Also

TJvTabBarItem.Visible, TJvTabBarItem.Caption, TJvTabBarItem.ImageIndex, TJvTabBarItem.TabBar, TJvTabBarPainter, TJvModernTabBarPainter


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