Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomDockControl.AllowDock Property

Specifies how a dock control can be docked to other dock controls.

#Declaration

Delphi
property AllowDock: TdxDockingTypes read; write; default dxDockingDefaultDockingTypes;

#Property Value

Type Default
TdxDockingTypes dxDockingDefaultDockingTypes

#Remarks

Use the AllowDock property to specify whether the dock control can be docked to the left, top, right and bottom edges of dock sites and whether it is allowed to fill entire sites. For instance, if you want to allow panel docking only to the right or left edges of sites, set the AllowDock property to [dtLeft, dtRight]. (At design-time, you need to set the dtLeft and dtRight flags of the AllowDock property to True and set the other flags to False to implement this).

If an empty set is assigned to the AllowDock property, the dock control can be floating only and its AllowFloating property is automatically set to True. If the dock control was already docked to a site, it is set to float automatically. (To achieve this effect at design-time, set all the AllowDock flags to False).

Note that the target site’s AllowDockClients property must allow the dock operation. Otherwise, it will not succeed, even if the AllowDock property of the control being docked is set to True.

Important

The AllowDock and AllowDockClients properties are taken into account only when performing the docking operation.

See Also