Jump to content

crear form en ejecucion


Botones67

Recommended Posts

Hola amigos.
 

var Fr:  Tuniform;

fr:=Tuniform.Create(uniaplication);

  try

      fr.sow();

finally

     fr.freeandnil(fr);

end;

igual que haríamos en delph para no crear lo stodos los formularios a la vez que se inicia la aplicacion,  pero en unigui no funciona.

¿cómo seria la manera correcta?

Gracias nuevamente.

 

Link to comment
Share on other sites

Ya me contesto yo solo.

var Fr:  Tuniform;

fr:=Tuniform.Create(uniaplication) // esta linea  hace show.

// si se necesita se puede usar

fr.showmodal; 

 

No hace falta free ni freeandnil ya que los formularios uniform tienes una propiedad  freeonclose boolean que al salir lo destruye.

Gracias a todos.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...