This is a migrated thread and some comments may be shown as answers.

Document name highlighting in docking manager.

3 Answers 70 Views
Dock
This is a migrated thread and some comments may be shown as answers.
RAGHAVENDRA
Top achievements
Rank 1
RAGHAVENDRA asked on 28 Jan 2011, 01:52 AM
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

3 Answers, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 02 Feb 2011, 03:34 PM
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.
0
RAGHAVENDRA
Top achievements
Rank 1
answered on 02 Feb 2011, 06:00 PM
Thanks a lot.
But I am not using a raddock. I am using a docking manager.
0
Ivan Petrov
Telerik team
answered on 07 Feb 2011, 01:33 PM
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.
Tags
Dock
Asked by
RAGHAVENDRA
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
RAGHAVENDRA
Top achievements
Rank 1
Share this question
or