TFrMemoView.Font.Color

Hello,

I have been using FastReport for some months now with much satisfaction. However, I have come accross something I cannot explain.
In a report, I have a TFrMemoView with the following associated code:
begin
  Font.Color := COLOR_FOR_VALUE;
end

This COLOR_FOR_VALUE variable is set via the OnGetValue of the TFrReport, and it works fine (I could check it by changing the background color of the memo view instead of the font color).
My problem is that whatever I do at runtime, the color of the font just stays the same (.i.e. the color set at design time).
Any hint ?
Thanks in advance !

Vincent

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:25AM
    when you want to retrive the value of the var
    enclose in [] they tell the parser to calc the value
    Font.Color := [COLOR_FOR_VALUE];
    also
    your syntax may have to change slightly.
    memo1.font.fontcolor := [COLOR_FOR_VALUE];
    ;)

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.