Home ChartPack Scale Events OnAfterScaleRendered |
|
See also: OnBeforeScaleRendered, TScaleRenderedEvent, ConvertToPixelCoords, OnScaleTickDrawn, Events, SetCanvasFontSizeScaled |
|
OnAfterScaleRendered |
|
Unit: | SDL_scale |
Class: |
TScale |
Declaration: |
property OnAfterScaleRendered: TScaleRenderedEvent;
{ TScaleRenderedEvent = procedure (Sender: TObject; Canvas: TCanvas) of object; } |
The OnAfterScaleRendered event occurs immediately after the scale has been drawn. Use the property Canvas to draw user specific elements.
Hint 1: |
Please note that anything drawn on the canvas will overwrite the scale ticks and scale marks. If you want to draw beneath the scale ticks/marks you have to use the OnBeforeScaleRendered event. |
Hint 2: |
In order to avoid unwanted size effects regarding characters displayed on canvases of different resolution (i.e. the screen and a printer) you should never directly assign the font size within the event. Use SetCanvasFontSizeScaled instead. So, for example, the statement Canvas.Font.Size := 12; should be replaced by SetCanvasFontSizeScaled (Canvas, 12); |
|