Sign in Join
FPDoc Onlineexperiment

TWindowMagnetOptions class

In unit Forms

Implements options which control magnetic window behavior in form instances.

Declaration

pascal
TWindowMagnetOptions = class(TPersistent)

Inheritance

  1. TWindowMagnetOptions
  2. TPersistent
  3. TObject

Description

TWindowMagnetOptions is a class which implements options needed to control magnetic window behavior when a form is snapped to another form or to an edge on the screen. It introduces properties with default values which enable or disable the snapping behaviors for forms or the screen. It also includes a property to set the proximity or threshold where snapping behavior is engaged.

TWindowMagnetOptions is the type used to implement the SnapOptions property in TCustomForm and descendent classes. It is also passed as an argument to the SnapToMonitor and SnapToForms methods in TWindowMagnetManager.

Added in LCL version 3.0.

See also

Properties

SnapToMonitorpublishedEnables or disables snapping a form to one of the edges on the monitor.
SnapToFormspublishedEnables or disables snapping the current form to another form in the application.
SnapFormTargetpublishedEnables or disables snapping another form in the application to the form instance.
DistancepublishedDistance from (or proximity to) a snap target where the snapping behavior is automatically engaged.

Methods

CreatepublicConstructor for the class instance.
AssignTopublicImplements object persistence for TWindowMagnetOptions instances.

Inherited

From TPersistent (8)

Assign DefineProperties Destroy FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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