jmdoneva Posted September 29, 2016 Share Posted September 29, 2016 In your implementation of the MessageDlg in the format MessageDlg('string',dialogtype,mbyesno,callback). It moves to the next line of code after presenting the Message dialog without waiting for a response. For example... procedure test; begin Messagedlg('Would you like to continue?',mtConfirmation,mbyesno,DCallback1); Close; end; procedure DCallback1(Sender: TComponent; res :Integer); begin case res of mrYes : do something; mrNo : do something else; end; end; when the procedure test presents the Message dialog it doesn't wait for the response but Closes the form because it has move to the next line of code. Is this the way it is supposed to work or is there another way to call MessageDlg so it waits for a response. Link to comment Share on other sites More sharing options...
Sherzod Posted September 29, 2016 Share Posted September 29, 2016 Hi, http://forums.unigui.com/index.php?/topic/7086-version-09996/&do=findComment&comment=36058 Best regards. Link to comment Share on other sites More sharing options...
jmdoneva Posted September 29, 2016 Author Share Posted September 29, 2016 When I MainModule -> EnableSynchronousOperations to True it destabilizes the webpage. Data doesn't load into the unidbgrid properly and the unibuttons stop executing code when pressed. Then after a minute or two the page will crash. Windows Server (Windows Server 2008 R2 Standard). I set up my site as recommended in you documentation for IIS 7. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 29, 2016 Administrators Share Posted September 29, 2016 When I MainModule -> EnableSynchronousOperations to True it destabilizes the webpage. Data doesn't load into the unidbgrid properly and the unibuttons stop executing code when pressed. Then after a minute or two the page will crash. Windows Server (Windows Server 2008 R2 Standard). I set up my site as recommended in you documentation for IIS 7. Can you test in standalone mode too and see if anything changes? Link to comment Share on other sites More sharing options...
jmdoneva Posted September 29, 2016 Author Share Posted September 29, 2016 Yes. Please give me a few minutes. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 29, 2016 Administrators Share Posted September 29, 2016 Please confirm that you are using build 1326. Link to comment Share on other sites More sharing options...
jmdoneva Posted September 29, 2016 Author Share Posted September 29, 2016 Hello Mr. Mohajeri, No... it is FMSoft_uniGUI_Professional_0.99.96.1322_Beta. It works fine in standalone but had the above described problem as a ISAPI module on our Windows Server. Link to comment Share on other sites More sharing options...
jmdoneva Posted September 29, 2016 Author Share Posted September 29, 2016 My original problem was that MessageDlg didn't stop code execution. I have only developed for desktop and know little about web development. I understand now that on the web server code execution does not stop. I can work around that. The true modal dialog isn't important for me at this point. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 29, 2016 Administrators Share Posted September 29, 2016 My original problem was that MessageDlg didn't stop code execution. I have only developed for desktop and know little about web development. I understand now that on the web server code execution does not stop. I can work around that. The true modal dialog isn't important for me at this point. Yes, we can emulate true modal windows in uniGUI, but it is recommended to use callbacks wherever applicable. Thanks Link to comment Share on other sites More sharing options...
jmdoneva Posted September 29, 2016 Author Share Posted September 29, 2016 I see now in the Customer Portal that there is a new version. I will download and install and then test it again. Link to comment Share on other sites More sharing options...
jmdoneva Posted September 30, 2016 Author Share Posted September 30, 2016 After updating to the latest build all works perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now