Skip to main content

How to Disable Moving, Docking and Customizing of Toolbars

In order to disable runtime changes to a toolbar, set its AllowCustomizing and AllowQuickCustomizing properties to False.

To disable toolbar docking to a dock control, use the toolbar’s NotDocking property. If NotDocking includes dsNone, the floating toolbar cannot be moved.

The following code disables moving, changing, and docking of a toolbar.

// ...
with dxBarManager.Bars[0] do
begin
  AllowCustomizing := False;
  AllowQuickCustomizing := False;
  NotDocking := [dsNone,dsLeft,dsTop,dsRight,dsBottom];
end;