Solved

Inherited Form

Posted on 2001-06-23
5
232 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
5 Comments
 
LVL 12

Expert Comment

by:rwilson032697
Comment Utility
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
Comment Utility
Hi Raymond,

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

regards
Paulo
0
 

Expert Comment

by:comptebidon81
Comment Utility
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
Comment Utility
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
Comment Utility
PAQ no refund,

PashaMod
Community Support Moderator @Experts Exchange
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 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

11 Experts available now in Live!

Get 1:1 Help Now