Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

clLtGray / clDkGray removed?

edited September 2015 in RAP
Hi,

Using RB 15.05 / Delphi 2009. We just had a customer report that all their reports created in RB14 that use the constant clLtGray (or clDkGray) now give an error when compiling RAP. Having tested it here, I get the same result.

If I create a report and in one of the events put:

Label1.Font.Color := clDkGray;

it gives me an error and says it can't compile that event. However, if I look at the source code for ppTypes.pas both constants are specified.

Was this intentional? I've tested all the other constants and the only other one that no longer works is clSystemColor, which I doubt any of our clients are using anyway.

Thanks,

Steve Branley




--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

Comments

  • edited September 2015
    Hi Steve,

    In older RB versions, RAP supported only some of the color constants. A
    requested enhancement was made to internally call Delphi's IdentToColor
    function which is supposed to support all color constants. But looking at
    the Delphi source, clLtGray and clDkGray are missing - even in XE8. Looks
    like a bug.

    I have created a patch for RB 16.03 to work around the Delphi bug.
    Unfortunately you are using Delphi 2009 and RB 16.x does not support Delphi
    2009. I recommend upgrading to the latest Delphi version and RB 16.




    Best regards,

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2015
    Hi Nard,

    Thanks for the reply. Good to have it confirmed as a bug. Unfortunately,
    updating our Delphi version is not an option, so we are unable to make
    use of your patch. Would you be able to direct me to the relevant source
    file so that we could implement the fix ourselves?

    Thanks,

    Steve

This discussion has been closed.