Solved

Adding events to existing controls

Posted on 2000-04-14
2
140 Views
Last Modified: 2010-04-04
Hi,

Is it possible to add events to existing controls. Specifically I would like to inherit the drag and drop events from TControl and apply them to a TSpeedButton without creating a new SpeedButton component.

Chris
0
Comment
Question by:ChrisBerry
2 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 50 total points
ID: 2715380
Well, the only way you can do that exactly, is to modify the VCL source and copy the drag/drop support from the TControl code into the TSpeedButton code...

Otherwise the answer is no.

Cheers,

Raymond.
0
 

Author Comment

by:ChrisBerry
ID: 2715450
Thanks for the reply.

I had thought about that and I had a feeling this was the case, hence my comment about not creating a new component. Ah well.

Chris
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now