From RAD Studio API Documentation
Jump to: navigation, search



TSelection = class(TControl)


class PASCALIMPLEMENTATION TSelection : public Fmx::Controls::TControl


Type Visibility Source Unit Parent
class public
FMX.Objects FMX.Objects


TSelection defines 2D rectangle object that can be moved and resized. It inherits TControl and can be used in styles to construct controls.

You can use scaling factors Scale of the TSelection object to proportionally change coordinates of a selection object's rectangle along local coordinate axes. Scaling moves the selection rectangle and change its size. The rotation axis RotationCenter and rotation angle RotationAngle of the selection object can also be used to modify the selection rectangle's size and position.

The Paint method renders the TSelection image. Paint internally defines the properties of the drawing pen to draw the selection contour and the brush to fill the background depending on whether the control is enabled, the zone is hot, and other conditions.

To resize the TSelection rectangle you can use four grip controls. Grip controls appear as small circles at the selection rectangle corners when the mouse pointer hovers over the grip controls.

See Also