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

How to Dock a Floating Toolbar to its Previous Position Upon Closing

To implement this feature, you must handle a bar manager’s OnBarClose event as shown in the following code example.

// ...
procedure TMainForm.dxBarManagerBarClose(Sender: TdxBarManager; ABar: TdxBar);
begin
  if ABar.DockingStyle = dsNone then
  begin
    ABar.DockingStyle := ABar.DockedDockingStyle;
    ABar.Visible := True;
  end;
end;