Home Component Writing

extending DB Text component

edited December 2006 in Component Writing
Hi,

I want to extend the DBText component. Therefore I inherited from
DBText. I tried to do it as explained in the checkbox sample. As soon as
I introduce an interface as published property, I always get an access
violation in rbIDE107.bpl at address 00000000.

My goal is to assign my own interfaced (translation) component to the
DBText instance at design time, so that I can access it overriding the
GetTheText-Method.

thanks,

Matt

Comments

  • edited December 2006

    - try making your interface property public rather than published. The RB
    object inspector displays the published properties and it does not currently
    support properties of type interface. (I can create a patch to fix the AV,
    but the property is not going to be displayed in the RB object inspector.

    - another solution is to tell the RB object inspector to ignore the
    Interface property

    uses
    ppInspector;

    initialization
    TppPropertyCategoryManager.PropertyCategories.Add('Ignore',
    'myInterface');



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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2007
    Hi,

    thanks for your help. I decided to tell the RB object inspector to
    ignore the interface property and now it works!

    kindly regards,
    Matthias
This discussion has been closed.