RADDOCK TOOLTABSTRIP

6 posts, 1 answers
  1. Satyajeet B
    Satyajeet B avatar
    11 posts
    Member since:
    Aug 2009

    Posted 18 Sep 2009 Link to this post

    Hi there,

    how can i disable close button which is on the right top corner of the toolwindow?
    I have tried Caption visible property. But i want the other two button to be visible  and only close button to be disabled.

    Thanks,
    Satyajeet
  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 18 Sep 2009 Link to this post

    Hi Satyajeet B,

    The CloseButton can be hidden at a ToolWindow level. Please consider using the following code snippet:
    toolWindow1.ToolCaptionButtons = ToolStripCaptionButtons.AutoHide | ToolStripCaptionButtons.SystemMenu;  
    toolWindow2.ToolCaptionButtons = ToolStripCaptionButtons.AutoHide | ToolStripCaptionButtons.SystemMenu; 

    This will show only the AutoHide (pin) button and the dropdown menu button for ToolWindow1 and ToolWindow2. The CloseButton, however, will be hidden.

    I hope this helps. If you have additional questions, feel free to contact me.

    Greetings,
    Nikolay
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Cyril.T
    Cyril.T avatar
    2 posts
    Member since:
    Oct 2009

    Posted 09 Nov 2009 Link to this post

    Hello
    I do have the same question
    I did tried with your method
    And it did not work

    Here a sample of the code :

                test = !test; 
                Telerik.WinControls.UI.Docking.ToolWindow window = ((frmTest)this.ParentForm).dockPanel; 
                if(test) 
                    window.ToolCaptionButtons = Telerik.WinControls.UI.Docking.ToolStripCaptionButtons.AutoHide | Telerik.WinControls.UI.Docking.ToolStripCaptionButtons.SystemMenu; 
                else 
                    window.ToolCaptionButtons = Telerik.WinControls.UI.Docking.ToolStripCaptionButtons.AutoHide | Telerik.WinControls.UI.Docking.ToolStripCaptionButtons.SystemMenu | Telerik.WinControls.UI.Docking.ToolStripCaptionButtons.Close; 
     

    This is the code I place in the event button of a UserControl.
    So every time I press it, it's suppose to show/hide the close button, but nothing happens ...

    Any Idea ?
    Thx
  5. Cyril.T
    Cyril.T avatar
    2 posts
    Member since:
    Oct 2009

    Posted 09 Nov 2009 Link to this post

    Ok, I did found out where I'm getting the problem.
    I'm using the DockControl method to add directly my userControl and not DockWindow (thi way I have to create a ToolWindow ... Why ???)

    Is the any way I can hide the close buton whiout by using DockControl ? (Even if we create a toolwindow, it's not working threw DockControl ...)

    Thx
  6. AJ
    AJ avatar
    2 posts
    Member since:
    Jun 2008

    Posted 10 Nov 2009 Link to this post

    How can we do that at design time?

     


    Thanks
    AJ
  7. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 17 Nov 2009 Link to this post

    Hi AJ,

    It is possible to set the ToolCaptionButtons property at desgin-time. Just select the a ToolWindow from the designer and choose the desired option from the property grid. However, please note that you can choose only one of the predefined options, but not a combination of them.

    As to your feedback Cyril. T, you are correct. Currently, we have an issue with setting the ToolCaptionButtons property when the DockWindow is a HostWindow. We will address this issue in one of our next releases. For the time begin, please first add a ToolWindow using the DockWindow method and then load the desired content. I am updating your Telerik points for the report.

    If you have additional questions, feel free to contact me.

    Best wishes,
    Nikolay
    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready