FMX.Switch.Style.TStyledSwitch.MouseUp

From RAD Studio API Documentation

Delphi

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

Properties

Type Visibility Source Unit Parent
procedure protected FMX.Switch.Style.pas FMX.Switch.Style TStyledSwitch

Description

OnMouseUp event dispatcher. {{#multireplace:FMX.Switch.Style.TStyledSwitch.MouseUp|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:FMX.Controls.TControl.MouseUp|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:FMX.Controls.TControl.MouseUp|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

OnMouseUp event dispatcher.

A control calls MouseUp in response to any of mouse-up messages, decoding the message parameters into the shift-key state and position, which it passes in the Shift, X and Y parameters, respectively:

  • Button determines which mouse button was previously pressed: left, right, or middle.
  • Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the pressed mouse button is released.
  • X and Y are the pixel coordinates of the mouse pointer within the client area of the control.

Override the protected MouseUp method to provide other responses when the mouse button previously pressed is released while the cursor is over the control.

See Also