Link to home
Start Free TrialLog in
Avatar of slightstk
slightstk

asked on

Text hidden / disappears on tabControl when alignment is left or right and appearance is normal.

I'm using visual studio 2008. When I set a tabControl alignemt to left or right and set the appearance to normal the text disappears from the tab buttons(See image 1 link below).  And if set the alignment to left or right and set the appearnace to buttons. The work area (represented by the outlined box. See image 2 link below) is shifted all the way to the right.  
How can fix this problem?

http://s220128907.onlinehome.us/

The goal is to have the text appears in the tab buttons as the appear in image# 2 but have the work area occupy 100% of the available space.
Avatar of Priest04
Priest04
Flag of Serbia image

Hello, slightstk

this is a know behavior, and the workaround would be to set the DrawMode property to OwnerDrawFixed and to add custom code to draw the tabs. There is an article on MSDN that shows you how to do this, but I cant find it at the moment, seems to me that the site is down for some purpose.

Goran
SOLUTION
Avatar of madivad2
madivad2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, that's the link what didn't work yesterday when I tried to look at it.
Avatar of slightstk
slightstk

ASKER

Ok this solves 50% of the problem but now I'm left with tabs that has text stacked on top of each other in some cases. 2 chars per line  See image# 3.  How do I get the text to rotate 90 Degrees to appear in the tabs as they do in image# 2?

http://s220128907.onlinehome.us/
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great that fixed it Priest04.  Thanks for your help.