JVCL Help:TJvTabBarItem.ImageIndex

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

Search in JVCL Help

 
Search in all projects
 

Summary

Position of the image to be drawn on the tab.


Pascal

 propertyImageIndex: TImageIndex;


Description

ImageIndex is a TImageIndex property that indicates the ordinal position of an image to be drawn on t e tab. ImageIndex is used to access a specific TImage stored in the TJvTabBar.Images for the tabbed-bar control.
The default value for ImageIndex is -1, and indicates that an image has not been assigned for use when drawing the tab using a TJvTabBarPainter instance.
Assigning a value to ImageIndex has no effect when a TImageList instance has not been assigned and populated for the TJvTabBar control.
ImageIndex is used in conjunction with the Enabled property to determine the state used when drawing the image on the tab. During rendering of the tab, the width of the TJvTabBarItem instance is adjusted to accommodate both the image from an assigned image list and the value in the Caption property.
Changing the value in ImageIndex causes the TJvTabBarItem and the TJvTabBar to be redrawn.


See Also

, TJvTabBar.Images, TJvTabBarPainter


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