Is there a way to cycle through tabs? I want to use the Alt+Right Arrow to move to the next tab, once I reach the last tab I want it to wrap around back to the first tab. Using Alt+Left Arrow I want to do the opposite. If there is no way to currently do this can you tell me which event I should use to trap the keystroke. Should it be KeyDown?
Hi Michael,
I have constructed and attached a commented sample which demonstrates this behavior.
Please find the sample attached.
Note: The purpose of the ultraButton in this sample is to draw focus from the ultraTabControl's tabs, which already exhibit cycling behavior using just the Left/Right directional keys, but only when they are in focus.
If you have any further questions regarding this behavior, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
This works great for the ones that are using UltraTabControl but I am not always using the ultraTabControl.
Usually I use UltraTabbedMdiManager.
The tabs are created through UltraExplorerBarContainerControl once added to UltraTabbedMdiManager these containers become tabs. The containers have UltraWinDock.DockAreaPane added to them and inside of that a DockableControlPane is created. This results in a tab being created inside the UltraExplorerBarContainerControl The result looks like the image provided. In this process we do not use UltraTabControls at all.
The image provided shows Suport Center and Contact Management both are Explorer Bar Container Controls that are placed in the Tabbed Mdi Manager and become tabs. Below support center are two more tabs Michael Halsig and Dev Group. These are Dockable Control Panes added to the Dock Area Pane. The result is two tabs. I want to be able to cycle through Tabbed Mdi Manager with the Alt+Left or Right and I want to be able to cycle through the tabs in the Dock Area Pane using CTRL+Left or Right.
I have attached a commented variation of the first approach that I have developed for you, this one regarding the cycling of Mdi tabs via the Ctrl + left/right directional keys.
If you have any questions at all regarding either of these approaches or if I have misunderstood your intention, please let me know.
Sorry I have been on vacation.
Yes, it helped me cycle through the top level tabs. I had to makes several changes to the code and I am not sure why.
The line below always returned 1 for the count even though I had 3 tabs open.
ultraTabbedMdiManager1.TabGroups.Count
I had to change the code to this.
this.ultraTabbedMdiManager.TabGroups[0].Tabs.Count
Using the code provided I tried to get to the second level tabs to cycle through them however I could not figure out how to access them.
I can’t really discern this from your screen shot, but are the second level of tabs also mdiTabs or are these being implemented via the UltraTabbedManager?
Also, would it be possible to provide a small sample which demonstrates the basic layout of your application for further context?
The second level tabs are created from an explorer bar pane. They are explorer bar group tabs.