Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-01

How to change Class Completion for Setter methods

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Reply by email

Sven Barth
to Graeme Geldenhuys

Am 25.01.2016 12:16 schrieb "Graeme Geldenhuys" <

Show quoted text 28 lines
: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160125/89feecb0/attachment.html>

Reply by email