Is it possible to have a Close-button at the upper right corner next to ScrollButtons? (Just like it's done in VS.NET and when using the TabbedMDIManager).
Also, is there a way to have the ScrollButtons shown all the time, being disabled if there isn't enough tabs...
RPRamesh Praveen Syncfusion Team March 28, 2003 12:32 PM UTC
You can make the scroll button visible all the time, by subclassing the TabControlExt and overriding this method, as follows:
protected override void AdjustScrollButtonDimensions(ref RectangleF tabPanelBounds, bool scrollNeeded)
if(this.ScrollButtons == null && !this.Multiline)
// Second arg should be true all the time. base.AdjustScrollButtonDimensions(ref tabPanelBounds, true);
We do not have built-in support for a close button in the tab control. I will make this a feature request. If you are interested, you can look at our custom tab control implementation used in our tabbed mdi layout in the file Tools\src\FrameworkComponents\TabbedMDI\MDITabPanel, to get some hints on how to implement this yourself.
RPRamesh Praveen Syncfusion Team March 28, 2003 12:33 PM UTC
Another, approach is to simply place a button over the tab control at the right position.