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.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 4:37AM
    hi
    use hex
    ie $F4F4F4
    regards ;)
  • edited 4:37AM
    Hi,

    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.
  • gordkgordk St.Catherines On. Canada.
    edited 4:37AM
    hi piglet
    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
  • edited 4:37AM
    Hi gord,

    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.

Leave a Comment