Umwandlung von Inno Setup WizardForm.Color in RGB

Wenn ich das versuche:

[Setup]
AppName=MyApp
AppVerName=MyApp
DefaultDirName={pf}\MyApp
DefaultGroupName=MyApp
OutputDir=.

[Code]
function ColorToRGBstring(Color: TColor): string;
var
  R,G,B : Integer; 
begin 
  R := Color and $ff; 
  G := (Color and $ff00) shr 8; 
  B := (Color and $ff0000) shr 16; 
  result := 'red:' + inttostr(r) + ' green:' + inttostr(g) + ' blue:' + inttostr(b); 
end;

procedure InitializeWizard();
begin
  MsgBox(ColorToRGBstring(WizardForm.Color),mbConfirmation, MB_OK);
end;

Ich bekomme: rot: 15 grün: 0 blau: 0
Aber das Ergebnis sollte lauten: 240 240 240 (grau)

Was ist falsch

Ich muss das richtige @ bekommTColor und konvertiere es in einen RGB-Farbcode.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage