switching to another tab |
Post Reply |
Author | |
Marino
Groupie Joined: 09 June 2008 Location: Bosnia Hercegovina Status: Offline Points: 17 |
Post Options
Thanks(0)
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 |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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
|
|
Marino
Groupie Joined: 09 June 2008 Location: Bosnia Hercegovina Status: Offline Points: 17 |
Post Options
Thanks(0)
|
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 |
|
Marino
Groupie Joined: 09 June 2008 Location: Bosnia Hercegovina Status: Offline Points: 17 |
Post Options
Thanks(0)
|
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 |
|
Jaison
Newbie Joined: 23 January 2009 Location: India Status: Offline Points: 1 |
Post Options
Thanks(0)
|
Please try this
RibbonBar.Tab(0).Selected = True
|
|
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 |