Change Tabs in Ribbon Control dynamically - C++
-
Hello Everybody, In our application we have added a Ribbon control with multiple tabs. Is there anyway to select / change tabs through code? I can see an option available in C# (SelectedIndex), like that is there anything available in C++ also? for eg, I am in 3rd tab in my application, and when I reset, first tab needs to be selected. Thanks in advance. Regards, Gopinath.
-
Hello Everybody, In our application we have added a Ribbon control with multiple tabs. Is there anyway to select / change tabs through code? I can see an option available in C# (SelectedIndex), like that is there anything available in C++ also? for eg, I am in 3rd tab in my application, and when I reset, first tab needs to be selected. Thanks in advance. Regards, Gopinath.
-
Hi Thaddeus Jones, Thanks for your reply. I don't see any option like isSelected in RibbonControl tabs. Can you give me a sample code if any, so that I will get some idea. Regards, Gopi.
-
It's on the RibbonTab: RibbonTab.IsSelected Property (System.Windows.Controls.Ribbon)[^].
-
It's on the RibbonTab: RibbonTab.IsSelected Property (System.Windows.Controls.Ribbon)[^].
Your answer is for the .NET Framework, but I think the OP's question is about native C++.
The difficult we do right away... ...the impossible takes slightly longer.
-
Your answer is for the .NET Framework, but I think the OP's question is about native C++.
The difficult we do right away... ...the impossible takes slightly longer.
-
Your answer is for the .NET Framework, but I think the OP's question is about native C++.
The difficult we do right away... ...the impossible takes slightly longer.
-
Because of the comparison with the C# version I expected it to be about the same control, but you may be right. In the
CMFCRibbonBar
, tabs are called categories and they can be set withSetActiveCategory()
.