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_meter
Class:TMeter
Declaration: property OnClick: TNotifyEvent;
property OnDblClick: TNotifyEvent;
property OnMouseMove: TMouseMoveEvent;
property OnMouseDown: TMouseEvent;
property OnMouseUp: TMouseEvent;
property OnUnderFlow: TNotifyEvent;
property OnOverFlow: TNotifyEvent;
property OnNormalRange: TNotifyEvent;
property OnStartDrag;
property OnDragDrop;
property OnEndDrag;
property OnDragOver;
property OnBeforeDrawScaleLabel: TmtOnBeforeDrawScaleLabelEvent;
property OnBeforeDrawNeedle: TBeforeDrawNeedleEvent;
property OnMeterRendered: TMeterRenderedEvent;
property OnMouseMoveInMeter: TMouseMoveInMeterEvent;

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 OnStartDrag, OnDragDrop, OnEndDrag, and OnDragOver control the drap and drop operations. For details on these events see the Delphi documentation.

The OnUnderFlow event is triggered whenever the meter value is changed and the new value is below the threshold defined by the property ThresholdLow. The OnOverFlow event is triggered whenever the meter value is changed and the new value is above the threshold defined by the property ThresholdHigh. The OnNormalRange event occurs when the meter value is changed and is between the lower and the upper threshold.

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



Last Update: 2023-Dec-14