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



Events


Unit:SDL_geomap
Class:TGeoMap
Declaration: property OnClick;
property OnDataRendered: TRenderEvent;
property OnDblClick;
property OnLandMarkAction: TLandMarkActionEvent;
property OnMapImageRequest: TMapImgRequestEvent;
property OnMouseDown;
property OnMouseMove;
property OnMouseUp;
property OnMouseWheel;
property OnMouseWheelUp;
property OnMouseWheelDown;
property OnResize;
property OnStartDrag;
property OnDragDrop;
property OnEndDrag;
property OnDragOver;

The OnCanResize event is triggered when the control is resized. The OnClick and the OnDblClick events occur when the user clicks on the component. The events OnMouseMove, OnMouseDown, and OnMouseUp support the handling of the mouse. The events OnMouseWheel, OnMouseWheelUp, and OnMouseWheelDown support the mouse wheel. The events OnStartDrag, OnDragDrop, OnEndDrag, and OnDragOver control the drap and drop operations. For further details on these events please consult the Delphi/C++Builder documentation.

The OnDataRendered event is triggered after the map has been drawn internally and before it is copied to the screen. The event OnLandMarkAction is triggered when landmarks are added or removed, and the event OnMapImageRequest is triggered when a new map image is to be loaded.

Hint: The OnMouseWheel, OnMouseWheelDown, and OnMouseWheelUp events are only received by the component if it has the focus. For example, you could call the method SetFocus in the OnClick event, to ensure that TGeoMap has the focus after the user clicked it.

Example: Some of these events are used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): simplegeomap



Last Update: 2023-Dec-13