Now, I created three versions so that I can optionally pass in the fore or back color - just in case i get in the habit of overriding my tab controls draw mode.
Here’s a version which is much closer to the behaviour of TabDrawMode.Normal, in terms of the text positioning. In fact, on my machine it is pixel-for-pixel identical. In my case, HotTrack is False, SizeMode is Normal, Multiline is False, and I’m using Windows XP with the Classic theme.
I really don’t know. I still haven’t experienced this problem and I’ve used the tab painting technique in a couple projects.
i have the same problem as luke… and not finding any usefull help… any clue ?
sorry I’ve been out of town the past 6 days.
I don’t really know - I haven’t experienced this problem at all. Perhaps change the size of the rectangle you are painting in.
I get a transparent or grey color behind the tabs, is there anyway to change this?