Re: How to get the RGB-Values of the PVSS-Color \"-3DFace\" in WinCCOA 3.12
Postby mkoller »
You need to check the system color names in your own code and return an RGB value you are comfortable with.
System color names are:
"_3DFace",
"_3DText",
"_Button",
"_ButtonText",
"_ButtonShadow",
"_Window",
"_WindowText"
Re: How to get the RGB-Values of the PVSS-Color \"-3DFace\" in WinCCOA 3.12
Postby mkoller »
I'm confused.
You said you are using 3.12 and http_color() to get the RGB value, which you said works for you except the system colors like _3DFace.
I listed the system color names and told you you have to handle these separately by returning whatever RGB color you like.
The idea was: you write your own getRGB() function, checking for the system color names or else using http_color().
What is unclear ?
Re: How to get the RGB-Values of the PVSS-Color \"-3DFace\" in WinCCOA 3.12
Postby mkoller »
GetSysColor() is not Qt.
My suggestion was to return fixed RGB values, independant of the current users schema.
If that is not possible you only have 2 options:
1.) upgrade to 3.13 and use colorToRGB()
2.) write your own CTRL extension (either using QColor or GetSysColor() if you want to limit yourself to windoze)
With Qt you can do it like this:
_3DFace => QApplication::palette().color(QPalette::Active, QPalette::Window)
_3DText => QPalette::WindowText
_Button => QPalette::Button
_ButtonText => QPalette::ButtonText
_ButtonShadow => QPalette::Shadow
_Window => QPalette::Base
_WindowText => QPalette::Text