Print Page | Close Window

Ribbon Sample

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=8910
Printed Date: 16 May 2024 at 9:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon Sample
Posted By: XpatTech
Subject: Ribbon Sample
Date Posted: 26 November 2007 at 7:38pm
Very new to this so please excuse. All I want to do is know which tab is pressed, how hard can that be. For me its bloody hard as I have not got a clue....

Extract from Ribbon Sample below..

 
  Select Case Control.Id
        Case XTPCommandBarsSpecialCommands.XTP_ID_RIBBONCONTROLTAB:
            Debug.Print "Selected Tab is Changed"


This tells me selected tab has changed but not which one.




Replies:
Posted By: Oleg
Date Posted: 27 November 2007 at 1:06am
Hi,
 
Use RibbonBar.SelectedTab


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: XpatTech
Date Posted: 27 November 2007 at 3:24am
Where in the sample would I retrieve which is clicked ?

Sorted it...  ribbonbar.selectedtab.index worked for me.



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