Home Component Writing

Stretchable DBImage-component

edited January 2004 in Component Writing
Hello,

I want to write a DB-component with dynamic height which should show a
picture.

As basic class I took TppStretchable. My problem is, that the procedure
'PropertiesToDrawCommand' is never called, although I have set the
drawCommandClass to TppDrawImage.

First I took TppCustomImage as basic class. Then the height of my picture
was okay, but the next dataset was written over the last.

Do you have an idea, how I can solve my problem?

Thanks
Christine

Comments

  • edited January 2004
    For an example of a simple stretchable component see ppMem.pas, the TppMemo
    class.

    TppPrintable is the ancestor class for all of the report components.
    PropertiesToDrawCommand is called by the TppPrintable.CreateDrawCommand
    method, see ppPrnabl.pas.

    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.