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


Declaration: property OnClick: TNotifyEvent;
property OnDblClick: TNotifyEvent;
property OnMouseMove: TMouseMoveEvent;
property OnMouseDown: TMouseEvent;
property OnMouseUp: TMouseEvent;
property OnKeyDown: TKeyEvent;
property OnKeyPress: TKeyPressEvent;
property OnKeyUp: TKeyEvent;
property OnMouseWheel;
property OnMouseWheelUp;
property OnMouseWheelDown;

The OnClick and the OnDblClick events occur when the user clicks on the component. The OnClick and the OnDblClick events occur when the user clicks on the component. The events OnMouseMove, OnMouseDown, OnMouseUp, OnMouseWheel, OnMouseWheelUp, and OnMouseWheelDown support the handling of the mouse. See the Delphi (C++ Builder) documentation for more details.

Note, that the OnMouseMove event is internally used to control the interactive operation if the property MouseAction is set to a value other than maNone.

The OnDataRendered and OnBeforeRenderData events can be used to draw on the canvas of the component. The OnLblRequest event is triggered when a symbol is to be drawn, allowing the user to supply a text label for that symbol.

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 TRot3D has the focus after the user clicked it.

Example: These events is used in the following example program (see for downloading the code): exrot3d

Last Update: 2014-Okt-01