• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

Inherited Form

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
paulo_psa
Asked:
paulo_psa
1 Solution
 
rwilson032697Commented:
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
 
paulo_psaAuthor Commented:
Hi Raymond,

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

regards
Paulo
0
 
comptebidon81Commented:
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
 
Russell LibbySoftware Engineer, Advisory Commented:
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
 
PashaModCommented:
PAQ no refund,

PashaMod
Community Support Moderator @Experts Exchange
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now