I know that this not possible to put directly the docking controls into a Frame in Design-time (not sure why), however I wonder if this is other possibility to do that maybe in Run-time, please advise which should be a good strategy to do that.
Alternatives to put DockControls (TdxDockPanel, TdxDockSite) onto a Tframe
Answers approved by DevExpress Support
Hello,
You are right. Dock panels cannot be placed on frames at design time. However, you can add dock panels to your frame when it is placed on a form. I attached a project to demonstrate this idea.
DelphiSelf.DisableAlign;
frame := TFrame2.Create(Self);
dxDockSite1 := TdxDockSite.Create(Self);
dxDockSite1.AutoSize := True;
dxDockSite1.Align := alBottom;
dxDockSite1.Parent := frame;
dock := TdxDockPanel.Create(Self);
frame.Parent := Self;
frame.Align := alClient;
dock.DockTo(dxDockSite1, dtClient, 0);
Self.EnableAlign;
frame.Visible := True;