AD
Administrator
Syncfusion Team
March 15, 2004 07:59 PM UTC
Hi Simon,
The OneNoteTabRenderer TabStyle is modelled on the MS OneNote tabs and hence have a white border along the edges. In order to get rid of this you would have to handle the TabControlAdv''s DrawItem event as shown in the code below :
private void tabControlAdv1_DrawItem(object sender, Syncfusion.Windows.Forms.Tools.DrawTabEventArgs drawItemInfo)
{
// Draw the default background and interior in all cases.
drawItemInfo.DrawBackground();
drawItemInfo.DrawInterior();
CustomDrawBorders();
}
Within this event handler you could draw the background and interior using the default methods, but would have to code a custom method for drawing the borders (CustomDrawBorders method). This could be done as shown in the DrawBorders method in the TabRenderer class.
When the TabControlAdv is themed, the drawing responsibility is delegated to the OS and hence none of the custom settings have any effect. The control will always be drawn using OS themes ignoring the user''s settings. Please let me know if you need any other information.
Regards,
Guru Patwal
Syncfusion, Inc.