tframe

Showing TFrame descendant's additional properties on the object inspector

Delphi object inspector doesn't show TFrame descendants's additional properties by design. People tend to suggest using a known trick which is commonly used for showing TForm descendant's properties on the Object inspector. The trick is: registering custom module for TForm descendants to Delphi IDE via design time package like: Register...

TFrame inheritance refactoring

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" compo...

Delphi IDE treating TFrame as if it were a Form

Every once in a while when I am tweaking my TFrame classes (adding properties, methods, etc), the IDE gets confused and acts as if it thinks the frame is a form, complete with header/caption, borders, etc. Yet, clearly the class is declared as a TFrame descendent. Any ideas as to what causes this, how to prevent, and how to fix? I'm...

Passing parameters to a delphi TFrame

To avoid singletons and global variables I'd like to be able to pass parameters to a TFrame component. However since a TFrame normally is included on form at design time it is only possible to use the default constructor. The parent form can of course set some properties in the OnCreate callback after the TFrame has been created. Howeve...

Registering a custom Frame

Hi, In Delphi 2009, In one of my projects, I have a custom frame with some controls on it which I want to use as the base class for some other controls. I want to register this frame as an IDE wizard to be available in New Items list. When I add my newly added item (my custom frame) to a project, I expect it to: Show all the propertie...

Should I use delphi tframes for multi-pages forms ?

Hello I have some forms in my application which have different "states" depending on what the user is doing; for exemple when listing through his files the form displays some data about that file in a grid, but if he clicks on some button the grid is replaced by a graph relating to it. Simply said, the controls in the form depends on th...

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, and they become full-fledges palette-based components from there. I'm using Delphi 2007. E...

Delphi, frames vs forms. What for multi-document interface?

Hi, yesterday I've started discussion on "MDI vs tabbed interface". I've asked whether should I continue developing my app as MDI-based, or should I embed the child forms into tab sheets. Someone pointed that I should use TFrames instead... My question is: why? What are pros of using TFrames when embedding the form over TFrame? So far I...

How to implement the OnResizeEnd Event for TFrame ?

Hello, 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 ...

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. ...

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 name} not found" error. I tried adding the line {$R *.dfm} to the component unit just af...

The control 'xxx' has no parent window

I'm was trying to write a dll library in Delphi wih a function that creates an instance of a TFrame descendant and returns it. But when I imported this function in an application, every time I called it I would get an exception like "the 'xxx' control has no parent window". I'm not 100% sure, but the exception appeared in the constructor...

Problem with size of a Toolbar2000 with an embedded Frame

I have Jordan Russel's Toolbar2000 toolbars that I create at runtime with an embedded TFrame and dock on the application main form. This frame has an embedded pane that in turn contains other panels and various controls. So the structure is: TTBDock TTBToolbar TFrame (align=alNone, Autosize=true) TPanel 1 (align=a...

How to simulate an OnDestroy event on a TFrame in Delphi?

How can i simulate an OnDestroy event for a TFrame in Delphi? i nievely added a constructor and destructor to my frame, thinking that is what TForm does: TframeEditCustomer = class(TFrame) ... public constructor Create(AOwner: TComponent); override; destructor Destroy; override; ... end; constructor TframeEditCustomer.Creat...

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 ...

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. ...