Trapping RibbonTab Execute Event |
Post Reply |
Author | |
tbarnes8978
Newbie Joined: 24 March 2008 Status: Offline Points: 1 |
Post Options
Thanks(0)
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! |
|
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
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
|
|
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 |