Hi,

I have a component that I am about to write a component editor for. As the
user selects sub-component items in my component editor, I want the
selected item to be visible in the Object Inspector (same sort of thing as
selecting a menu item in the menu editor). I have a couple of questions
that I can't find the answers to in the help files or the source code (I
wish they had have included in the source, the units for the component
editors, and those that registered the various component editors):

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

Reply via email to