[Lazarus] Auto adding interface methods

ik idokan at gmail.com
Wed Feb 22 23:26:32 CET 2012


On Thu, Feb 23, 2012 at 00:09, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> On Wed, 22 Feb 2012 23:57:12 +0200
> ik <idokan at gmail.com> wrote:
>
>> Hello,
>>
>> Is there a shortcut in Lazarus's editor for Adding all of the methods
>> that are added to an interface ?
>
> No. There is already a feature request.
>
>
>> Also, Is there a way to tell Lazarus to foreword the parent methods
>> and property for the child's declaration ?
>
> Can you give an example?

TParent = class
private
  FBar : String;
  FBaz : integer;
public
  procedure Foo;

  property Bar : String read FBar; write FBar;
published
  property Baz : Integer read FBaz write FBaz
end;

TChild = class(TParent) // Let's say CTRL+SHIFT+C for example
public
   property Bar; //Foreword from CTRL+SHIFT+C for example
published
   property Baz; // ...
end;

>
> Mattias

Ido

>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list