I'm using your UltraToolbarsManager (with Ribbon) in my application and was wondering how you determine what Tab the user has clicked. I do not find an event that would process that functionality. Or a property to set.
Have I just missed it completely?
Thanks ahead of time.
Patrick
I'm using Infragistics ver 7.3 not 8.2.
I am handling the tab events when a form is active, so the main tab is shown to the user for each form. See code below:
Protected Overrides Sub OnMdiChildActivate(ByVal e As System.EventArgs) MyBase.OnMdiChildActivate(e) Dim activeChildManager As UltraToolbarsManager = Me.UltraToolbarsManager1.ActiveMdiChildManager '....................................... If Not activeChildManager Is Nothing Then Dim childTab As RibbonTab = activeChildManager.Ribbon.Tabs(0) Dim parentTab As RibbonTab = childTab.AttachedParentTab If Not parentTab Is Nothing Then Me.UltraToolbarsManager1.Ribbon.SelectedTab = parentTab Else End If Else End If End Sub
==========================================================
My fault for indicating "this particular form", its not any different than alll the other forms I'm using.
Currently the only controls on my forms, are your "UltraToolbarsManager",. "UltraGrid", and "UltraListBar" for now. I also found that
the "AfterRibbonTabSelected" and "BeforeRibbonTabSelected" events react the same way with any of my forms after testing them. They are
only actived on the loading of the form, and are never called after that (when the user clicks on another tab)
MDIMergeable = True for all "UltraToolbarsManager" controls
IsMdiContainer = False for all forms
I'm not sure what else you might need to check this out.
Thanks,
I just tested this in 8.2 and did not have any issues. Are you handling the events for the parent ribbon or the child ribbon? Also, you said "this particular form", anythign special about that form. What controls are on it?
I've tried this and it does not seem to work correctly.
First, I have an MDI app with several child forms. When I load this particular child form those two events do fire off, but when I try clicking a Tab after the form loads they do not fire off. Whats up?
You could probably use either the BeforeRibbonTabSelected event or the AfterRibbonTabSelected event.
http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Infragistics2.Win.UltraWinToolbars.v8.2~Infragistics.Win.UltraWinToolbars.UltraToolbarsManager_members.html#EventsBookmark