RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTabControl.OnGetImageIndex Event

Occurs when a tab is about to display its associated image.

Pascal
property OnGetImageIndex: TTabGetImageEvent;
C++
__property TTabGetImageEvent OnGetImageIndex;

Write an OnGetImageIndex event handler to specify the ImageIndex for a given TabIndex

On entry to the event handler, the ImageIndex parameter is the same as the TabIndex parameter, where TabIndex is the index of the tab which is about to display its image. Change the ImageIndex parameter to specify the index into the Images property that specifies the image that should be painted. 

 

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