Vcl.ComCtrls.TCustomTabControl.OnGetImageIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnGetImageIndex: TTabGetImageEvent read FOnGetImageIndex write FOnGetImageIndex;

C++

__property TTabGetImageEvent OnGetImageIndex = {read=FOnGetImageIndex, write=FOnGetImageIndex};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTabControl

Description

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

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.

OnGetImageIndex is an event handler of type Vcl.ComCtrls.TTabGetImageEvent.

See Also