Print Page | Close Window

How Can I?

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=5145
Printed Date: 20 June 2025 at 3:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How Can I?
Posted By: moe188
Subject: How Can I?
Date Posted: 25 September 2006 at 8:20pm
my form contain the following:
RibbonBar, Listview and CalendarControl.
the ribbonbar contain 3 tabs, and the when the program start the focus is set on the 1st tab with the listview visible (and the calendarcontrol.visible=false). now I want to have the calendarcontrol to become visible when the user click on the 2nd tab, and the listview.visible=false.
I am using vb6 and 10.1.1
PLEASE HELP!!!
 



Replies:
Posted By: gaudetm
Date Posted: 25 September 2006 at 11:58pm
what about using the code here
 
sub commandbars1_execute()
    Select Case Control.ID
    Case 9531 'Tab click
         if ribbon.selectedtab.index =0 then
              listview1.visible =true
              calendarcontrol1.visible=false
         elseif ribbon.selectedtab.index =1 then
              listview1.visible =false
              calendarcontrol1.visible =true
         end if
    ....
    case else
    end select
end sub


Posted By: moe188
Date Posted: 26 September 2006 at 8:31am
hi,
what is 9531?
and you are saying to use tabindex in order to detect wich tab is clicked?
 


Posted By: Oleg
Date Posted: 26 September 2006 at 2:49pm
Hello, Instead 9531 use XTP_ID_RIBBONCONTROLTAB constant. (Now it is 9531  but can be changed in future)

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


Posted By: moe188
Date Posted: 26 September 2006 at 5:29pm
hi,
XTP_ID_RIBBONCONTROLTAB, it's not working, and it seems there is no way in doing what I am trying to do using the 10.1.1 version, but if there is a way, please let me know.
thank you,
 


Posted By: Oleg
Date Posted: 27 September 2006 at 2:51am
Hello,
 
Yes, it was added in 10.2. There was no event in 10.1.1


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


Posted By: moe188
Date Posted: 27 September 2006 at 4:05pm
Hi Oleg,
so are you telling me that there is no other way to fix this problem. I really need to have this problem solved, otherwise I have to rewrite the code from scratch, so please help if you can (I know you can ).
Thank you.
Note: I cannot upgarde to 10.2 now, because the subscription is expired.
 


Posted By: Oleg
Date Posted: 28 September 2006 at 9:15am

Hi,

As quite weird workaround you can add global variable and check in Update event what Tab is active and compare it with variable.


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



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