FMX.Objects.TSelection.MouseUp

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Single); override;

C++

virtual void __fastcall MouseUp(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, float X, float Y);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Objects.pas
FMX.Objects.hpp
FMX.Objects TSelection

Description

Handles the release of a mouse button pressed inside the TSelection object.

MouseUp calls the inherited FMX.Controls.TControl.MouseUp. If the TSelection object is being moved or resized by the mouse, MouseUp calls the OnChange event handler, and then stops moving or resizing by the mouse.

MouseUp has the following parameters:

  • Button--belongs to the TMouseButton type and specifies the pressed mouse button: mbLeft--left, mbRight--right, or mbMiddle--middle.
  • Shift--belongs to the TShiftState type and passes additional information, such as whether shift keys (ssShift--SHIFT, ssCtrl--CTRL, or ssAlt--ALT) were down when the pressed mouse button was released.
  • X and Y--are the local pixel coordinates of the mouse pointer within the TSelection object.

The TForm form (owner of the TSelection object) calls MouseUp in response to mouse-up messages.

Override the public MouseUp method to provide a customized response if the mouse button is released when the mouse pointer is over the TSelection object.

See Also