?
Solved

Inherited Form

Posted on 2001-06-23
5
Medium Priority
?
236 Views
Last Modified: 2010-04-06
Hi,

I intend to make a project where I create a base form then inherit this one for the others along the development.
After finish, and get the benefit of inheritance, I want to break the form parent relationship, so that no more modification can be done to child forms.
Is this possible?

thanks
Paulo
0
Comment
Question by:paulo_psa
[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
5 Comments
 
LVL 12

Expert Comment

by:rwilson032697
ID: 6222434
Well, you _could_ break the parent-child relationship by manually editing the text versions of the forms together, but it would be a bit icky. Even then you couldn't stop the forms from being edited...

I don't see how this is a 'benefit of inheritance' though... You already have the benefit when you created the forms.

Cheers,

Raymond.
0
 

Author Comment

by:paulo_psa
ID: 6222946
Hi Raymond,

What I think...
There is no easy way to do that...

regards
Paulo
0
 

Expert Comment

by:comptebidon81
ID: 6321923
I don't see how you could break a relationship like that. I know you can do the opposite (open .dfm in notepad and modify it manually). But what you try to do is impossible. It is like trying to remove the TObject parent of a TForm.... very strange things could happen.

Another point: if you could break the relationship, that wouldn't make your Forms "modification proof".

What you could do is to make the files Read-Only on your Hard drive... This way, you should not be able to modify anything in Delphi concerning these Forms.

Regards,
GunDamn
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 8685368
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

To be PAQ/Refund

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Thank you,
Russell

EE Cleanup Volunteer
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 8816120
PAQ no refund,

PashaMod
Community Support Moderator @Experts Exchange
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
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 Month13 days, 19 hours left to enroll

800 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