The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



OnBeforeTickLabel


Unit: SDL_rchart
Class: TRChart
Declaration: property OnBeforeTickLabel: TBeforeTickLabelEvent;
{ TBeforeTickLabelEvent = procedure (Sender: TObject; ScaleType: TScaleType; CurrentTickPos: double; var TickLabel: string) of object; }

The OnBeforeTickLabel event provides a hook for adjusting the tick labels of the scale. The event OnBeforeTickLabel occurs whenever a tick label is about to be drawn. The parameter ScaleType specifies to which type of scale the tick mark belongs to. The parameter CurrentTickPos holds the numeric value which corresponds to the tick mark, and the parameter TickLabel contains the text of the tick mark. Changing this parameter directly controls what text is displayed at the particular tick mark.


Last Update: 2023-Dec-13