Questions tagged [tframe]

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.

72 questions
1
vote
1 answer

Load Tframe from bpl to application

I am trying to load a tframe inside a delphi package (bpl) to be shown in my main app please give me code for both package and application.
Vibeeshan Mahadeva
  • 7,147
  • 8
  • 52
  • 102
1
vote
2 answers

how to load delphi tframe from dll to delphi application

i have created a dll with tframe . how can i load it inside my application, i dont like to use bpls , i only want to destribute exe and dlls with my app
Vibeeshan Mahadeva
  • 7,147
  • 8
  • 52
  • 102
1
vote
1 answer

Don´t save my published property in component frame

I have a Component inherited of the TFrame... But my published properties don't save the values in .dfm... The error occurs when closing Delphi and open again, reloading the project. This error is: "Error reading MyComponent1.Obs: property Obs does…
Seeko
  • 75
  • 1
  • 8
1
vote
1 answer

Delphi XE8 styles do not work with TFrames? How to fix this?

I use TFrames. I make them dynamically by adding them to the Form window. I chose the style called "Glow" (others also). I launched the program and the style works only on the main Form window, they do not work on the controls TFrame. Why? I tried…
Mohammad
  • 31
  • 1
1
vote
0 answers

Creating a custom TFrame descendant as component

I read many articles on stackoverflow about extending TFrame to have its own published properties. I have followed basically the aproach of John Thomas Repeating the code here: unit myUnit; uses ... type TmyComp = class(TFrame) //set your frame…
Eduardo Elias
  • 1,742
  • 1
  • 22
  • 49
1
vote
4 answers

How to implement the OnResizeEnd Event for TFrame?

in the middle of the application is a frame. After resizing i need to rearrange controls on this panel (doing this in the resizing event is too busy). Its more useful if this can be done once after all the resizing. But how? Thank you for your help
Sebastian
  • 11
  • 2
1
vote
2 answers

How to free up dynamically created frames?

In Delphi 2010... I have a form. On the left side of the form is a Treeview. It shows a multi-level hierarchy. Assume 5 different types of data, Type A, B, C, D and E. On the right side of the form, I have a panel in which I will create a…
user1009073
  • 3,160
  • 7
  • 40
  • 82
1
vote
1 answer

Centering a Tframe within a TTabSheet;

I have a delphi application that used a PageControl with a number of TabSheets. I also create new TabSheets at runtime and populate them with instances of predefined frames. These frames work well, except for the cosmetic problem of not centering…
SysJames
  • 411
  • 3
  • 10
0
votes
1 answer

adding Tframe to another Tframe at runtime

i have 2 tframes, and an add button. I am trying to add one tframe onto the other when the button is press. but for w.e reason my code can't seem to work. it's not adding the frame like it's suppose to. there is no errors or running, it compiles and…
livelaughlove
  • 376
  • 3
  • 9
  • 21
0
votes
2 answers

How to speed up UI rendering in Delphi

I use a TScrollBox as a list and a TFrame as the Items and I will generate the frames in runtime. The Frame I'm using consists a 3.6KB SVG-Image and some Lables and EditBoxes. As a test, I generated the list with 1000 items in FormShow like…
Mahan
  • 135
  • 7
0
votes
2 answers

Delphi: Frame and State of ActionList - Error?

I have an Action List on a Form and a Frame (a unit of a Form is impelemented in the Frame). I set Form2.General.State:=asSuspended in the Frame, and I have an error: Undeclared identifier: 'asSuspended'. The code works normally in the Form, but not…
maxfax
  • 4,281
  • 12
  • 74
  • 120
0
votes
0 answers

Using messages to notify TFrames they should refresh underlying datasets

I am using TFrames to split different parts of a form (visual elements and code) into different units. For example, if my form is an invoice, I have Frame#1 showing the client, invoice date and total amount and Frame#2 containing a list of products…
JC Boggio
  • 367
  • 1
  • 11
0
votes
1 answer

Setting the Site Property of TFrame

I am attempting to create a CustomControl in C# which contains a Delphi TFrame, which can be dragged from the VisualStudio toolbox onto a Form. This much I have working correctly, however when I attempt to resize the control errors occur due to the…
Stuart
  • 33
  • 6
0
votes
1 answer

Load Frames from packages

I have three frames inside separate three bpls, in my main application i have created three buttons and , i want to call the frames dynamically(one at a time )when the respective button is clicked (the frame can be shown in any control eg :…
Vibeeshan Mahadeva
  • 7,147
  • 8
  • 52
  • 102
0
votes
0 answers

How do I set the focus of a control in a Delphi TFrame descendant?

So I have a frame with a control on it that I want to be focused when the user activates that form. The frame is created when the user first activates it and all that works fine. I've tried overriding WndCreate and setting it there but that doesn't…
Mike Stephenson
  • 649
  • 6
  • 14