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

TWindowMagnetOptions.SnapToMonitor

Enables or disables snapping a form to one of the edges on the monitor.

Declaration

Source position: forms.pp line 427

published property TWindowMagnetOptions.SnapToMonitor : Boolean
  read FSnapMonitor
  write FSnapMonitor
  default False;

Description

SnapToMonitor is a Boolean property which determines whether magnetic window snapping to an edge on the monitor is enabled. The default value for the property is False and disables snapping a form to an edge on the monitor. When set to True, the magnetic window manager will snap the form to the monitor edge when the snapping threshold is reached.

Use Distance to specify the proximity or threshold (in pixels) where the snapping behavior is automatically engaged.

Use SnapToForms to control whether a form instance can be snapped to an edge on other forms in the application.

Use SnapFormTarget to indicate whether a form can be a snap target for other forms in an application.


Version 4.0 Generated 2025-05-03 Home