Print Page | Close Window

Ribbonbar question

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=4377
Printed Date: 21 June 2025 at 8:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbonbar question
Posted By: moe188
Subject: Ribbonbar question
Date Posted: 08 June 2006 at 7:01pm

Hi, I asked this question before but I did not get the answer expected. now, how can I be able to let my program to do following things:

1- when the user click a tab in the ribbonbar called "Appointment", I want the calendar control to be displayed, and whatever was on the screen will not be visible.

2- then when the user click another tab on the same ribbonbar called "Contact" the calendar control will be invisible and another control will be visibe to the user.

Note: I am using VB6 and Xtreme CommandBars 10.1.1

Thank you,

 




Replies:
Posted By: jcollier
Date Posted: 09 June 2006 at 11:18am
moe,

I don't know if this is the correct way but here's how I did it.  You may want to devise a way to only run this once instead of every time the commandbars_update event fires though.

In the CommandBars_Update event:

Dim tabSelected as RibbonTab

Set tabSelected = RibbonBar.Tab(0)
if tabSelected.Selected = True then Do Something Here

Set tabSelected = RibbonBar.Tab(1)
if tabSelected.Selected = True then Do Something Else Here



Posted By: jcollier
Date Posted: 09 June 2006 at 11:18am
Forgot to mention that I am using version 10.2


Posted By: moe188
Date Posted: 10 June 2006 at 7:13pm

Hi,

so you ssaying that even with the release of the 10.2 version, there is no way you can use 'control.id' to identify which tab is clicked?

 



Posted By: jcollier
Date Posted: 10 June 2006 at 11:07pm
Not that I can find.



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