tform

Registering a form in Object Repository (automated, by code or any other means)

I was doing some customization to my forms, since I want them with some published properties appear on Object Inspector. I've done the simple way: create the form, put it on object repository, created a package to register it with RegisterCustomModule. I would like to know if anyone have a way to put it on Object Repository in a automat...

Dynamic Delphi form creation - ensuring correct mouse message handling

I have an Application layout that is based on a treeView at the left, and a panel on the right. The panel hosts a differnt TForm class depending on the tree node selected (a kind of 'form explorer'). There is only one form displayed at a time which exposes underlying data stored elsewhere and the form instance is created and destroyed on...

Override default Show behaviour / SetVisible of TForm's descendant (Delphi VCL)

I would like to alter the Show default behaviour of a TForm's descendant (for eg. instead of showing itself on the screen, I would like to place it on a page control as a new tabsheet). How to achive that ? I'd like to show it using a standard method (call Show method or set Visible property) so I tried to override the SetVisible method....

How to explicitly release GDI handles allocated by TForm derived class owned by the Application?

Hi. A single class derived from TForm appears to hold onto GDI handles until the application is closed. class TTestForm : public TForm { public: TTestForm(TComponent*); }; std::auto_ptr<TTestForm> test(new TTestForm(NULL)); test->ShowModal(); I'm quite new to VCL, so please bear with me. This test was done with a form that con...