On 1/19/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
On Fri, 19 Jan 2007 14:15:34 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> On 1/19/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
>
> > > Hope that made sense to you... :)
> >
> > No. Where are the lines 'CreateMissingProcBodies InsertProcBody'?
> > It does not add any procedure, does it?
>
> Yes it created the stub in the interface section. I just got another
> update (r10478) and tried it again. Again it created the stub in the
> interface section (reverse code completion). Doing class completion
> to override a method still creates the wrongly formatted text though.
Ok. So, can you send the output of a class completion (interface to
implementation), where a wrong formatted procedure is created?
No, no... I have a class declaration as follows.
protected
procedure AssignClassProps(pSource: TtiObject); override;
|<press Ctrl-Space>
public
I position the cursor at the | sign and press Ctrl-Space so I can
override a method from the inherited class. I select the method I
need and press Enter.
... which then gives me this....
protected
procedure AssignClassProps(pSource: TtiObject); override;
function GetCaption : string ; virtual ;
public
.... and that line "function GetCaption..." is formatted incorrectly
compared to what I specified the the CodeTools Settings.
... If I now go further and press Ctrl-Shift-C it generates the method
declaration in the Implementation section correctly formatted. As
shown below.
function TLearner.GetCaption: string;
begin
end;
... it is only the Ctrl-Space that generates the wrong formatted code.
Hope that makes the problem clear. Sorry if I confused you before.
--
Graeme Geldenhuys
There's no place like S34° 03.168' E018° 49.342'
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives