Ticket T1285653
Visible to All Users

Alternatives to put DockControls (TdxDockPanel, TdxDockSite) onto a Tframe

created 7 days ago

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.

Answers approved by DevExpress Support

created 6 days ago

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.

Delphi
Self.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;

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.