Re: [Lazarus] How to change Class Completion for Setter methods

2016-01-25 Thread Graeme Geldenhuys
On 2016-01-25 15:19, Sven Barth wrote:
> You are not the first who wants this ;)
> http://bugs.freepascal.org/view.php?id=15922

:-)  Thanks.

Wow, that report is almost 6 years old and still not resolved.

Regards,
  - Graeme -


My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to change Class Completion for Setter methods

2016-01-25 Thread Sven Barth
Am 25.01.2016 12:16 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> Hi,
>
> When I do class completion in Lazarus for a property with a setter
> method I get code as follows:
>
>
> procedure TFPCustomMemo.SetAlignment(AValue: TAlignment);
> begin
>   if FAlignment = AValue then Exit;
>   FAlignment := AValue;
> end;
>
>
> How, if at all, do I change that code formatting to his:
>
>
> procedure TFPCustomMemo.SetAlignment(AValue: TAlignment);
> begin
>   if FAlignment = AValue then
> Exit;
>   FAlignment := AValue;
> end;
>
>
>
> Note that the latter example has a line break after the if..then
statement.

You are not the first who wants this ;)
http://bugs.freepascal.org/view.php?id=15922

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] How to change Class Completion for Setter methods

2016-01-25 Thread Graeme Geldenhuys
Hi,

When I do class completion in Lazarus for a property with a setter
method I get code as follows:


procedure TFPCustomMemo.SetAlignment(AValue: TAlignment);
begin
  if FAlignment = AValue then Exit;
  FAlignment := AValue;
end;


How, if at all, do I change that code formatting to his:


procedure TFPCustomMemo.SetAlignment(AValue: TAlignment);
begin
  if FAlignment = AValue then
Exit;
  FAlignment := AValue;
end;



Note that the latter example has a line break after the if..then statement.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus