Hi!
Found strange behavior.
Set forms background color to white or any other color.
Add Checkbox to form and change background color to same color as forms bg.
When Aero theme is on, then checkbox background color is not selected color, but system color?
Regards
Meelis
Theme and Background Color
Re: Theme and Background Color
Hi,
As documented: "This property [CheckBox.BackColor] isn't supported for themed checkboxes."
Regards
TiKu
As documented: "This property [CheckBox.BackColor] isn't supported for themed checkboxes."
Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!
Re: Theme and Background Color
Hi,
I always forget to RTFM
But is there a way to use BG color, DrawThemeParentBackground API for example?
Regards
Meelis
I always forget to RTFM
But is there a way to use BG color, DrawThemeParentBackground API for example?
Regards
Meelis
Re: Theme and Background Color
In the past I've tried hard to support a custom background color if the controls are themed. As far as I remember there have been two problems:
Regards
TiKu
- On TabStrip controls, the controls should be drawn with a transparent background. So there was a (solvable) logical problem: Should the BackColor be ignored then or should the background become opaque? This problem can be solved by introducing some additional property or by allowing a magic value (e.g. -1) for the BackColor property - but it would be difficult to implement it in a way that would not break existing applications.
Additionally I remember code-wise problems, but I'm not sure anymore whether these problems existed only because I've been trying to keep compatibility with existing applications. - As far as I remember, it was not possible to customize the foreground (text) color. Being able to change one color but not the other, seemed inconsistent.
- implement it at all.
- break compatibility. This would likely result in a new major version of the library, requiring new GUIDs and therefore also some kind of upgrade tool that can be used to upgrade existing projects in a comfortable way.
Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!
Re: Theme and Background Color
Breaking compatibility is not a good idea, i think. If it's too hard to implement, then let it be.
Thnx
Meelis
Thnx
Meelis
Re: Theme and Background Color
Hi,
I've finally found time to check out the possibilities. I did remember correctly: Only the background color could be changed. Allowing to customize the background color, but not the text color does not seem very useful.
I also tried to implement a transparent background mode instead, so that the checkbox would appear transparent not only on tab strip controls, but also on Forms. But so far all my attempts failed.
Regards
TiKu
I've finally found time to check out the possibilities. I did remember correctly: Only the background color could be changed. Allowing to customize the background color, but not the text color does not seem very useful.
I also tried to implement a transparent background mode instead, so that the checkbox would appear transparent not only on tab strip controls, but also on Forms. But so far all my attempts failed.
Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!