Hi,
i'm adding a standard TCheckbox or a TRadioButton using the AddControlEx()-Function. Once I change the Windows Design to classic the control only painted as a black box.
Can you please check and possibly fix this behaviour?
TRichView, TCheckBox, TRadioButton and Delphi XE
-
- Site Admin
- Posts: 17565
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
There is a problem with default background color settings.
By default, RichView.Color = clNone, that means that TRichView.Style.Color is used as a background color.
But TCheckBox and TRadioButtons use the parent background color by default (CheckBox.ParentColor=True), and Color=clNone causes a problem.
Solution:
- assign RichView.Color = clWindow (or a background color you use)
and/or
- assign checkbox.ParentColor=False.
By default, RichView.Color = clNone, that means that TRichView.Style.Color is used as a background color.
But TCheckBox and TRadioButtons use the parent background color by default (CheckBox.ParentColor=True), and Color=clNone causes a problem.
Solution:
- assign RichView.Color = clWindow (or a background color you use)
and/or
- assign checkbox.ParentColor=False.