Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   Crear form dinamicamente (https://www.clubdelphi.com/foros/showthread.php?t=25216)

karocs 15-09-2005 19:58:47

Crear form dinamicamente
 
Saludos

Que difencia existe en utilizar Application.createForm
y Form.Create(Self) al crear las formas dinamicamente, o cual es mas eficiente.

apreciaria mucho su sugerencia.

dec 15-09-2005 20:15:18

Hola,

Cita:

Empezado por Ayuda de Delphi - TCustomForm.Create
Creates and initializes a new TForm object.

Use Create to instantiate a TForm object or descendant of TForm at runtime. AOwner is the owner of the TCustomForm object.

For descendants of TCustomForm that are not TForm objects, use CreateNew instead. Calling Create for a TCustomForm descendant that is not a TForm will raise an exception.

VS.

Cita:

Empezado por Ayuda de Delphi - TApplication.CreateForm
Creates a new form.

Call CreateForm to dynamically create a form at runtime. Developers do not need to add code for creating most forms, because typically one or more calls to CreateForm are added automatically to the project's source when using the form designer.

CreateForm creates a new form of the type specified by the FormClass parameter and assigns it to the variable given by the Reference parameter. The owner of the new form is the Application object.

Note: By default, the form created by the first call to CreateForm in a project becomes the application’s main form.

¡Ding, ding, ding! ¡Segundos fuera! ;)


La franja horaria es GMT +2. Ahora son las 19:46:34.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi