TFrame is a VCL visual control acting as a container for components. It can be nested within forms or other frames. It is defined in Forms.pas unit.
Questions tagged [tframe]
72 questions
2
votes
2 answers
How to avoid display "flicker" when creating and assigning TFrames to a parent control
For example: I have a TFrame (called TPageFrame) that has a number of controls, e.g. TreeView aligned Left, splitter, and main clientarea consisting of an edit and RichEdit, as in image below:
Code looks something like this:
type
TPageFrame =…

RaelB
- 3,301
- 5
- 35
- 55
2
votes
1 answer
Loaded procedure executed twice for TFrame's descendant
I've registered as component a TFrame's descendant class and I've noticed that the Loaded procedure is executed twice:
Runtime:
TMyFrame = class(TFrame)
private
protected
procedure Loaded(); override;
public
constructor Create(AOwner…

Fabrizio
- 7,603
- 6
- 44
- 104
2
votes
0 answers
TFrame component : Resource not found
Tool: Delphi 6 Pro
I created a new component in my main components package that is a descendant of TFrame using the Component -> New Component option. When I try to draw the component on a form during design time I get a "Resource {component class…

Robert Oschler
- 14,153
- 18
- 94
- 227
2
votes
1 answer
Set designed Tframe on some Tpanel
I am totally novice in C++ Builder.
Never tried working with VCL frames.
So, i have some Tform with Tpanel and two frames designed.
How can i display designed frames on my forms panel?
Tired searching similar examples.

Andrew Rumm
- 1,268
- 4
- 16
- 39
2
votes
1 answer
firemonkey destroy frame at runtime
for flexibility different frames (like visible "modules" which can be build together by user - dashboard) shall be created and destroyed on a firemonkey form (some of them twice or more)
destroying a control or frame because of ressources had been…

user2807653
- 79
- 2
- 7
2
votes
1 answer
Frame inheritance and duplicate files in packages
I have been developing a number of components using TFrames and ModelMaker -- I've found the combination of visual design/development + inheritance + ModelMaker to be very compelling. I then register these TFrame descendants w/a registration unit,…

Jamo
- 3,238
- 6
- 40
- 66
2
votes
3 answers
How can I force a component on a TFrame to have it's own event handler?
I'm having difficulty getting Delphi 2006 to assign event handlers to a component on a TFrame that are independent.
Say I have a frame TComboFrame that contains a TCombo Combo1 and I use this in several places on my main form.
When I place an…

rossmcm
- 5,493
- 10
- 55
- 118
1
vote
1 answer
changing the size of tframe at runtime
First off, a lil about me, i'm very new to GUI programming, especially with C++ Builder. i have a tframe that contains a row of cells, just like the picture above. there is a + button, and when pressed a cell is only added to the last column as…

livelaughlove
- 376
- 3
- 9
- 21
1
vote
0 answers
Tree Structure with TFrames
sry i couldn't draw any better with paint. what i am trying to do here is create a tree structure (like the one in the picture) using TFrames. and basically when i press the + buttons, a new TFrame would be added to the tree. I am using C++…

livelaughlove
- 376
- 3
- 9
- 21
1
vote
1 answer
Delphi: frame+colorbox=bug
Delphi XE (It works fine in Delphi 2010).
Try: create a frame and a color box inside it. The color box -> set a Selected color other than black and a style = cbCustomColor (not cbCustomColors); paste the frame into the form, save a project.
Close…

maxfax
- 4,281
- 12
- 74
- 120
1
vote
1 answer
Firemonkey TFrame - how to fire ancestor TFrame events?
I created a base TFrame class, eg TBasicFrame
There is one button called btnTest, which do a simple task
showmessage('test');
On another TForm or TFrame, I place this TBasicFrame on it. However, when I click this btnTest on this or TForm/TFrame…

Peter Jones
- 451
- 2
- 12
1
vote
1 answer
Error when dynamically creating more than one Frame at runtime (C++, FMX, IDE: C++ Builder)
I would like to dynamically create a series of Frame components, then save the pointers into a vector.
I am able to dynamically create TEdit components with no problem, but if I replace TEdit with the name of the frame component (that contains an…

rebecca
- 113
- 7
1
vote
1 answer
Create TabSheet and Frame based on item checked in a TreeView
I have a TTreeView on my form which gets populated from a DB table. The list currently has 22 items and all of them have checkboxes that can be checked.
The TTreeView is on a TForm that has a TPageControl with a pre-made TTabSheet and all other…

t1f
- 3,021
- 3
- 31
- 61
1
vote
1 answer
How to have each tab of a TTabControl in its own unit / use TFrame instead of tabs?
I have an FMX application (but should be the same in VCL) with a TabControl showing 10 tabs. The tabs are set to visible or not visible depending on application state and user rights.
It works well, but I don't like
that everying is together and…

maf-soft
- 2,335
- 3
- 26
- 49
1
vote
3 answers
Delphi: Managing multiple instances of TFrames
In this article there is an explanation of how to use TFrames as an alternative to TTabSheets in a Delphi PageControl.
I've been pondering a similar exercise, which the above doesn't seem to provide the solution for, and for which my solution seems…

Dan Kelly
- 2,634
- 5
- 41
- 61