title: How do I tell Delphi where it must place its automatically created event code?
body: <p>When a developer double-clicks an event of a control in the Object Inspector and there has not been any code for that event Delphi will automatically create that event's procedure declaration and its code. I would like to know how a developer can tell Delphi or in the least indicate to Delphi where in the unit the implementation part of the events should be placed.</p>
  
  <p>When I create a unit I usually insert a predefined set of comments and I have certain areas in the unit where I add certain type of code. At the very end of the unit I have all the automatically created event procedures. Sometimes I get it right that Delphi will continue to place the automatically created event code at the end of the unit but sometimes it keeps on putting it in between my own manually created procedure. I want to tell Delphi where to place it, if possible.</p>