FastReport FMX field color

edited 1:58AM 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 1:58AM
    Anybody who knows how to refer to colors in Pascal script in FastReport FMX ?

    clRed ..... NO

    Red ..... NO

    Color.Red .... NO

    ????????
  • gpigpi
    edited 1:58AM
    Memo1.Color := claRed;
  • edited 1:58AM
    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 1:58AM
    That's it. The FR Support / Documentation page for FMX says, "Use the documentation for FastReport VCL. It is compatible." >

Leave a Comment