TScreen.MagnetManager property
Manages screen / form snapping behavior for the screen.
Declaration
property MagnetManager: TWindowMagnetManager read FMagnetManager;Description
MagnetManager is a read-only
TWindowMagnetManager
property with the class used to manage magnetic window snapping behavior in an
application. It is initialized in the Create constructor, and is enabled in
the application by default.
MagnetManager is used when a TForm instance receives and handles a TLMWindowPosChanging (WMWindowPosChanging) message. Its SnapForm method is called to adjust the window position when the form instance is close enough to an edge that the snapping behavior is engaged.
In the current LCL release, the LM_WINDOWPOSCHANGING message is dispatched for
the Windows platform only. None of the other widgetsets checked for or apply
the message.
Added in LCL version 3.0.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
