Click to See Complete Forum and Search --> : tab ctrl with xp style


doci
July 1st, 2005, 03:15 AM
I changed my application ini order to use xp style the way msdn suggest
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchUsingWindowsXPVisualStylesWithControlsOnWindowsForms.asp

In my interface there's a tab control with alignment set to left.
The problem is: I don't know why but the only way tab labels look correct is when alignment is set to "classic" top. For example in my case labels on tabs are not shown. Even with other alignment they look weird.

Probably I'm missing something but I can't figured it out.

doci
July 4th, 2005, 04:26 AM
Got the solution:

It's some kind of windows bug:
- tabpages (instead of tabcontrol) are not correctly drawn under xp style.

I found two ways to solve it:
1)http://www.codeproject.com/cs/miscctrl/themedtabpage.asp#xx884556xx (I didn't test it)
2)http://www.skybound.ca/developer/visualstyles/default.aspx (it works really fine, it's easy and .dll is free, fixes couple of other visual bugs too)