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



OnSelectRect


Unit:SDL_rchart
Class:TRChart
Declaration: OnSelectRect: TSelectRectEvent;
{TSelectRectEvent = procedure (Sender: TObject; Layer: integer; LoX, LoY, HiX, HiY: double) of object;}

The event OnSelectRect is triggered when the property MouseAction is set to maSelectRect and the left mouse button is released. The parameters LoX, LoY, HiX, and HiY specify the coordinates of the lower left and upper right corner of the selection rectangle. The parameter Layer specifies the layer to which the coordinates belong.

Hint: The OnSelectRect event is triggered separately for each active layer. Thus releasing the mouse button when MouseAction is set to maSelectRect may generate several OnSelectRect events, depending on the array property MouseAffectsLayer.



Last Update: 2016-Jun-26