Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Trapping RibbonTab Execute Event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trapping RibbonTab Execute Event

 Post Reply Post Reply
Author
Message
tbarnes8978 View Drop Down
Newbie
Newbie


Joined: 24 March 2008
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote tbarnes8978 Quote  Post ReplyReply Direct Link To This Post Topic: Trapping RibbonTab Execute Event
    Posted: 24 March 2008 at 4:47pm
I have a RibbonBar with 5 tabs.
I run my application and trying to identify which tab was clicked in the commandbar_even() event; but I can't find it anywhere.

I appreciate any help someone can give.

Thanks!

Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2008 at 8:54pm
When you select any control in a ribbonBar e Execute() event is fired, the same occurs when you click on a Tab.
 
we have some special Ids to identify this controls :
 

#DEFINE XTP_ID_RIBBONCONTROLTAB           9604 

#DEFINE XTP_ID_RIBBONCUSTOMIZE            9607 

#DEFINE XTP_ID_CUSTOMIZE_ADDORREMOVE      9122 

#DEFINE XTP_ID_CUSTOMIZE_RESET            9123 

#DEFINE XTP_ID_TOOLBAR_EXPAND             9148 

#DEFINE XTP_ID_TOOLBAR_HIDE               9149 

#DEFINE XTP_ID_WORKSPACE_CANCEL           9159 

#DEFINE XTP_ID_WINDOWLIST                 35000

#DEFINE XTP_ID_WORKSPACE_ACTIONS          35002

#DEFINE XTP_ID_TOOLBARLIST                59392

 
you need to check this ids in Execute event, this code (MS VFOXPRO) can give you some idea ...
 
if control.id = XTP_ID_RIBBONCONTROLTAB
   oRibbon = control.parent
   oTab = oRibbon.selectedTab
 
   ? oTab.Id, oTab.Caption
endif
 

 

wlcabral
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.