We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Close-button for a TabControlExt

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... Kenneth

2 Replies

RP Ramesh Praveen Syncfusion Team March 28, 2003 12:32 PM UTC

Kenneth, 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) InitScrollButtons(); // 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. Regards, Praveen Ramesh


RP Ramesh 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. Regards, Praveen Ramesh

Loader.
Live Chat Icon For mobile
Up arrow icon