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
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 value

Setting color to $FFFFFF00 or Yellow at runtime works fine. What am I doing wrong?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.