Hello,I've got a tabbedMdi and an ultraDockManager on my form.It's similar to VisualStudio 2012.When I click on the ultraDockHeader it get's its active color, when I click on the mdiTab, color is set to normal.But it doesn't work the other way round. When I click on a ultraDockHeader, the mdiTab doesn't loose its active color. Both are selected, but the focused one is the ultraDockControl.How can I solve this problem. I only need to know how to change the color of the mdiTab, to simulate a lost focus.Thanks for your help,Max
Hello Max,
This behavior is to be expected because the dock controls and the mdi tabs are two separate controls. Because only one dock control can be selected by default you can change it's focused appearance. However the docked controls' caption area will not change focus by default. I attached a sample that demonstrates this below. It includes a couple docked controls that change their appearance when focused.
The tabs in this scenario are never focused, just selected and active. You can handle the PaneActive event and determine which control is active and modify the tabs back ground color.
Let me know if you have any questions.
Hi,this solution is working nearly perfect. Only one problem is left.When the dockedControl is active and I click on the tabItem in the tabArea of mdiManager nothing happens. I think because the tab is active, so no event is thrown where I can change the color of the tab again.At the moment I use this two Events of dockManager:
void ultraDockManager1_PaneDeactivate(object sender, ControlPaneEventArgs e) { this.ultraTabbedMdiManager1.StyleSetName = "Default"; }
void ultraDockManager1_PaneActivate(object sender, ControlPaneEventArgs e) { this.ultraTabbedMdiManager1.StyleSetName = "InactiveMdiTab"; this.ultraDockManager1.PaneDeactivate -= ultraDockManager1_PaneDeactivate; this.ultraDockManager1.PaneDeactivate += ultraDockManager1_PaneDeactivate; }
Thanks for your helpMax
Thanks your update. There is the TabActivated event you can look into:
http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=Infragistics4.Win.UltraWinTabbedMdi.v14.1~Infragistics.Win.UltraWinTabbedMdi.UltraTabbedMdiManager~TabActivated_EV.html
Let me know if this helps and if have any additional questions.
Hello,this is the correct event, but the tab is active, even after I clicked the somwhere outside the tabbedmdi.So the TabActivatet Event is never fired, because the tab is already active.Max