Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: VCL Object->Font->Color


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Oct 20, 2016 7:40 PM Last Post By: Darren Maybour
Darren Maybour

Posts: 2
Registered: 7/28/11
VCL Object->Font->Color  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 18, 2016 6:02 PM
I have a C++ builder VCL project developed under XE. I've just purchased and installed 10.1 Berlin.
I change the color of text on various objects using object->Font->Color. This works fine for the XE build but no color change happens on the Berlin build.

specifically the color of the text of objects TRadioButton and TGroupBox is not changing on Berlin

How can I restore the text color functionality?

Edited by: Darren Maybour on Oct 18, 2016 6:35 PM
Istan Velo

Posts: 47
Registered: 3/2/02
Re: VCL Object->Font->Color  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 19, 2016 10:59 AM   in response to: Darren Maybour in response to: Darren Maybour
Objetc->Transparency?

Darren Maybour wrote:
I have a C++ builder VCL project developed under XE. I've just purchased and installed 10.1 Berlin.
I change the color of text on various objects using object->Font->Color. This works fine for the XE build but no color change happens on the Berlin build.

specifically the color of the text of objects TRadioButton and TGroupBox is not changing on Berlin

How can I restore the text color functionality?

Edited by: Darren Maybour on Oct 18, 2016 6:35 PM
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: VCL Object->Font->Color [Edit]
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 19, 2016 11:46 AM   in response to: Darren Maybour in response to: Darren Maybour
Darren wrote:

I change the color of text on various objects using
object->Font->Color. This works fine for the XE build but
no color change happens on the Berlin build.

specifically the color of the text of objects TRadioButton and
TGroupBox is not changing on Berlin

The controls are getting their coloring from an active Style and are ignoring
their property values. You will have to disable the style first, or at least
disable the seFont flag in the control's StyleElements property:



--
Remy Lebeau (TeamB)
Darren Maybour

Posts: 2
Registered: 7/28/11
Re: VCL Object->Font->Color [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 20, 2016 7:40 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...

The controls are getting their coloring from an active Style and are ignoring
their property values. You will have to disable the style first, or at least
disable the seFont flag in the control's StyleElements property:

Thanks Remy,
- I cleared seFont flags for the objects and parents in the object inspector - this made no difference.
- I went to Project/Options/Application and unchecked Enable runtime themes - this made no difference and the setting was not remembered
- In Project/Options/Application/Manifest File I set to none - this made the application have the original desired appearance... This is OK for now... but eventually I'll want to use a theme and be able to customise certain elements it with seFont.

Any idea what went wrong with the first two option?
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02