On Sat, 03 Nov 2012 19:03:50 +0100
José Mejuto <[email protected]> wrote:

> Hello,
> 
> Is there any way to change the code generated when autocomplete a Setter 
> in a class ?
> 
> Currently it generates something like:
> 
> procedure Tfrm.SetMyproperty(AValue: string);
> begin
>    if FMyProperty = AValue then exit;
>    FMyProperty := AValue;
> end;
> 
> And I need to change it (for conveniece) to something like:
> 
> procedure Tfrm.SetMyproperty(AValue: string);
> begin
>    if FMyProperty = AValue then exit;
>    debugln('property changed');
>    FMyProperty := AValue;
> end;

No.
But it is open source so you can patch it.
See components/codetools/codecompletion.pas line 6720.

Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to