Unit 'ComCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TTabControl.Images

Contains the images displayed on the tabs for the control.

Declaration

Source position: comctrls.pp line 873

published property TTabControl.Images : TCustomImageList;

Description

Images is a published TCustomImageList property in TTabControl. It contains the images displayed on the Tabs for the control.

Assigning a new image list to the property causes the widgetset class instance to be updated; the image list, the tab position, and properties for the page objects are sent to the widget. The new value in Images is also copied to the Images member in Tabs (TTabControlStrings). No actions are performed when the an image list already assigned to the property is assigned to Images again.

The Invalidate method is called to cause the control to be redrawn after the property value is changed.

Use ImagesWidth to set the default width and height for the images in the list.

Use the indexed Page property to access each TCustomPage object on the tabbed control to read or write its ImageIndex property. Or, Use OnGetImageIndex to determine the position in Images for a given page/tab index.

Version info

Modified in LCL version 4.2. Write access is an overridden method where the image list is copied to the Images in the Tabs property.

See also

TTabControl.Tabs

  

Contains the list of pages accessible in the tabbed control.

TTabControl.ImagesWidth

  

Width for the Images used in the control.

TCustomTabControl.Images

  

Contains the images displayed on the tabs for the control.

TCustomTabControl.Page

  

Provides indexed access to the page objects used on the tabbed control.

TCustomTabControl.PageIndex

  

Ordinal position for the selected page on the tabbed control.

TCustomPage.ImageIndex

  

Ordinal position for the image associated with the page.

TCustomImageList

  

The base class for TImageList.


Version 4.4 Generated 2025-11-08 Home