Home > Back-end >  Will form controls
Will form controls

Time:10-21

Excuse me, how to form controls,
Make, invoked, the form can be set to a new form,
If use frame, the great god, genuflect is begged

CodePudding user response:

The landlord may think complex issues, any object can make it controls, including the object containing the form, control doesn't have to install, PAS module in the statement of object can be called directly, dynamically generated object instances, of course, the form class control after installation to facilitate visual design, but install controls also have side effects: in computer you still have to install it again, and different Delphi version and compatibility,

As long as the TForm (or its Parent class) as the base class for derived a new object, combined with your own things, can make the form controls, want to have it set to another form, as long as the Parent attribute assignment for Parent form went, don't confusing attribute and the Parent Owner, the Owner is jurisdiction, responsible for release the child object, when the Parent is responsible for the form displayed in the Parent form,

CodePudding user response:

The
refer to the original poster zcy00772 response:
excuse me, how to form to make control,
Make, invoked, the form can be set to a new form,
Whether to use frame, the great god, genuflect is begged


General use Frame, you must write control is done,

CodePudding user response:

The form can be directly set!
Set the form1. Parent:=form2. Panel1;
Form1. Visible:=true;
Form1. Align:=alClient;
.

CodePudding user response:

Make it controls what made you want control?

I was like on top of the Panel controls. Such pulled or a Panel