0

I'm styling a form changing the font color of a TSpeedButton, but my application uses VCL Styles and that overrides the color I set on design time. Has anyone experienced this and know any way to achieve it? Change the component is not a problem, I've tried using TButton, TSpeedButton, TJvSpeedButton (from JEDI) but none of them kept the color I set.

Using Delphi XE2, the property StyleElements is not available.

0

1 Answer 1

2

All VCL controls have a property StyleElements in which you can disable seFont to override the style's font and put your own.

2
  • thats for XE3 or later
    – Carlos M
    Mar 6, 2019 at 16:33
  • 2
    @CarlosM Really? Then you can either modify the style (which would change all button font colors), or upgrade your Delphi, since XE2 is kinda old. Mar 6, 2019 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.