Non-standard colours
Hi there,
How do I programmatically use non-standard colours (e.g. not using the cl* constants?).
I want to be able to have a far greater variation of fill colours than using the cl* constants allows me. I've tries using $RRGGBB etc. but of course that don't work!
Regards,
Tim.
How do I programmatically use non-standard colours (e.g. not using the cl* constants?).
I want to be able to have a far greater variation of fill colours than using the cl* constants allows me. I've tries using $RRGGBB etc. but of course that don't work!
Regards,
Tim.
Comments
use hex
ie $F4F4F4
regards
Hex doesn't work. When I use FillColor := $RRGGBB, no matter what RR GG BB components I use the fill color is always black.
Regards.
Tim.
if you are working inside the report in an obpevent of a band
enclose hexvalue with apostrophe.
memo4.fillcolor:='$F4F4F4';
if from outside in delphi
var
v:tfrview;
begin
frreport1.loadfromfile('path&filename.frf');
v:= frreport1.findobject('memo4');
v.prop:= $F4F4F4;
frreport1.showreport;
end;
regards
Yep, that's got it - enclosing it in quotes works great. My fault for not posting the fact I was working in the designer!
Thanks for the help.
Tim.