Close button on individual tabs needing multiple clicks

Hi,

I am using tabbedgroupedMDIManager and have close button for each individual tab. The close button works, but sometimes it needs multiple clicks to close a tab. Is there any way to make the close button more responsive and close the corresponding tab/form in one click .

Thank you,
Revathi

3 Replies

KR Kannan R Syncfusion Team August 7, 2018 05:49 AM UTC

Hi Revathi   
    
We have confirmed the reported “User not able to close tabs when clicking on Close Button easily as like in Microsoft Visual Studio“ issue. So, we have logged an issue report on this. This fix will be included in our Volume 2 SP2, 2018.      
       
Regards,    
Kannan 



RD Revathi Dhamotharan August 7, 2018 02:55 PM UTC

Thanks for your response. Is there any workaround to fix this using any underlying events by any chance?


KR Kannan R Syncfusion Team August 8, 2018 06:34 AM UTC

Hi Revathi 
 
Thanks for your update. 
 
Yes, this requirement can be achieved by overriding the TabbedGroupedMDIManager renderer class. Please make use of the code snippet in below for your reference. 
 
Code Snippet: [C#] 
 
 
// Applying the Customized Renderer to Control 
 
tabbedMDIManager1.TabStyle = typeof(TabRendererMSOffice2007); 
 
public class TabRendererMSOffice2007 : TabRendererOffice2007 
 
    { 
 
        static TabUIDefaultProperties tabPanelPropertyExtender; 
 
        // Exposes the default appearance properties to the tab panel renderer. 
 
        public static new TabUIDefaultProperties TabPanelPropertyExtender 
 
        { 
 
            get { return tabPanelPropertyExtender; } 
 
        } 
 
        // Specifies the name by which this renderer will be identified. 
 
        public static new string TabStyleName 
 
        { 
 
            get { return "MSOffice2007"; } 
 
        } 
 
        static TabRendererMSOffice2007() 
 
        { 
 
            tabPanelPropertyExtender = new TabUIDefaultProperties(); 
 
            TabRendererFactory.RegisterTabType(TabStyleName, typeof(TabRendererMSOffice2007), TabPanelPropertyExtender); 
 
        } 
 
        public TabRendererMSOffice2007(ITabControl parent, ITabPanelRenderer panelRenderer) : base(parent, panelRenderer) 
 
        { } 
 
        protected override RectangleF GetCloseButtonBounds(DrawTabEventArgs drawItemInfo) 
 
        { 
 
            // Get the close button bounds and change the size, as needed. 
 
            RectangleF rect = base.GetCloseButtonBounds(drawItemInfo); 
 
            rect.Width = 10; 
 
            rect.Height = 10; 
 
            return rect; 
 
        } 
 
 
 
 
Please let us know if it helps. 
 
Regards 
Kannan 


Loader.
Up arrow icon