TRichView, TCheckBox, TRadioButton and Delphi XE

General TRichView support forum. Please post your questions here
Post Reply
Agenda
Posts: 2
Joined: Wed Apr 09, 2014 12:20 pm

TRichView, TCheckBox, TRadioButton and Delphi XE

Post by Agenda »

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?
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

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.
Agenda
Posts: 2
Joined: Wed Apr 09, 2014 12:20 pm

Post by Agenda »

Thank you.

This solution works.
Post Reply