problems in writing a descendant of TppDBPipeline
Hi,
I'm using Delphi6 and RB9
I've written a small descendent of TppDBPipeline (TdbDBPipeline);
But in calling the Fields Editor by context menu I got the error
"no editor registered for this component"
I thought that a descendent simply inherits the editors.
My solution was to create a new design-time package with
procedure Register;
begin
RegisterComponentEditor(TdbDBPipeline,TppDataPipelineComponentEditor);
end;
but the error "no editor registered for this component" goes on.
I looked into the packages of the project:
all RB-Packages are activated.
What's my mistake?
--
Best regards
Dietmar Brueckmann
I'm using Delphi6 and RB9
I've written a small descendent of TppDBPipeline (TdbDBPipeline);
But in calling the Fields Editor by context menu I got the error
"no editor registered for this component"
I thought that a descendent simply inherits the editors.
My solution was to create a new design-time package with
procedure Register;
begin
RegisterComponentEditor(TdbDBPipeline,TppDataPipelineComponentEditor);
end;
but the error "no editor registered for this component" goes on.
I looked into the packages of the project:
all RB-Packages are activated.
What's my mistake?
--
Best regards
Dietmar Brueckmann
This discussion has been closed.
Comments
- for an example, check out ppRegPro.pas (or ppReg.pas if you have RB Std
Edition).
- RB requires an addition registration to associate the component with a
TppComponentDesigner
uses
ppPropEd,
ppFldEd,
ppDsIntf;
// associate component with a Delphi TComponentEditor descendant (this is
the really just a context menu)
RegisterComponentEditor(TppDBPipeline, TppDataPipelineComponentEditor);
// associate component with a RB TppComponentDesigner descendant
ppRegisterComponentDesigner(TppFieldEditor, TppDBPipeline);
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com