possible to hide the tabcontrol tabs |
Post Reply |
Author | |
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
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 ?
|
|
JamesH
Senior Member Joined: 01 December 2004 Status: Offline Points: 149 |
Post Options
Thanks(0)
|
Can't you just close/show each pane pragmatically instead of having them be tabbed?
|
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Dear JamesH, |
|
JamesH
Senior Member Joined: 01 December 2004 Status: Offline Points: 149 |
Post Options
Thanks(0)
|
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 |
|
dbilbija
Newbie Joined: 08 March 2006 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
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 |
|
JamesH
Senior Member Joined: 01 December 2004 Status: Offline Points: 149 |
Post Options
Thanks(0)
|
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.
|
|
dbilbija
Newbie Joined: 08 March 2006 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
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 |
|
younicke
Senior Member Joined: 11 March 2005 Status: Offline Points: 107 |
Post Options
Thanks(0)
|
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! |
|
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 |