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

TdxBarManager.DoDocking(TdxBar,TdxBarDockingStyle,TdxDockControl) Method

Checks whether a toolbar can be moved and fires the OnDocking event.

#Declaration

Delphi
function DoDocking(ABar: TdxBar; AStyle: TdxBarDockingStyle; ADockControl: TdxDockControl): Boolean; virtual;

#Parameters

Name Type
ABar TdxBar
AStyle TdxBarDockingStyle
ADockControl TdxDockControl

#Returns

Type
Boolean

#Remarks

The DoDocking method is called when changing a toolbar’s position. This method checks if the docking style specified by the AStyle parameter is a valid docking style for the toolbar specified by the ABar parameter or for the current bar manager. If it is a valid docking style the return value is True and the toolbar’s position can be changed, otherwise the toolbar can’t be moved. The ADockControl parameter specifies the location of the toolbar (its dock control).

The DoDocking method also fires the OnDocking event.

Override the DoDocking method to perform specific actions when changing a toolbar’s position.

See Also