B
Bob Dankert
(Notes: This is with DotNet 1.1, Windows XP SP2)
I have a tabcontrol located on a form where the form has a background image.
Ideally, I would like to have the background near the upper-portion of the
tabs be transparent so the image of the form will show through. Initially,
this seemed to work fine without modification. However, after using it
briefly, it is apparent that the tabs flicker immensely when you move the
mouse over them. To solve this, I assumed I would be able to owner-draw the
tabcontrol, however by specifying this the entire top-section of the
tabcontrol remains the drab gray color and draws the rectangle to the right
of the tabs. So, this seems to work even less than had I let the control
draw itself.
Doing a quick newsgroup search, I found two threads where this has been
reported back in 2002 and a Microsoft representative posted that this was a
bug that would be addressed. Being that this is almost three years later, I
am hoping there is a known workaround other than overriding OnPaint and
OnPaintBackground (or at least an example of how to sucessfully override
these, as this can be a daunting task).
Newsgroup posts from 2002 for reference:
http://groups-beta.google.com/group...bcontrol+transparency&rnum=1#e01dc8403fadc8e1
http://groups-beta.google.com/group...bcontrol+transparency&rnum=4#c80ffc9efc71243c
Thanks, any help would be appreciated.
Bob Dankert
I have a tabcontrol located on a form where the form has a background image.
Ideally, I would like to have the background near the upper-portion of the
tabs be transparent so the image of the form will show through. Initially,
this seemed to work fine without modification. However, after using it
briefly, it is apparent that the tabs flicker immensely when you move the
mouse over them. To solve this, I assumed I would be able to owner-draw the
tabcontrol, however by specifying this the entire top-section of the
tabcontrol remains the drab gray color and draws the rectangle to the right
of the tabs. So, this seems to work even less than had I let the control
draw itself.
Doing a quick newsgroup search, I found two threads where this has been
reported back in 2002 and a Microsoft representative posted that this was a
bug that would be addressed. Being that this is almost three years later, I
am hoping there is a known workaround other than overriding OnPaint and
OnPaintBackground (or at least an example of how to sucessfully override
these, as this can be a daunting task).
Newsgroup posts from 2002 for reference:
http://groups-beta.google.com/group...bcontrol+transparency&rnum=1#e01dc8403fadc8e1
http://groups-beta.google.com/group...bcontrol+transparency&rnum=4#c80ffc9efc71243c
Thanks, any help would be appreciated.
Bob Dankert