TNewCheckBox, TNewRadioButton Font.Color is ignored

19 views
Skip to first unread message

T Sl

unread,
Jan 27, 2026, 2:21:37 AM (4 days ago) Jan 27
to innosetup
Setting property  Font.Color  for controls TNewCheckBox, TNewRadioButton  is ignored.

TNewStaticText works fine, however checkbox and radiobutton ignore this property so they cannot be used properly with background or custom style.


Martijn Laan

unread,
Jan 27, 2026, 3:16:17 AM (4 days ago) Jan 27
to innosetup
Hi,

Remove seFont from StyleElements. Make sure you're not using a light style with excludelightcontrols active.

For example in CodeClasses with

WizardStyle=modern dark
+ WizardBackColor removed

and extra code:

  CheckBox.Font.Color := clRed;
  CheckBox.StyleElements := CheckBox.StyleElements - [seFont];

You will get:



Best regards,
Martijn

Op 27-1-2026 om 07:43 schreef T Sl:
Setting property  Font.Color  for controls TNewCheckBox, TNewRadioButton  is ignored.

TNewStaticText works fine, however checkbox and radiobutton ignore this property so they cannot be used properly with background or custom style.


--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/4e5010ec-0814-47c5-8598-6a7ebcddb78en%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages