I want to be able to hide the tabs (and the area where the tabs are placed) for a TabbedMDIManager. In this case, I should still be able to see the actual form, just not the tab up top.
How can I do this?
ADAdministrator Syncfusion Team February 21, 2005 12:33 AM
To be more specific, if I do
The tabs themselves are hidden, but the gray area where the tabs lives stays. I need to get rid of the area.
ADAdministrator Syncfusion Team February 21, 2005 10:49 AM
The best way to make the Tab area disappear is to set the Height of the TabHost to 0. You''ll need to do this everytime you open or close a new MDI Child, but setting the Height to 0 will reduce the TabHost to a single pixel line.
ADAdministrator Syncfusion Team February 21, 2005 08:45 PM
Thanks, that''s almost there. (It turns out that I also have to call
However, it still leaves a few-pixel-high blank space up top. Any way to eliminate that? If not, no huge deal, but it would be nice.
[Also, can you put in a feature request that you put in a simpler TabbedMDIManager.TabsVisible property? Thanks.]
ADAdministrator Syncfusion Team February 22, 2005 10:22 AM
I''ve put in a Feature Request for TabbedMDIManager.Visible.
ADAdministrator Syncfusion Team February 23, 2005 01:06 AM
Could you also add a feature request for TabbedMDIManager.Padding. It would be get if you could set a number of pixels (and color) of padding around the whole tabbed docking area.
ADAdministrator Syncfusion Team February 23, 2005 08:15 AM
Another approach to hiding the tabs in a TabbedMDI scenario is to handle the TabbedMDIManager''s TabControlAdded event as shown below :
this.tabbedMdiManager.TabControlAdded += new TabbedMDITabControlEventHandler(TabbedMDI_TabControlAdded);
private void TabbedMDI_TabControlAdded (object sender, TabbedMDITabControlEventArgs args)
args.TabControl.Visible = false;
Let me know if this works for you.
ADAdministrator Syncfusion Team February 24, 2005 08:54 PM
The first method lets me gid rid of the tab area (the verticl whitespace where the tabs live) while the later just gets rid of the tab itself. So, I''ll stick with the first. Thanks again.