jahlxx Posted April 5, 2018 Share Posted April 5, 2018 Hi. In a cllback procedure of a showmodal form, is case of some error, I call to MessageDlg, but raises this error: Blocking MessageDlg() can not be called here Is there any way to solve this? Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 5, 2018 Share Posted April 5, 2018 http://forums.unigui.com/index.php?/topic/8179-blocking-function-showmodal-can-not-be-called-here-hframeworkuniguisourcecoreuniguijsformpas-ligne-986/ Quote Link to comment Share on other sites More sharing options...
jahlxx Posted April 5, 2018 Author Share Posted April 5, 2018 Sorry. Can you clarify? Thanks. Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted April 5, 2018 Share Posted April 5, 2018 You must use Non-Blocking MessageDlg (with callback). Quote Link to comment Share on other sites More sharing options...
jahlxx Posted April 6, 2018 Author Share Posted April 6, 2018 Great !!. Thanks. Quote Link to comment Share on other sites More sharing options...
ygerdel Posted November 27, 2019 Share Posted November 27, 2019 Hi, I have a dbgrid with a navigator. Within the process a message is called to confirm the change, but it acts differently depending on how it is saved. If saved from the navigator, it displays the message and waits for the response to continue, but If you change the row before saving, it should update the grid and save the changes, but the following error appears: Blocking Method MessageDlg() can not be called here. Any idea how to change the row, make the message appear, wait for a response and then continue with the save process without this error appearing? Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2019 Share Posted November 27, 2019 10 minutes ago, ygerdel said: I have a dbgrid with a navigator. Within the process a message is called to confirm the change, but it acts differently depending on how it is saved. If saved from the navigator, it displays the message and waits for the response to continue, but If you change the row before saving, it should update the grid and save the changes, but the following error appears: Blocking Method MessageDlg() can not be called here. Any idea how to change the row, make the message appear, wait for a response and then continue with the save process without this error appearing? Hi, Can you make a simple testcase for reproduce? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.