Changing TfrxMemoView background color at runtime
Hi,
I use fastReport Embarcadeero Edition for Firemonkey. I need to change the background color of a TfrxMemoView at runtime, according to the displayed value.
I wrote the following code in the BeforePrint Event
The memo background is then blank (it's silver at design time)
I tried this
Setting color to $FFFFFF00 or Yellow at runtime works fine. What am I doing wrong?
I use fastReport Embarcadeero Edition for Firemonkey. I need to change the background color of a TfrxMemoView at runtime, according to the displayed value.
I wrote the following code in the BeforePrint Event
var mycolor:string;
begin
    mycolor:= '$FFFFFF00';
    TfrxMemoView(report.FindObject('Memo1')).color:=TAlphaColor(mycolor);
end
The memo background is then blank (it's silver at design time)
I tried this
TfrxMemoView(report.FindObject('Memo1')).color:=TALPhacolorRec.Yellow
but i get an EConvertError '4294967040' is not a valid integer valueSetting color to $FFFFFF00 or Yellow at runtime works fine. What am I doing wrong?