TabRenderer with no visual styles enabled?
Posted
by DxCK
on Stack Overflow
See other posts from Stack Overflow
or by DxCK
Published on 2010-04-05T10:58:17Z
Indexed on
2010/04/05
11:03 UTC
Read the original article
Hit count: 249
I want to draw a custom TabControl
with custom functionality.
To do this, i inherited the Panel class and overrided OnPaint method to draw with TabRenderer
class.
The problem is that TabRenderer
working only when visual styles enabled (can be checked with TabRenderer.IsSupported
), but what should i do if visual styles disabled?
In this case, I thought using the ControlPaint
class to draw tabs without visual styles, but it has no draw method related to Tabs. I want it basically to behave visually like the regular TabControl
.
© Stack Overflow or respective owner