I allow the user to select between 3 ViewStyles (Office2000/2003/2007) and the tabs look good in all 3 modes if I have my Windows Display settings set to 'Windows Classic'.
If the Display is set to 'Windows XP' (It is missing from my system [!] but I know it is called something like that - The problem was reported to me by someone else.) however the Office2003 style causes it to display all tabs with the same color making it difficult to determine which is the active tab. The displayed color also looks completely wrong - it is not close to any color normally used in your controls. (Note that it still looks good with the Office2000/2007 viewstyles.)
I am using the 'PropertyPageSelected' style setting on the tabs.
I tried to obtain the backcolor of the ClientArea but I can only find the 'ClientAreaAppearance' which tells me that the color is (0,0,0,0) since I have not set a color. I need to get the 'resolved' backcolor of the client area so that I can set the ActiveTabAppearance to match. Is there any way to get this?
Is there any way to persuade the tab control to pick a more logical color for the tabs. (Without actually forcing it to a specific color.) This is the only case where the default appears to be wrong.
.
There is a ResolveClientAreaAppearance method on the tab control which will resolve the appearance for the selected tab.
I need to be able to get the resolved color at runtime - different systems will be using different colors so I cant just hard code a color value. What I am trying to do is to ensure that the active tab uses the same color as the tab client area - which it generally does ... but not in this case.
I use the ResolveAppearance() method to get such colors from another control but I cant find a way to do it for the client area of the tab control.
If the appearance looks incorrect, it could be a bug. You can submit it to the support group: http://es.infragistics.com/gethelp. To determine the resolved color you see on screen, the easiest way would probably be to take a screen capture using the print screen key and pasting it into Paint. Then use the color picker to select the color from the screen and go into Edit Colors dialog. Then go into the area to design custom colors to see the RGB values of the color you have selected.