Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 132635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:17:37+00:00 2026-05-11T06:17:37+00:00

Class completion in Delphi is a big time-saver, but I haven’t found a way

  • 0

Class completion in Delphi is a big time-saver, but I haven’t found a way to customize it.

  1. I would like a getter and setter for a property to be grouped together instead of being thrown all over my unit; The interface part is generated properly, but the implementation section becomes a mess if you leave things up to the IDE. I want methods to be ordered like this by default:

    function TAaa.getAaa();

    procedure TAaa.setAaa();

    procedure TAaa.Baa();

    function TAaa.getCow();

    procedure TAaa.setCow();

    procedure TBbb.getAaa()

  2. I want the implementation section to be in the same order as the interface;

  3. I want the body of a generated method to look something like this:

.

 procedure TMyClass.MyProc;  begin    { TODO -oWouter -cimplement autogenerated stuff : implement Procedure MyProc() }    raise Exception.create('procedure TMyClass.MyProc() is not yet implemented');  end; 

Are there tools around to do this, or is it needed to dive into the opentools API to get something like this done?


Related question: In what order does Class Completion put its results?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:17:38+00:00Added an answer on May 11, 2026 at 6:17 am

    Question 1: I would like a getter and setter for a property to be grouped together.

    The Modelmaker Code Explorer (MMX) has a sorting tool. The tool sorts class members in the interface and the implementation. The 4.05 version, I’m using, does not support your kind of sorting. However, the Modelmaker website contains a page that shows the most up to date sorting functionality and it appears they extended the sort functionality with many new options. Maybe you can group your getter/setter methods with their latest MMX tool. Handy functionality:

    • Drag and Drop sorting in the MMX class explorer: you drag the method to the new location and modelmaker moves the code
    • Sorting hints: MMX will inform you if a method is not sorted according to your default sorting template

    Question 2: I want the implementation section to be in the same order as the interface.

    The MMX sort functionality will do that. After you execute the sort, the interface and implementation will be in the same order.

    Question 3: I want the body of a generated method to look something like this…

    The MMX [add new method] will automatically add a customizable code stub to your method’s body. Parameters are supported in the code stub, but I have not seen the list of supported parameters. Here is a sample

    procedure TForm1.NewMethod;

    begin

    // TODO TForm1.NewMethod default body inserted

    end;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

class Foo(models.Model): title = models.CharField(max_length=20) slug = models.SlugField() Is there a built-in way to
I would like to update my SQL lite database with the native update-method of
I'm getting an error here that says I haven't defined a method, but it
This is ok: Class<? extends String> stringClass = a.getClass(); But this gets error: <T>
I have a class that has hashes in various stages of completion. This is
I'm trying to code a wrapper over a boost::asio::ip::tcp::socket Something like that : class
I have a private const int defined in a C# class. I want compilation
class Foo { static bool Bar(Stream^ stream); }; class FooWrapper { bool Bar(LPCWSTR szUnicodeString)
class Tag(models.Model): name = models.CharField(maxlength=100) class Blog(models.Model): name = models.CharField(maxlength=100) tags = models.ManyToManyField(Tag) Simple
class A : IFoo { } ... A[] arrayOfA = new A[10]; if(arrayOfA is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.