TdxBarManager.DoDocking(TdxBar,TdxBarDockingStyle,TdxDockControl) Method
Checks whether a toolbar can be moved and fires the OnDocking event.
Declaration
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