Print Page | Close Window

switching to another tab

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=13147
Printed Date: 07 October 2024 at 6:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: switching to another tab
Posted By: Marino
Subject: switching to another tab
Date Posted: 12 January 2009 at 9:30am
Hi,

I have ribbon bar with 2 tabs, the second is hidden and have checkbox controls. On the first tab I have few button controls ... I want to set that on click on a button the second tab is shown and automaticly switched on it ... does exist any event or something how to switch and open tabs from code?

Thanks,

Marino


-------------
product.:.XtremeSuitePro 12.0.2
OS.:.Windows XP sp3 (32bit) / Windows Vista sp1 (32bit)
Language.:.Clarion 6.1.9025



Replies:
Posted By: chrisABC
Date Posted: 12 January 2009 at 2:18pm
When you click the button, your code just needs to be:

       RibbonBar.Tab(1).Visible = True

(and maybe also     RibbonBar.Tab(0).Visible = False
    if you want to hide first Tab when 2nd Tab is shown).

You can also create and delete RibbonTabs in code as you need them during your program.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: Marino
Date Posted: 13 January 2009 at 3:40am
Thank you, Chris ... I'll try :-)

-------------
product.:.XtremeSuitePro 12.0.2
OS.:.Windows XP sp3 (32bit) / Windows Vista sp1 (32bit)
Language.:.Clarion 6.1.9025


Posted By: Marino
Date Posted: 21 January 2009 at 6:48am
for now I solved this on this way: first I show the second, hidden tab and after that hide the first tab which is shown. On that way I have only second tab on screen, in which I have button "apply" which after doing some code, revert again first tab to be shown and hide second ...

but is there a way just to select the second tab or put some focus on that tab (I want to show the second tab and automatically put the focus on him)

-------------
product.:.XtremeSuitePro 12.0.2
OS.:.Windows XP sp3 (32bit) / Windows Vista sp1 (32bit)
Language.:.Clarion 6.1.9025


Posted By: Jaison
Date Posted: 23 January 2009 at 7:47am
Please try this
 
RibbonBar.Tab(0).Selected = True



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