Click here to Skip to main content
15,891,763 members
Home / Discussions / C#
   

C#

 
GeneralManaged DirectX Assemblies Pin
Heath Stewart26-Jan-03 11:41
protectorHeath Stewart26-Jan-03 11:41 
GeneralVS.NET vs. aximp Pin
Paul Riley26-Jan-03 8:13
Paul Riley26-Jan-03 8:13 
GeneralRe: VS.NET vs. aximp Pin
Stephane Rodriguez.26-Jan-03 8:25
Stephane Rodriguez.26-Jan-03 8:25 
GeneralRe: VS.NET vs. aximp Pin
Paul Riley26-Jan-03 10:32
Paul Riley26-Jan-03 10:32 
GeneralRe: VS.NET vs. aximp Pin
Heath Stewart26-Jan-03 11:33
protectorHeath Stewart26-Jan-03 11:33 
QuestionSimilar function as WindowFromPoint in .NET ? Pin
Wizard_0126-Jan-03 3:03
Wizard_0126-Jan-03 3:03 
AnswerRe: Similar function as WindowFromPoint in .NET ? Pin
leppie26-Jan-03 3:59
leppie26-Jan-03 3:59 
GeneralProblems with TabControl & XP Visual Styles Pin
Furty25-Jan-03 20:17
Furty25-Jan-03 20:17 
I'm sure that others have noticed this behaviour, but I have searched all over for a resolution to no avail, so I'll post it here.

When using windows XP visual styles (via manifest file) with a TabControl there are numerous display issues.

The most well-known is the fact that the TabPage background is not correctly painted with the WinXP gradient - this I actually don't care about as my tab pages are filled with either listviews or picture boxes, so the background is irrelevant. This issue has of course been addressed here on the CP already.

The major problem for me is that of you select anything other than a top alignment for your tabpages in conjunction with using winXP visual styles the tabs themselves are drawn totally messed up, along with the text on tabs mysteriously dissapearing.

The app I am developing is heavily reliant on tabcontrols, using a mixture of regular (align=top) controls, with a few left-aligned tabcontrols. Resorting the top-aligned controls throughout will simply waste far too much desktop space, so is not an option.

So here's where I'm at - it's either ditch WinXP visuals, or draw the tabs myself. I really don't want to have to resort to losing the XP look, so drawing the tabs myself is the way I'd like to go. The problem with this is that I simply cannot find an overridable method that allows me to paint the actual tabs (painting the tabpages is no problem), and at this stage the thought of writing my own TabControl from scratch is almost enough to make me turn to the drink.

Can anyone help?
GeneralRe: Problems with TabControl & XP Visual Styles Pin
leppie25-Jan-03 20:27
leppie25-Jan-03 20:27 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
Heath Stewart25-Jan-03 22:32
protectorHeath Stewart25-Jan-03 22:32 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
leppie25-Jan-03 22:40
leppie25-Jan-03 22:40 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
Furty26-Jan-03 10:01
Furty26-Jan-03 10:01 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
Heath Stewart26-Jan-03 11:36
protectorHeath Stewart26-Jan-03 11:36 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
A.Wegierski26-Jan-03 19:15
A.Wegierski26-Jan-03 19:15 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
A.Wegierski28-Jan-03 2:36
A.Wegierski28-Jan-03 2:36 
Questionif you could code one language for the rest of your life...what would it be ? Pin
jtmtv1825-Jan-03 17:44
jtmtv1825-Jan-03 17:44 
AnswerRe: if you could code one language for the rest of your life...what would it be ? Pin
leppie25-Jan-03 21:17
leppie25-Jan-03 21:17 
AnswerRe: if you could code one language for the rest of your life...what would it be ? Pin
Heath Stewart25-Jan-03 22:28
protectorHeath Stewart25-Jan-03 22:28 
AnswerRe: if you could code one language for the rest of your life...what would it be ? Pin
SimonS27-Jan-03 3:59
SimonS27-Jan-03 3:59 
Questioncreating an object? Pin
jinz25-Jan-03 11:27
jinz25-Jan-03 11:27 
AnswerRe: creating an object? Pin
Jeff J25-Jan-03 11:40
Jeff J25-Jan-03 11:40 
QuestionHow to get the index of a DataRow in a DataTable? Pin
lnong25-Jan-03 11:15
lnong25-Jan-03 11:15 
GeneralTreeNode checking Pin
Member 18598625-Jan-03 9:42
Member 18598625-Jan-03 9:42 
GeneralRe: TreeNode checking Pin
leppie25-Jan-03 10:52
leppie25-Jan-03 10:52 
GeneralRe: TreeNode checking Pin
Member 18598625-Jan-03 11:11
Member 18598625-Jan-03 11:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.