Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 144235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:13:17+00:00 2026-05-11T08:13:17+00:00

Yet another TFrame IDE-registered-component question from me. Thanks for all the help, fellow programmers.

  • 0

Yet another TFrame IDE-registered-component question from me. Thanks for all the help, fellow programmers. : )

Playing around with Darrian’s TFrame inheritance suggestion here:

Specifics:

Basically, I have a TFrame-based component that I’ve registered to the IDE, and it has worked wonderfully. I’m now developing a few ‘sister’ components which will share a great deal of the existing component’s non-visual functionality and properties. It makes sense, then, to move a lot of that to a parent/superclass which both the new and the old components can then inherit from.

What is the best way to ‘refactor’ TFrame inheritance in this way? (This may apply to TForm-class descendants too, not sure). What are the caveats and things to watch out for?

Example:

I tried, for example, creating a new TFrame, with nothing on it, and calling that frame TMyBaseFrame. Then modified the class definition of my existing component (Let’s call it TMyFrameTreeView) to inherit from that rather than TFrame.

It compiled fine, but when I tried dropping it on a form, I got ‘ClientHeight not found’ (or ‘ClientHeight property not found’), and it wouldn’t drop on the form. Deleting ClientHeight and ClientWidth from the related DFM wreaked havoc, and they ended up replaced upon resizing anyway. I noticed ExplicitHeight and ExplicitWidth in descendent classes, and am thinking that relates to property-value overrides from inherited values, but am not sure. Recreating an entirely new frame via New -> Inherited Items, and then copying everything over, hasn’t yielded great results yet either.

Final Note

I realize this could get messy quickly, with streaming DFM files and multiple generations of descendants, etc…. which is part of why I’m asking for the overall ‘things to look out for’ conceptual aspect, but also giving a specific real-world simpler version of the problem as well (which seems to me, ought to be doable).

I’ve created a little test package to hack around in learning attempts, and am learning a great deal, but it’s slow-going, and any guidance/insight from you Delphi ‘Jedi Masters’ out there would be MOST appreciated. : )

Answer update later:

Both of the answers below were helpful. As well, creating a ‘Base Frame Class’ which has NO changes from the normal TFrame, and THEN inheriting from that before adding any properties, methods, etc. seems to stabilize the inheritance streaming tremendously. Not sure why, but so far it has.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:13:17+00:00Added an answer on May 11, 2026 at 8:13 am

    In addition to changing base class of TMyFrameTreeView to TMyBaseFrame change the first word in the dfm file for TMyFrameTreeView from object to inherited.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 190k
  • Answers 190k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you are starting out with a ListView, do yourself… May 12, 2026 at 5:58 pm
  • Editorial Team
    Editorial Team added an answer If you want the value of the content attribute try:… May 12, 2026 at 5:58 pm
  • Editorial Team
    Editorial Team added an answer jquery is a part of ASP.NET MVC and MVC is… May 12, 2026 at 5:58 pm

Related Questions

Yet another argument with a friend of mine. Consider this code: class User <
Yet another C#/.NET guy trying to learn Objective-C with big dreams of making millions
Yet another newbie with ASP.NET MVC! All I intend to do is for a
Yet another one of my P/Invoke questions! I have this C function: int _ei_x_new(ei_x_buff*

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.