Paul
Paul

Reputation: 26660

Private component fields nested in Delphi frames

Here is a quick comparison of Delphi components and frames and at the end is my question.

Advantages of Delphi components:

Disadvantages of Delphi components:

Advantages of Delphi frames:

Disadvantages of Delphi frames:

What I would like to have is a symbiotic thing:

Could you suggest a thing that fulfills these requirements? Or may be some surprising method to work with frames I didn't know about?

It shouldn't be necessarily a frame or a component. If some of other VCL classes fulfills these requirements, I would gratefully accept it.

Upvotes: 3

Views: 426

Answers (1)

René Hoffmann
René Hoffmann

Reputation: 2815

If its properties have to be editable in the designer the object has to be a descendant of TComponent. TFrame actually is a descendant of TComponent.

Unfortunately, object inspector seems to use structure information from design-time packages only. Thus, you have to compile a design-time package for your custom published properties to show in object inspector. But that strikes your requirement of Quick availability.

Upvotes: 3

Related Questions