0

I have an SDI project, I want to dock a form in TDxdocpanel dynamyqe in C# it's easy

dxdocpanel.contols.add(myform);

However in Delphi I find a lot of difficulty,especially with this error

project raised exception class EInvalidOperation with the message 'Control 'TdxDockPanel($0CD5E660)' has no parent window. Path : f_main .TdxDockPanel($0CD5E660)'.

dockme(f_matriels); procedure Tf_console.dockme(mform:tform); var Apanel:TdxDockPanel; bts:TdxCaptionButtons; begin Apanel:=TdxDockPanel.Create(self); Apanel.CaptionButtons:=[cbClose]; Apanel.AllowFloating:=false; Apanel.DockTo(dxDockSite1,dtClient,0); mform.Dock(Apanel,mform.Canvas.ClipRect); Apanel.show; end; 
2
  • 1
    You say: ... but on delphi I find a lot of difficulty. It would help to understand your problem if you would explain what difficulties you find. Please include all relevant details. Commented Mar 2, 2024 at 12:47
  • Such as error messages or what happens Commented Mar 2, 2024 at 15:08

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.