Fixed splitter on tool window

6 posts, 0 answers
  1. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Aug 2009 Link to this post

    Hello,

    I have a tool window in a Rad Dock on a form. I've set the Allowed Dock states so it can only be docked or hidden, but I also want to ensure that apart from this, it cannot grow or shrink (like having a fixed splitter). Is there a way to do this please?

    Thanks

    Richard
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 14 Aug 2009 Link to this post

    I've found that by aetting the splitter width to 0, this gets around half the issue.

    When the window is in docked state, no splitter is shown. When the window is in hidden state, it allows me still to resize the window. Is there a way of preventing this?
    Thanks
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 18 Aug 2009 Link to this post

    Hi Richard Slade,

    When the hidden state is not visible the window cannot change its size visually so I thing that your scenario should be in auto hide mode where you can use the following code snippet:

     
    AutoHidePopup autoHidePopup = this.toolWindow2.FindForm() as AutoHidePopup; 
    if (autoHidePopup != null
        autoHidePopup.FixedSplitter = true

    I hope this is helpful.

    Regards,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Alex Lin
    Alex Lin avatar
    3 posts
    Member since:
    Feb 2009

    Posted 29 Dec 2009 Link to this post

    Hi,

    I am having the same issue, and I am wondering if there is another way to have a fixed splitter other than setting the width of the splitter to 0?

    Thank you,
    Alex
  6. Nick
    Admin
    Nick avatar
    767 posts

    Posted 30 Dec 2009 Link to this post

    Hello Alex Lin,

    Thank you for contacting us. Please refer to this forum post about fixed splitters.

    Kind regards,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Alex Lin
    Alex Lin avatar
    3 posts
    Member since:
    Feb 2009

    Posted 31 Dec 2009 Link to this post

    Hi,

    Thank you, I was able to find the solution in the link you provided

    Happy New Year
    Alex
Back to Top
UI for WinForms is Visual Studio 2017 Ready