Is there a RawStyleBit setting to make a Tabcontrol stay grey and not white when the form runs.
Hi Barry,
I assume you have visual styles enabled for your OI application? If you want turn them off for an individual control you can do so by calling the SetWindowTheme() Windows API function.
If you're using the Windows API library we posted on our blog you can simply do this:
call winAPI_SetWindowTheme( ps_Get_Property( tabControl, "HANDLE" ), "", "" )
Regards
Carl
»I assume you have visual styles enabled for your OI application?
I have often seen reference to this, what exactly does this refer to.
Thanks for api tip.
Hi Barry,
Another common term for it is "XP Themes" - i.e. the visual styling introduced with Windows XP (Luna Blue, Homestead Olive and Metallic Silver). This can be turned off for individual controls using the method I mentioned, or it can also be removed for the entire OI app by deleting the OINSIGHT.EXE.MANIFEST file in your OI directory. If you do this your OI app will use the old Windows 9x/NT/2000 look and feel (aka. the Windows Classic theme).
More documentation can be found here.
I actually wrote an article on all this for one of the old SENLs (Vol4 Issue 2 IIRC) but it's not on our website at the moment - if you drop me a line I'll email you the source doc for it if you want it.
Regards
Carl
Thanks for this helpful information