Jump to content

MessageDlg using EnableSynchronousOperations = True


Gustavo.deo

Recommended Posts

Hi,

 

Please, can you clarify your question, and which edition and build are you using ?!

 

Best regards,

 

Sorry about my English!!

 

Edition 1.0.0 build 1421.

See the code sample below ...

 

procedure TfTeste.DCallBack4 (Sender: TComponent; Res: Integer);

begin   

  ModalResult := Res;

end; 

 

 

procedure TfTeste.APesquisarExecute (Sender: TObject);

begin   

  MessageDlg ('mbYesNo', mtConfirmation, mbYesNo, DCallBack4); // i need him to wait for the message to reply before proceding...

  

  if ModalResult = 1 then

    xxxxx

  else

   yyyyy;

 

end;

 

how to make???

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