Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Ribbonbar question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbonbar question

 Post Reply Post Reply
Author
Message
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Topic: Ribbonbar question
    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,

 

Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2006 at 11:18am
Forgot to mention that I am using version 10.2
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post 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?

 

Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2006 at 11:07pm
Not that I can find.
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.047 seconds.