[Lazarus] What GetChildParent does in designer and reader?

Hans-Peter Diettrich DrDiettrich1 at aol.com
Fri Feb 28 01:47:38 CET 2014


Mattias Gaertner schrieb:
> 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;

Component Drag&Drop operations can be configured and controlled by the 
originator (here: Palette, Designer, Component...), which can e.g. 
provide a TDragObject governing the whole operation. In Lazarus these 
capabilites are restricted by the incompatible LCL DragManager, which 
does not use the methods of the TDragObjects declared in the VCL.

DoDi





More information about the Lazarus mailing list