Document name highlighting in docking manager.

4 posts, 0 answers
  1. RAGHAVENDRA
    RAGHAVENDRA avatar
    17 posts
    Member since:
    Dec 2010

    Posted 27 Jan 2011 Link to this post

    Hi all,
    I have a docking manager in my project which all the tabs are populated and they can be closed whenever needed. My issue is that, the CURRENT TABS name should be bold and the names of the remaining tabs should not be so. I am using the dockingmanager_tabchanging to do this, but the problem is that i am not able to undo the changes to the style to the previous tab. So if I have 3 tabs open and I click on one tab, the font changes to bold, now when I click on the next tab the previous TAB'S bold style needs to go away. How can I do this? Can I get a count of the tabs in the docking manager and undo all the styles or something like that I could not do it. Any help would be greatly appreciated. 

    Private Sub dockingManager_DockTabChanged(ByVal sender As Object, ByVal e AsTelerik.WinControls.Docking.DockTabChangedEventArgs) HandlesdockingManager.DockTabChanged

       In this event e.Tab.Text just gives the changed tab text.
       Is there any way we can change the text style of all the tabs that are open. Probably some where deep    down the object structure. Again any help would be great.   

        

     End If


    Thanks
  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 02 Feb 2011 Link to this post

    Hi RAGHAVENDRA,

    Thank you for writing.

    You can achieve this behavior by modifying the theme you are using. If you are using a predefined theme, you need to export it, edit it and apply it to your application.

    Here is an article on how to export the built-in themes.
    You can watch videos on how to edit controls' themes on Telerik TV. Here is the Styling Basics with Visual Style Builder. Here is an article on How to save theme files and how to load them in an application.

    For the scenario you are trying to achieve, you need to navigate to:
    RadDock>>DocumentWindow>>TabStripElement>>TabItem
    in the Visual Style Builder select TabItemText(TextPrimitive) from the Elements panel and set its Text property according to your needs. You can look at the attached screenshot to get a better idea of what I wrote above. Note that you will have to set values for all states of the element you are using if you want to achieve the scenario. In your case they are just the normal state and the Selected state.

    I hope this will help you out. If you have further need of assistance, I would be glad to provide it.

    Greetings,
    Ivan Petrov
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. RAGHAVENDRA
    RAGHAVENDRA avatar
    17 posts
    Member since:
    Dec 2010

    Posted 02 Feb 2011 Link to this post

    Thanks a lot.
    But I am not using a raddock. I am using a docking manager.
  5. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 07 Feb 2011 Link to this post

    Hello RAGHAVENDRA,

    Thank you for coming back to us.

    DockingManager is our old docking control which we do not develop and support for two years now. I would strongly recommend that you start using the new control RadDock which has many improvements compared to the old one.

    If you need anything else, feel free to ask.

    Kind regards,
    Ivan Petrov
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Back to Top