Bug Report T150351
Visible to All Users

TcxSplitter - Assigning the Control property raises an exception if the splitter handle is not allocated yet

created 11 years ago

Hello Support Team,

in the latest 2014.1.4 update I encountered new issue.
In my code I create the small controls subtree, and then assign the Parent property of the top-level TPanel.
Here is the idea:

// create top-level panel
    p:=TPanel.Create(Self);

// top panel
    top:=TPanel.Create(Self);
    top.Parent:=p;
    top.Align:=alClient;

// bottom panel
    bottom:=TPanel.Create(Self);
    bottom.Parent:=p;
    bottom.Align:=alBottom;

// splitter between top and bottom panel
    s:=TcxSplitter.Create(Self);
    s.Parent:=p;
    s.AlignSplitter:=salBottom;
    s.Control:=bottom;  // <---- here get InvalidOperationException with "Control '' have no parent window"

// decide where to place entire subtree
    p.Parent:=Self;

Seems earlier versions works fine.
Could you please check this issue?

Comments (1)
DevExpress Support Team 11 years ago

    Serge,

    Thank you for your report. I have reproduced the described behavior and forwarded this ticket to our developers for research.

    Answers approved by DevExpress Support

    created 11 years ago (modified 11 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Other Answers

      created 10 years ago

      Hi!
      How can I get the hotfix

        Show previous comments (4)
        DevExpress Support Team 10 years ago

          Alexander,

          This seems to be a different problem, which we are going to fix in the context of the Two cxSplitters assigned to one TPanel hangs Delphi XE3 ticket. I thought you meant that the hotfix provided here (in this T150351 ticket) does not fix the "Control '' have no parent window" error. Now I see that I misunderstood you.

          AS AS
          Alexander Shipilin 10 years ago

            Hello, Paulo
            Can you fix this bug and publish the hot fix for it
            Best Regards,
            Alexander

            DevExpress Support Team 10 years ago

              Hello Alexander,

              The problem described in the context of this ticket is fixed and the correct code will be included in the upcoming VCL 14.1.5 release. However, the issue described at Two cxSplitters assigned to one TPanel hangs Delphi XE3 is not fixed yet. We are still working on it and going to fix it in the near future. You will be able to request a fix then.

              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.