Sign in Join
FPDoc Onlineexperiment

TWindowMagnetManager.Enabled property

Member of TWindowMagnetManagerpublicIn unit Forms

Enables or disables form and/or screen snapping behavior using the manager class.

Declaration

pascal
property Enabled: Boolean read FEnabled write FEnabled;

Description

Enabled is a Boolean property which indicates whether the magnetic window snapping behavior is enabled in the class.

When set to True, the following behaviors are enabled using the class:

  • A dragged form can be snapped to an edge of another form.
  • A dragged form can be snapped to an edge on the monitor.

When set to False, these behaviors are disabled.

The default value for the property is True and enables the snapping behavior in the global Screen variable.

Use the SnapOptions property in each TForm instance to define whether the form can be snapped to another form or an edge on the screen, or allows other forms to be snapped to its edges. It also controls the distance at which the snapping behavior is automatically engaged.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.