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:
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
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
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];