Print Page | Close Window

possible to hide the tabcontrol tabs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3474
Printed Date: 17 November 2024 at 9:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: possible to hide the tabcontrol tabs
Posted By: tobi
Subject: possible to hide the tabcontrol tabs
Date Posted: 05 January 2006 at 12:06pm
Is it possible to hide the tabs of the tabcontrol ? My intention is to change the tabitems only by code and disallow this for the user by hiding the tabs ?



Replies:
Posted By: JamesH
Date Posted: 05 January 2006 at 4:49pm
Can't you just close/show each pane pragmatically instead of having them be tabbed?


Posted By: tobi
Date Posted: 06 January 2006 at 8:20am

Dear JamesH,
my intention is to show different forms in the mainformīs area depending on user actions. Until now I havenīt found a good solution to do this in VB6.
So I tried to use the tabcontrol to do this. But in this case I must have to hide the caption tabs...
Do you have any ideas how to do this ?
Thank you very much



Posted By: JamesH
Date Posted: 06 January 2006 at 10:48am

Hey Tobi,

Sorry I was confused.  I thought you were using tabbed docking panes not just the tab control.  I think you could do what you're describing with docking panes and just close them when you don't want them displayed.

Cheers,

- James



Posted By: dbilbija
Date Posted: 08 March 2006 at 2:41pm

hi guys

i have the EXACT same question. if i have a treeview on the left, for example, and the user clicks on the "users" node, i'd like the user form to be displayed in the right hand side.

the 1st thing i thought of was to have a single tab control and display the tab based on the treeview click event.

i guess docking panes would work.... have you guys tried it? is it simple to code?

dushan bilbija



Posted By: JamesH
Date Posted: 08 March 2006 at 2:48pm
It works for me, but I'm not sure why you would need to go to that extent.  If you have a fixed area beside the tree control can't you just display differnet child windows there based on what's selected?  If there is more than one child window displayed at a time you could do this with docking panes which would allow users to configure the layout.


Posted By: dbilbija
Date Posted: 08 March 2006 at 2:52pm

so your thought is to make it an mdi form?

my idea was to have an sdi form, with a treeview (or shortcut bar, or commandbar, or toolbox) on the left side and a different form displayed in the client area when the user clicks on a left hand pane item.

kinda like outlook does... a listview for mail, a calendar view for calendar, etc.

dushan



Posted By: younicke
Date Posted: 18 March 2006 at 6:04am

i have the same problem before as i am trying to mimic the outlook behavior wherein shortcutbar is on the left side and tabcontrol on the right side.

however there is no direct command to hide the tab of the tabcontrol. but i have found a workaround and it works fine with my project.

i used tabcontrol and i set the buttonmargin (top and bottom) of the tabcontrol to negative values and it works. so whenever i click on shortcutbar i am removing the existing tab on the tabcontrol and then inserting a new form to the tabcontrol

hope this would help!




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