Left Alignment issue with TabConrol

  • Thread starter Thread starter Scott Ocamb
  • Start date Start date
S

Scott Ocamb

All,
I have a TabControl with Allignment set to left. This results in the tabs
being verticaly aligned.

All is fine on Vista machines, but "it seems" on xp machines the rendering
of the UI is wrong. The text of the tabs does not appear.

any help would be appreciated.
 
It's a known issue. The Text is drawn but in the wrong place. It's not
classed as a bug as Visual styles only supports Top Aligned Tabs.

Either draw the tabs yourself (you'll either lose Visual Styles or have a
fair amount of work restoring them) or use a third party TabControl instead.
See some of the tips on my site for the basics of ownerdrawing the
tabcontrol.
http://dotnetrix.co.uk/tabcontrol.htm

TabControlEx and TabControl 2 are free to use in any way you wish and they
both overcome this issue as well as several others.
http://dotnetrix.co.uk/controls.htm

If you only want to overcome this issue, then I would suggest that you use
TabControl 2, but TabControlEx has some other frequently requested features
which you may or may not like.
 
Back
Top