TdxCustomDockControl.Dockable Property
Specifies whether the dock control can be docked to other dock controls.
Declaration
property Dockable: Boolean read; write; default True;
Property Value
Type | Default |
---|---|
Boolean | True |
Remarks
Set the Dockable property to False to prevent end-users from performing docking operations on this docking control. Once this has been done, end-users are unable to change the control’s state or position. However, docking operations can still be performed via code.
If the Dockable property is set to True, the dock control can be docked as specified by its AllowDock property and by the AllowDockClients properties of dock sites.
You can also restrict a dock control to be in a floating or docked state only. For a control always to float, set its AllowDock property to an empty set. If you need to force the control to be always docked, set the control’s AllowFloating property to False.
Note
if the dock control allows docking other controls onto it, they can be joined into a container site. For instance, two panels can be joined into a tab container. In this case, the tab container can be docked independently of its children’s properties. Thus, if you want to make sure that a panel is not moved anywhere, you can prohibit docking other controls onto it to avoid creation of such a container. This can be done using the AllowDockClients property. The another method is handling container site creation to modify their settings to prohibit their docking. Please refer to the OnCreateTabContainer and OnCreateSideContainer events description for more information.
The default value of the Dockable property is True.