FastReport FMX field color

edited 7:56AM in FastReport 4.0
Hi,

i want into the code to change the color of a field but the field disappears

procedure frxDBDataset7DeviceOnBeforePrint(Sender: TfrxComponent);
begin
If <frxDBDataset4."DeviceCatCode"> = 'AUDIO' then
begin
frxDBDataset7Device.Color:=0;
frxDBDataset7Device.Font.Color:=255;
end;
end;

I test different colors and had the same result, no text, empty field

The same code with Font.Size:=14 works perfect

Thank you,

Comments

  • edited 7:56AM
    Anybody who knows how to refer to colors in Pascal script in FastReport FMX ?

    clRed ..... NO

    Red ..... NO

    Color.Red .... NO

    ????????
  • gpigpi
    edited 7:56AM
    Memo1.Color := claRed;
  • edited 7:56AM
    Thank you, gpi !

    Do you know if this is somewhere documented ?

    Documentation for FMX is the VCL version of documentation or i missed something ?
  • PolomintPolomint Australia
    edited 7:56AM
    That's it. The FR Support / Documentation page for FMX says, "Use the documentation for FastReport VCL. It is compatible." >

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.