Print Page | Close Window

Programmatically select a tab

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=19318
Printed Date: 26 November 2024 at 6:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Programmatically select a tab
Posted By: RedFin
Subject: Programmatically select a tab
Date 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




Replies:
Posted By: Aaron
Date Posted: 16 December 2011 at 12:53am
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....


Posted By: Carlos Rocha
Date Posted: 16 December 2011 at 11:30am
oMyRibbonTab.Selected = true will do the trick


-------------
SuitePro 20.3.0
OS: Windows 10
Language: Visual Objects 2.8


Posted By: faakher
Date Posted: 16 December 2011 at 3:01pm
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


Posted By: RedFin
Date Posted: 17 December 2011 at 4:11pm

Hi Aaron,

Thanks for the reply. You got me in the right direction ... there's a "FindTab" method with a "Selected" property.  I feel somewhat embarrassed that I didn't see that Embarrassed

Thanks !


Rohan



Posted By: RedFin
Date Posted: 18 December 2011 at 4:39am
Thanks faakher, I appreciate your reply!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net