Home > Back-end >  Demon elder brother and you a great god, radiobutton how to change the font color
Demon elder brother and you a great god, radiobutton how to change the font color

Time:10-01

Radiobutton - & gt; The font - & gt; What color does not change color? Pray god give directions

CodePudding user response:

TRadioButton belonged to one of the standard Windows controls... In order to maintain work platform set consistent reason... So I can't change.

But... There are alternative approach... Divides the Caption of TRadioButton set to an empty string and the size of the width to the RadioButton... A TLabel in TRadioButton right along.

CodePudding user response:

Xe7up1, Windows 7, Windows classic, can change the font color,

CodePudding user response:

TRadioButton create native Windows window, so the effect of display are influenced by the system theme, C6 default theme does not support Windows system, so the inside of the C6 TRadioButton change the Font - & gt; Can have the effect of the change the Font Color, high later versions, if enabled system theme, then change the Font - & gt; Color is no effect, can only use other alternative way, such as interstellar visitors mentioned Label was used to simulate (because TLabel VCL is own control, is not affected by system theme), or by subclassing custom painting,
  • Related