<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<title></title>
</head>
<body>
<p style="margin: 0px;"><span> </span></p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
Graeme Geldenhuys <graemeg.lists@gmail.com> hat am 13. Mai 2011 um 09:48 geschrieben:<br/>
<br/>
> Hi,<br/>
><br/>
> I report a related issue already in the Bug Tracker back in 2009:<br/>
><br/>
> http://bugs.freepascal.org/view.php?id=13994<br/>
><br/>
> No solution has been implemented in Lazarus yet. As a work-around, is<br/>
> there any way to tell Code Completion (Ctrl+Shift+C) for event handlers,<br/>
> to only generate the code in the interface of the unit, and not the<br/>
> implementation section?
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Not yet.</p>
I will add the checkbox for the implementation to my todo list.<br/>
<br/>
<div style="margin: 5px 0px 5px 0px;">
><br/>
> I like to keep my code implementation in the same order as I have it<br/>
> defined in the Class definition (as defined in Code Tools settings:<br/>
> Method Insert Policy = class order). Currently it place the event<br/>
> handler method always in the undefined published section of my class,<br/>
> and thus the implementation of that method is in the wrong place too. So<br/>
> writing the event handler code, then ask Code Completion to implement<br/>
> the event handler method, I would prefer it (while bug 8135 is not<br/>
> fixed) if Code Tools could only write the method in the interface<br/>
> section only. I can then manually move it to the correct location in my<br/>
> class definition, then do Code Completion again, to implement the<br/>
> interface section in the correct location.<br/>
><br/>
> Is this possible in Lazarus IDE 0.9.30.x? I can't see an obvious option<br/>
> in Code Tools to adjust this, so I guess the answer is No. I just<br/>
> thought it worth asking to be sure though.
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
Mattias<br/>
</body>
</html>