Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - possible to hide the tabcontrol tabs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

possible to hide the tabcontrol tabs

 Post Reply Post Reply
Author
Message
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Topic: possible to hide the tabcontrol tabs
    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 ?
Back to Top
JamesH View Drop Down
Senior Member
Senior Member


Joined: 01 December 2004
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesH Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2006 at 4:49pm
Can't you just close/show each pane pragmatically instead of having them be tabbed?
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
JamesH View Drop Down
Senior Member
Senior Member


Joined: 01 December 2004
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesH Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
dbilbija View Drop Down
Newbie
Newbie


Joined: 08 March 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbilbija Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
JamesH View Drop Down
Senior Member
Senior Member


Joined: 01 December 2004
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesH Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dbilbija View Drop Down
Newbie
Newbie


Joined: 08 March 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbilbija Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
younicke View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post 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!

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.234 seconds.