Re: [Lazarus] TControl.AssignTo() and TCustomAction relationship

2016-02-13 Thread taazz
On 11/02/2016 17:29 μμ, Graeme Geldenhuys wrote: Hi, Why does TControl.AssignTo() have a special case for TCustomAction? TCustomAction.AssignTo() already does property assignments, so what is the reason for the special code in TControl.AssignTo? Here is the code in question: procedure TControl

[Lazarus] TControl.AssignTo() and TCustomAction relationship

2016-02-11 Thread Graeme Geldenhuys
Hi, Why does TControl.AssignTo() have a special case for TCustomAction? TCustomAction.AssignTo() already does property assignments, so what is the reason for the special code in TControl.AssignTo? Here is the code in question: procedure TControl.AssignTo(Dest: TPersistent); begin if Dest is TC