Programmatically select a tab |
Post Reply |
Author | |
RedFin
Groupie Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
Post Options
Thanks(0)
Posted: 15 December 2011 at 4:14pm |
Hello, I am looking for a way to programmatically select a tab in a ribbon control. That is, when the user does something in the application, I want to force a particular ribbon tab to become active. Is this possible? Thanks, Rohan |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I once tried to show menu item with .Execute method so I guess this would be same... Something like: Ribbon.FindControl(,<ID>,,True).Execute
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Carlos Rocha
Groupie Joined: 11 February 2008 Location: Portugal Status: Offline Points: 92 |
Post Options
Thanks(0)
|
oMyRibbonTab.Selected = true will do the trick
|
|
SuitePro 20.3.0
OS: Windows 10 Language: Visual Objects 2.8 |
|
faakher
Groupie Joined: 26 June 2010 Location: Saudia Arabia Status: Offline Points: 24 |
Post Options
Thanks(0)
|
If you are using VB6 and you've created Ribbon Bar as mentioned in CJ's Command Bars Sample, this will definitely work for you:
RibbonBar.Tab(Index).Selected = True Where Index refers to your desired tab's index.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.1
Platform: Windows XP Professional - SP2 Language: Visual Basic 6.0 SP6 |
|
RedFin
Groupie Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Hi Aaron, Thanks ! Rohan |
|
RedFin
Groupie Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Thanks faakher, I appreciate your reply!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |