G
Guest
Hi,
[ BTW I'm using C# ]
I am trying to create a custom style tab control. I've managed to code it
so far so that I can custom draw the TabPage dividers ( the buttons at the
top of the TabControl that select the TabPage ).
My ultimate goal is to have fancy style TabPage dividers which overlap.
I've created a Polygon ( GraphicsPath ) to draw these, but cant work out how
to perform the HitTest of overlapping dividers ( the standard control works
off rectangles only - which is useless for my overlapping dividers!! ).
Can I intercept the HitTest message - so that I can test against my Polygon
( GraphicsPath ) and then set the SelectedTab myself ? If so a bit of sample
could would be great.
regards,
Rich.
[ BTW I'm using C# ]
I am trying to create a custom style tab control. I've managed to code it
so far so that I can custom draw the TabPage dividers ( the buttons at the
top of the TabControl that select the TabPage ).
My ultimate goal is to have fancy style TabPage dividers which overlap.
I've created a Polygon ( GraphicsPath ) to draw these, but cant work out how
to perform the HitTest of overlapping dividers ( the standard control works
off rectangles only - which is useless for my overlapping dividers!! ).
Can I intercept the HitTest message - so that I can test against my Polygon
( GraphicsPath ) and then set the SelectedTab myself ? If so a bit of sample
could would be great.
regards,
Rich.