[Lazarus] What GetChildParent does in designer and reader?

Fabio Luis Girardi fluisgirardi at gmail.com
Thu Feb 27 15:20:08 CET 2014


2014-02-27 11:14 GMT-03:00 Mattias Gaertner <nc-gaertnma at netcologne.de>:

> On Thu, 27 Feb 2014 10:26:04 -0300
> Fabio Luis Girardi <fluisgirardi at gmail.com> wrote:
>
> > 2014-02-27 10:07 GMT-03:00 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> >
> > > On Thu, 27 Feb 2014 09:32:31 -0300
> > > Fabio Luis Girardi <fluisgirardi at gmail.com> wrote:
> > >
> > > >[...]
> > > > No. Lazarus allow me to add a child to my control, but I want
> redirect
> > > > these childs to use a Panel inside of my TCustomControl as their
> parent.
> > >
> > > I see. There is no function yet, to redirect designer drops. Components
> > > can only accept or refuse.
> > >
> > > Maybe a method can be added to TWinControl:
> > >
> > > function GetDesignerDropTarget(aControl: TControlClass): TWinControl;
> > > virtual;
> > >
> >
> > Yes, and by default it returns Self, and if it was override, this
> function
> > returns the new parent of child controls? This is your idea?
>
> Yes. You are reading my mind.
>
> hahahahahahah right... More mind reading: aControl parameter will be the
control being inserted?

>
> Mattias
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140227/92d6cb3c/attachment-0003.html>


More information about the Lazarus mailing list