RAD Studio VCL Reference
TPageControl.GetImageIndex Method

Specifies the image to display for a particular page.

function GetImageIndex(TabIndex: Integer): Integer; override;
virtual __fastcall int GetImageIndex(int TabIndex);

Override GetImageIndex in a derived class to specify the index of the image to display for a particular page. 

TabIndex is the page's index that is about to be displayed. 

Integer is the image's index (in the Images property) that will be displayed in the tab. 

By default, if there is no OnGetImageIndex event handler, GetImageIndex returns the ImageIndex property for the page with the specified index; otherwise, GetImageIndex calls the inherited GetImageIndex method, returning the result. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!