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 6:12PM
    hi
    use hex
    ie $F4F4F4
    regards ;)
  • edited 6:12PM
    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 6:12PM
    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 6:12PM
    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

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.