Jump to content

Free Form


Gustavo.deo

Recommended Posts

I'm trying to use Free Form in the application ...
But when using the code below, it does not showmodal, going straight through to the next instruction ...

I already tried the following options ..

 

var 

  fTeste : TfTeste;

begin
try
  fTest: = TfTeste.Create (UniApplication);
  fTeste.Showmodal;
finally
  FreeAndNil (fTest);

end;


and I already tried

 

var

  fTeste : TFteste;

begin
  fTest: = TfTeste.Create (UniApplication);
  fTeste.Showmodal;
  FreeAndNil (fTest);

..

Can someone help me???

Link to comment
Share on other sites

Hello ... Thank you in advance for your attention ...

i

I made the code

 

  fTest: = TfTeste.Create (UniApplication);

if fTeste.ShowModal = MrOk then

  FreeAndNil (fTest);

 

But it did not work the way I need it ..

 

I need it when calling ShowModal, stop the execution and only go to the next execution lines, when the fTest screen is closed ...

 

I need this, because after closing the screen and before destroying the form of memory, I will have other objects to be treated ...

 

How can I do it???

 

Thank you!!!

Link to comment
Share on other sites

Hello ... Thank you in advance for your attention ...

i

I made the code

 

  fTest: = TfTeste.Create (UniApplication);

if fTeste.ShowModal = MrOk then

  FreeAndNil (fTest);

 

But it did not work the way I need it ..

 

I need it when calling ShowModal, stop the execution and only go to the next execution lines, when the fTest screen is closed ...

 

I need this, because after closing the screen and before destroying the form of memory, I will have other objects to be treated ...

 

How can I do it???

 

Thank you!!!

For this case you must set to true EnableSyncronousoperations in datamodule. or use showmodal(procedure(sender: Tcomnponent: res: integer)begin //somecode here; end);

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