[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Notifies the magnetic window manager when the position for a form is being updated.
Source position: forms.pp line 621
protected procedure TCustomForm.WMWindowPosChanging( |
var Message: TLMWindowPosChanging |
); message; |
WMWindowPosChanging is a method used to notify the MagnetManager in TScreen when the position for the window in Message is being updated. The SnapForm method in the TWindowMagnetManager instance is called to update the Form instance with the window position in Message. The SnapForm method may update the window position if it is within the distance where snapping behavior is engaged for the form.
Use the SnapOptions property to specify which snapping behaviors are enabled for the form, and the distance at which the snapping behavior is engaged. You can also use the SnapBuffer and ScreenSnap properties to maintain Delphi VCL code compatibility.
Remark: | In the current LCL release, the LM_WINDOWPOSCHANGING message is dispatched for the Windows platform only. None of the other widgetsets check for or apply the message. |
Added in LCL version 3.0.
|
Contains the form and screen snapping options for the form instance. |
|
|
Distance from (or proximity to) an edge on a snap target where the snapping behavior is automatically engaged. |
|
|
Indicates whether the form instance can be snapped to an edge on the monitor. |
|
|
Snaps the specified form to the nearest snap target. |
|
|
Manages screen / form snapping behavior for the screen. |
|
|
The TScreen singleton for the application. |
Version 3.2 | Generated 2024-02-25 | Home |