RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPageControl.GetImageIndex Method

Specifies the image to display for a particular page.

Pascal
function GetImageIndex(TabIndex: Integer): Integer; override;
C++
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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!