On Thu, 20 Jul 2000, Neven MacEwan wrote:

> You are prob getting the default string editor - You'll need to
> register the PE you want against your colletionitem.strings property

Well I found the problem :-)

Looking through StrEdit.pas (property editor) I find:

  (line 265)
  if (TObject(Component) is TComponent) and
    (Component.Owner = Self.Designer.GetRoot) then
  begin
    Ident := Self.Designer.GetRoot.Name + DotSep +
      Component.Name + DotSep + GetName;
    Module := ModuleServices.FindModule(Ident);

and:

  (line 281)
    CodeWndBtn.Enabled := Ident <> '';

It seams the editor is only allowed to setup a code module in the IDE if
the object that owns the property is a component on the base form.

I tried editing this file and added in a check for a collection item but
it wouldn't compile due to a missing DesignConst.dcu file, however I think
if I really want this functionality (its not needed, wuld just be nice and
it was bugging me) I'll just copy this file and make my own...  Which I
think I'm going to do just now :)



-- 
Inspired by the taste of horror, proud to be insane forever
Let out the killer in me! (c) Dismal Euphony
Now Playing: <no audio cd present>

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

Reply via email to