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

Change TmyDBCheckBox.Style in RAP code

edited April 2007 in RAP
Hi All,

Can I change the Style of TmyDBCheckBox object according to the specified
value in the RAP code? And which event should I use for that?

Thanks a lot.

Michael

Comments

  • edited April 2007
    Hi Michael,

    Yes it is possible to change the style property of the checkbox in RAP. Try
    using the Band.BeforePrint event of the band that the checkbox is located to
    change the style property.

    if (some condition)
    CheckBox1.Style := csXInBox
    else
    CheckBox1.Style := csCheckInBox;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2007
    Thanks Nico. Will try it later.

    Michael

  • edited April 2007
    Hi Nico,

    That's not working for me. I try the Band.OnGenerate event as well, it
    doesn't work either.

    Michael

  • edited April 2007
    Hi Michael,

    Which version of ReportBuilder/Delphi are you using? In my testing with RB
    10.06 and Delphi 2007 it is working correctly.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2007
    I'm using Delphi7 and ReprotBuilder 9.02.

    Thanks.

    Michael

  • edited May 2007
    Hi Michael,

    My first suggestion would be to upgrade to RB 9.03 and see if that fixes the
    issue. Contact info@digital-metaphors.com with your serial number and
    purchasing email for upgrade instructions.

    If that does not solve the problem, you will either need to create a
    pass-thru function that performs this task in Delphi, or consider upgrading
    your version to RB 10.06.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.