Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How Can I?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How Can I?

 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: How Can I?
    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!!!
 
Back to Top
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post 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
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: 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?
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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: 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,
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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: 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.
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.