![]() |
How Can I? |
Post Reply ![]() |
Author | |
moe188 ![]() Senior Member ![]() Joined: 27 March 2006 Status: Offline Points: 220 |
![]() ![]() ![]() ![]() ![]() 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!!!
![]() |
|
![]() |
|
gaudetm ![]() Senior Member ![]() ![]() Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
moe188 ![]() Senior Member ![]() Joined: 27 March 2006 Status: Offline Points: 220 |
![]() ![]() ![]() ![]() ![]() |
hi,
what is 9531?
and you are saying to use tabindex in order to detect wich tab is clicked?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, Instead 9531 use XTP_ID_RIBBONCONTROLTAB constant. (Now it is 9531 but can be changed in future)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
moe188 ![]() Senior Member ![]() Joined: 27 March 2006 Status: Offline Points: 220 |
![]() ![]() ![]() ![]() ![]() |
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,
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Yes, it was added in 10.2. There was no event in 10.1.1
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
moe188 ![]() Senior Member ![]() Joined: 27 March 2006 Status: Offline Points: 220 |
![]() ![]() ![]() ![]() ![]() |
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.
![]() |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |