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


Unit: SDL_colorscale
Class: TColorScale
Declaration: property OnMouseMoveInScale: TMouseMoveInColorScaleEvent;
{ TMouseMoveInColorScaleEvent = procedure (Sender: TObject; InScale: boolean; Shift: TShiftState; rMousePos: double) of object; }

The OnMouseMoveInScale event occurs when the mouse moves over the color scale control. In contrast to the OnMouseMove event this event returns additional information about the mouse position in terms of the color scale.

The parameter InScale is TRUE, if the mouse cursor is over the colored area of the color scale (i.e. the area which is encircled by the single line frame shown when the property FramedColorScale is TRUE). The parameter Shift returns the state of the mouse buttons, and the parameter rMousePos returns the mouse position translated to the color scale.

Example: This event is used in the following example program (see for downloading the code): colscale

Last Update: 2023-Dec-13