On Wed, 27 Dec 2006 23:45:58 +0100
Aleš Katona <[EMAIL PROTECTED]> wrote:
> >>
> >> I tried re-inheriting the problematic object from TComponent but
> >> that produced AV eventualy. Honestly I don't have the time to
> >> debug this so .. the questions.
> >>
> >> 1. Why doesn't lazarus/LCL accept a TPersistent for
> Designer.Select...
> >> when delphi does?
> >
> > It does. Only the above function only supports TComponent.
> > Here is the more general selection function:
> > In package IDEIntf unit propedits.pp:
> > GlobalDesignHook.SelectOnlyThis()
>
> > Keep in mind to update the GlobalDesignHook.LookupRoot after
> > selecting a non TComponent. Otherwise the IDE won't know, to which
> > unit the object belongs to and several features will not work (e.g.
> > setting events).
>
>
> >> 2. Is there a way to work around without changing the item passed?
> >> I don't want to force TComponent inheritance because the mentioned
> >> item explicitly doesn't use it for a reason.
>
> > Mattias
>
> (sorry if it brakes the thread, I didn't get your reply, I just copied
> it from gmame.
> It seems I have lazarus list mail problems, am getting only some
> stuff)
>
> Can you please elaborate more on the LookupRoot property? What do I
> need to set it?
> The first "item" in the list (because in my case the propeditor is a
> list of things)
> and in case there's none, to nil?
See procedure TCollectionPropertyEditorForm.SelectInObjectInspector in
propedits.pp
> I did everything else and currently am getting AV on any operation in
> the property form.
Strange. Can you send the code?
> It also doesn't seem to change the OI right now (doesn't empty it
> either tho, last thing
> remains selected).
>
> I'll try and debug the thing further tomorrow.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives