Welcome to the Xceed Community | Help
Community Search  
More Search Options

How do I size docking windows to meet in middle of window?

Sort Posts: Previous Next
  •  05-27-2010, 6:06 PM Post no. 26994

    How do I size docking windows to meet in middle of window?

    I've created a couple of ToolWindows, one that docks at the top of my window and the other that docks at the bottom of my windows.  So far this works great.  What I would like to do is size the two ToolWindows so that they meet at the midpoint vertically on the window.

    What would be the proper way to do this?

    NOTE: I also find that I manually can't resize the ToolWindows to meet in the middle.  It always leaves a white gap.  I think this might be caused by the menu at the top that seems to mess up the window locations.  I'll write that up as a separate question.

    Thanks,

    Mike

    Filed under:
  •  05-27-2010, 7:33 PM Post no. 26997 in reply to 26994

    Re: How do I size docking windows to meet in middle of window?

    In looking at the PropertyExplorer sample app I see that it doesn't use a panel to dock to.  Instead it passes null to DockLayoutManager which just docks to the form itself.  Using that approach I find the grids in the middle meet just exactly as I would expect.  I'm confused why docking to the form instead of a panel in the form would have such different results. I actually made this change to try to fix another problem I posted and found it helped here.

    If this is some kind of setting to make this work within a panel I would still be interested in a response.

    Thanks, Mike

    Filed under:
  •  06-08-2010, 4:15 PM Post no. 27111 in reply to 26997

    Re: How do I size docking windows to meet in middle of window?

    Hi Mike,

    The gap between the two is the ClientHost I presume. Setting the ClientHost to null on the DockLayoutManager should do the trick.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.