Turbopower IPro: Fix bg color for CSS style in TCustomEdit and TRadioButton. Issue #29483, patch from Silvio Clécio.

git-svn-id: trunk@51430 -
This commit is contained in:
juha 2016-01-27 18:11:53 +00:00
parent a995c27b85
commit 05b537ca3f

View File

@ -11548,18 +11548,10 @@ begin
end; end;
} }
inherited; inherited;
{$IFDEF VERSION3ONLY} if (Props.BgColor <> -1) and (
if FControl is TRadioButton then begin (FControl is {$IFDEF VERSION3ONLY}TRadioButton{$ELSE}THtmlRadioButton{$ENDIF}) or
{$ELSE} (FControl is TCustomEdit)) then
if FControl is THtmlRadioButton then begin FControl.Color := Props.BgColor;
{$ENDIF}
if Props.BgColor <> -1 then
{$IFDEF VERSION3ONLY}
TRadioButton(FControl).Color := Props.BgColor;
{$ELSE}
THtmlRadioButton(FControl).Color := Props.BgColor;
{$ENDIF}
end;
end; end;
procedure TIpHtmlNodeINPUT.ImageChange(NewPicture: TPicture); procedure TIpHtmlNodeINPUT.ImageChange(NewPicture: TPicture);