Excellent,

thanks for the info Greg. That should get me under way.

Phil.



From: "Greg Nixon" <[EMAIL PROTECTED]> AT tawa on 17/03/99 23:01 ZE12

To:   Multiple recipients of list delphi <[EMAIL PROTECTED]> AT
      tawa@kauripo@CCMAIL
cc:    (bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject:  Re: [DUG]:  Component Editors (again)




This is done by using
   Designer.SelectComponent(Instance: TPersistent);;

To use this you need an owner which persistent objects don't have. So you
need to override the Getowner method of TCollection and TCollectionItem.
Have a look at the DBGrid code as it may help. You probably also want to
override the GetDisplayName property of the collection item to provide a
custom name for each item.

Another good book for getting into the VCL is Marco Cantu's Delphi
Developers Handbook.
See www.marcocantu.com or www.sybex.com
I bought it from the US for about $100. If you buy it in NZ it is about
$160.

>1). How do I pass a sub component to the Object Inspector (ala menu
>editor)?
>
>2). Do the sub components have to descend from TComponent to appear in the
>Object Inspector?  (I am assuming they do, but it would be nice if they
>didn't). The reason that I ask is that I have a whole batch of sub
>components based around the TCollectionItem which I want to make visible
>from within my component editor - I suspect I am going to have to write my
>own version of the Object Inspector for it (if only TComponent descendents
>can appear in the Object Inspector). Otherwise, has anyone already
>implemented this kind of behavour and are willing to share the code?
>
>3). Does anyone have a copy of "Writing Custom Components" by Ray Kanopka
>that they want to sell? It's out of print so I can't buy it new.
>
>Thanks,
>
>Phil Middlemiss
>[EMAIL PROTECTED]
>
>
>--------------------------------------------------------------------------
-
>    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                  Website: http://www.delphi.org.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz







---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to