microtronx 38 Posted February 6, 2020 Do i need to synchronize here: FMX.Dialogservice.TDialogService.MessageDialog(mxappform._('Bestätigen?'), tmsgdlgtype.mtConfirmation, [TMsgDlgBtn.mbYes, TMsgDlgBtn.mbNo], tmsgdlgbtn.mbNo, 0, procedure(const AResult: TModalResult) begin if aResult=mrYes then begin tThread.Synchronize(nil, procedure begin // do something on GUI end); end; end); Share this post Link to post
Cristian Peța 103 Posted February 6, 2020 I tried with both TDialogService.TPreferredMode.Async and Sync and I see the same main thread in the procedure. So, no synchronize needed. 1 Share this post Link to post