17.01.12 1:40, Mattias Gaertner пишет:

I improved the code completion for parameters. It can now create
methods/procedures for parameters and variables for pointers for
parameters.

Here is an example for a procedure:

procedure TForm1.FormCreate(Sender: TObject);
var
   List: TList;
begin
   List:=TList.Create;
   List.Sort(@MySortFunction|);
end;

Place the cursor on 'MySortFunction' and press Ctrl+Shift+C for code
completion. You get a new procedure:

function MySortFunction(Item1, Item2: Pointer): Integer;
begin
   |
end;

Wow. You makes us lazy. To go further your completion code needs to guess what to write in implementation of MySortFunction :) Ideally it would be to auto write implementations on completion of well known procedures as Button1Click or Form1Create ;)

Best regards,
Paul Ishenin.

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

Reply via email to