Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Programmatically select a tab
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Programmatically select a tab

 Post Reply Post Reply
Author
Message Reverse Sort Order
RedFin View Drop Down
Groupie
Groupie
Avatar

Joined: 26 March 2008
Location: Australia
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedFin Quote  Post ReplyReply Direct Link To This Post Topic: Programmatically select a tab
    Posted: 18 December 2011 at 4:39am
Thanks faakher, I appreciate your reply!
Back to Top
RedFin View Drop Down
Groupie
Groupie
Avatar

Joined: 26 March 2008
Location: Australia
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedFin Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
faakher View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2010
Location: Saudia Arabia
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote faakher Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Carlos Rocha View Drop Down
Groupie
Groupie


Joined: 11 February 2008
Location: Portugal
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote Carlos Rocha Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
RedFin View Drop Down
Groupie
Groupie
Avatar

Joined: 26 March 2008
Location: Australia
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedFin Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.