ITChart.OnPageChange
ITChart

property OnPageChange: TNotifyEvent;

Type Library
TeeChartx

Description
An OnPageChange event occurs whenever the TChart.Page.Current property has been changed and before the Chart repaints the new page points.

The TChart.Page.MaxPointsPerPage property must be greater than zero to activate the automatic paging mechanism.

This event DOES NOT get called the first time the TChart.Page.Current property is set to 1.

Example [Visual Basic]:

You can use this event to, for example, display the current Chart page:

Private Sub TChart1_OnPageChange()

Label1.Caption = "Current page: " & TChart1.Page.Current & " of " & TChart1.Page.Count

End Sub