Solved

component: hook into destroy? (d3)

Posted on 1998-06-09
2
315 Views
Last Modified: 2010-04-04
Is it possible to hook into the Destroy method of a component and actually prevent it from being removed from the Delphi 3 IDE?

I want to put in a verification routine, password dialog maybe, when a certain component is deleted.  If the verification routine fails, I don't want the component to be removed from the IDE.  I've tried raising exceptions but that causes a *lot* of problems with Delphi.

Thanks,
joe
0
Comment
Question by:greendot2
[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 3

Expert Comment

by:rickpet
ID: 1351775
Look at The ToolsAPI to hook into the IDE, Ray Lischner has a book on this "Hidden Paths of Delphi 3".

In Delphi 4, TObject will have a new protected method called BeforeDestruction.  I'm not sure that this will help you...the ide and streaming system expect your component to be gone...

Rick Peterson
0
 
LVL 2

Accepted Solution

by:
brainware earned 200 total points
ID: 1351776
I dont think it is possible under delphi3 , the only way to ensure that a object is not deleted it to make sure that the destructor never gets called!!!

And that seems very hard to do!!

Mvh.
CI - BrainWare

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month4 days, 13 hours left to enroll

635 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