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



OnMouseMoveInMeter


Unit:SDL_meter
Class: TMeter
Declaration: property OnMouseMoveInMeter: TMouseMoveInMeterEvent;
{ TMouseMoveInMeterEvent = procedure (Sender: TObject; WithinRange: boolean; Shift: TShiftState; MeterValue: double) of object; }

The OnMouseMoveInMeter event occurs when the mouse moves over the meter control. In contrast to the OnMouseMove event this event returns additional information about the mouse position in terms of the meter value.

The parameter WithinRange is TRUE, if the mouse cursor is within the range of the meter (i.e. within the sector spanned by the meter scale and the anchor of the meter). The parameter Shift returns the state of the mouse buttons, and the parameter MeterValue returns the mouse position translated to the meter value. MeterValue is only valid if WithinRange is TRUE (otherwise a zero value is returned)

Example: This event is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): meterdrag



Last Update: 2023-Dec-14