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?
Thank you.
AD
Administrator
Syncfusion Team
February 21, 2005 12:33 AM
To be more specific, if I do
tabbedMdiManager.TabGroupHosts[0].MDITabPanel.Hide();
The tabs themselves are hidden, but the gray area where the tabs lives stays. I need to get rid of the area.
Thanks again
AD
Administrator
Syncfusion Team
February 21, 2005 10:49 AM
Hi Dan,
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.
Regards,
Gregory Austin
Syncfusion Inc.
AD
Administrator
Syncfusion Team
February 21, 2005 08:45 PM
Thanks, that''s almost there. (It turns out that I also have to call
host.PerformLayout(); tabbedMdiManager.MdiParent.PerformLayout();
afterwards).
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.]
AD
Administrator
Syncfusion Team
February 22, 2005 10:22 AM
Hi Dan,
I''ve put in a Feature Request for TabbedMDIManager.Visible.
Regards,
Gregory Austin
Syncfusion Inc.
AD
Administrator
Syncfusion Team
February 23, 2005 01:06 AM
Excellent.
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.
Thanks.
AD
Administrator
Syncfusion Team
February 23, 2005 08:15 AM
Hi Dan,
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.
Regards,
Guru Patwal
Syncfusion, Inc.
AD
Administrator
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.