Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

constructorr needed if overrifing OnKeyPress?

Posted on 1999-07-13
2
Medium Priority
?
161 Views
Last Modified: 2010-04-06
Hi, I have a component created that overrides the OnKeyPress event of a TComboBox. It seems to me that there is no need to have a constructor and destructor for this component, all I would be doing is caling the inherited create and destroy. Is it ok to do this? Thanks, Tom.
0
Comment
Question by:tomcorcoran
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
Lischke earned 200 total points
ID: 1388048
Right, this is one of the best things of OOP. YOu just implement the methods and properties you actually need. All the other stuff is handled by the ancestor and does not need to be considered by your derived class.

Ciao, Mike
0
 

Author Comment

by:tomcorcoran
ID: 1388049
Mike, thanks for the confirmation. Tom.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

664 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