Jump to content

Failure to execute the code


hamze

Recommended Posts

Not run in tandem coding

F_Waite.ShowModal();
  ShowMessage('');

The application form is not close until the message can not be displayed

مشکل من اینه که در اپلیکشن تا زمانی که کاربر فرم مودال شده را نبندد پیغام نمایش داده نمیشود. در صورتی که در این فریمورک اینطور نیست و همه را اجرا میکند.

Consecutive messages will be displayed.

و مورد بعدی چرا چند پیغام که پشت سر هم میگزاریم فقط یکی از انها را نمایش میدهد.

Link to comment
Share on other sites

  • 1 month later...

Farshad said :

>>  uniGUI modal will not block thread execution. use Callbacks instead.

 

Today, I discovered this. 

If I understand, we don't use code after ShowModal

 
==========================================
 The code just after a showModal  is executed and don't wait !
==========================================
 
procedure TMainForm.UniButton1Click(Sender: TObject);
begin
//1.
  unit3.UniForm3.ShowModal(NextCode);
 
//2. NEVER write code after ShowModal :  it not stoped by showModal !!! ???
//   Showmessage('I am Here ');
 
//  if I understand, always write code after showModal in a procedure exemple : NextCode
//  is it True ?
end;
 
 
procedure TMainForm.NextCode(Sender: TComponent; AResult: Integer);
begin
  if AResult=1 then
   showMessage('Do this .... ')
  else
   showMessage('Canceled');
end;

 

ShowModal_Behavior.zip

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