Home Component Writing

Problems with own TppDraw-class

edited November 2007 in Component Writing
Hello,

we created an own hyperlink-component and we wanted to fill the shown
TppDrawtext with a shown text (example_ 'Max Meyer') and use a seperate
DB-Text (example: 'mailto: m.meyer@abc.de') for use by clicking the drawn
component. To get this, we created also a new TDrawHyperlink-class with a
new property 'HyperlinkText'. This property we set in the
'propertiesToDrawCommand'-procedure. By Clicking on our draw component the
property was empty. What did we wrong?

Thank you for answer

Christine Jeschke

Comments

  • edited November 2007
    Hi Christine,

    I'm a bit unclear which property is empty. For your new TDrawHyperlink
    component, I would also recommend creating a new drawcommand that also
    contains the HyperlinkText property. Then you can assign the
    drawcommand.HyperlinkText property inside the PropertiesToDrawCommand
    routine and have access to it when you override the DrawCommandClick event
    (which I assume you are using). Take a look at the example located in the
    \RBuilder\Demos\RCL on how and which classes to create when adding a new
    component.

    --
    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.