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....



OnDrawLandmark


Unit:SDL_geomap
Class:TGeoMap
Declaration: property OnDrawLandmark: TDrawLandmarkEvent;
{TDrawLandMarkEvent = procedure (Sender: TObject; var Handled: boolean; Canvas: TCanvas; APoint: TPoint; const LandMarkData: TLandMark) of object;}

The event OnDrawLand is triggered when a landmark is about to be drawn. You can use it to draw user-defined landmarks. Please see the description of TDrawLandmarkEvent for details of the event parameters.

Hint 1: The declaration of this event has been changed with the introduction of release 10.1 of the SDL Suite. Please see the corresponding type declaration and the section How to Deal with a Canvas Reference Change for details.

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);



Last Update: 2012-Oct-26