0

How to change the radio button color in the LicensePage?

The following code does not work:

with WizardForm do
  begin
     LicenseAcceptedRadio.Font.Color := clWhite;
  end;

It would seem that the Inno Setup does not change the color of some controls.

I assume you need to use the WindowProc functions from the DLL file InnoCallback in order to set the colors. But what is the code for it?

Some references:

Inno Setup: How to change the font color of a TNewRadioButton?

Change the entire font style of all dialogs

Inno Setup Licence Agreement Font Color

https://documentation.help/Inno-Setup/topic_scriptclasses.htm

Codename K
  • 890
  • 4
  • 23
  • 52
  • 1
    I removed the Delphi tag. InnoSetup uses PascalScript, which is *not* Delphi, so unless you're working on the source code of InnoSetup itself and not an install script, the Delphi tag does not apply. – Ken White May 11 '22 at 02:42
  • Thanks, but it did not work for me. – Codename K May 11 '22 at 15:07
  • 1
    If that didn't work, you should edit your question with more details and explain what you did, what failed,etc. – StayOnTarget May 11 '22 at 20:09
  • As I explained in the question, it would seem that the Inno Setup does not change the color of some controls. Radio Button color does not change even if you change it using the code in the above question. This could be possible by using WindowProc. – Codename K May 11 '22 at 20:22
  • 1
    The answer to *"How to change the radio button color in the LicensePage?"* is *"subclass the control"* or *"create a radio button with no caption and use a label together with it"*. If you already know that, then I do not think your question title summarizes your question correctly. – Martin Prikryl May 13 '22 at 08:00
  • The idea, "_create a radio button with no caption and use a label together with it_" is a good one. Thanks. If you add an answer to this question with "radio button without caption", then I'll select your answer. – Codename K May 13 '22 at 11:03
  • 1
    That's already suggested in https://stackoverflow.com/q/29968442/850848 – Martin Prikryl May 13 '22 at 11:46

0 Answers0