Home General

PSoft EAN components and Report Builder

edited February 2012 in General
Hi,

Just a question out of interest rather than one of vital importance.... , we
use the PSoft barcode library components which integrate into Report Builder
all good, but, I was wondering if it is possible to have decent icons appear
for the RBEan and RBDBEAN components in the Report Designer. They seem to
install with the default Delphi Component icons (i.e. the
square/circle/triangle image).

TIA

Willie

Comments

  • edited February 2012
    Including icons a simple matter of including some images in a .res file. The
    image names should be the same as the component class names. You might want
    to contact PSoft and ask them to enhance to their RB support by creating
    some nice component images.

    For an example, check out the Demos\RCL folder which contains the source
    code to the sample checkbox component installed with RB. Open the
    myChkBox.pas unit and find the implementation section (I have copied it
    below). The myChkBox.res file is installed to the same folder and can be
    opened with a resource editor. Open myChkBox.res and you will find images
    with the same name as the component class names: TmyCheckBox, TmyDBCheckBox
    along with a couple of mask images: TmyCheckBoxMask, TmyDBCheckboxMask.


    implementation

    {include resource file containing bitmap used to represent component in the
    Report Designer}
    {$R myChkBox.res}

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2012
    Thanks for that Nard, I'll have a play.

This discussion has been closed.