Solved

Interface IDE ShortCut

Posted on 2007-03-26
2
213 Views
Last Modified: 2013-11-23
When implementing an interface into a class, in Delphi (2006) is there a quick/automatic way of stubbing out the inherited methods?

the quickest way I have found is copy them into the class and pressing Control+shift+C, there has to be a better way, or have I been spoilt by using Eclipse and Jbuilder. :-)

Thanks
g2d
0
Comment
Question by:GTwoD
2 Comments
 
LVL 21

Accepted Solution

by:
ziolko earned 125 total points
ID: 18798568
having this:

TSomeObject = class(TInterfacedObject, ISomeInterface)
protected

end;

you can move your cursor below "protected" and hit Ctrl + space

list of possible methods will pop-up
interface methods that are not yet defined will be top-most-red-highlited
you can select them one-by-one and then hit ctrl + shift + c only once

ziolko.
0
 
LVL 1

Author Comment

by:GTwoD
ID: 18798584
Simple but brilliant
Thanks
g2d
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question