[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Forms' (#lcl)

# TWindowMagnetManager.Enabled

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

## Declaration

Source position: forms.pp line 447

`public property TWindowMagnetManager.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

TCustomForm.SnapOptions |  | Contains the form and screen snapping options for the form instance.
TCustomForm.WMWindowPosChanging |  | Notifies the magnetic window manager when the position for a form is being updated.
TScreen.MagnetManager |  | Manages screen / form snapping behavior for the screen.
Screen |  | The TScreen singleton for the application.
TWindowMagnetOptions |  | Implements options which control magnetic window behavior in form instances.