jmdoneva Posted September 29, 2016 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. Quote
Sherzod Posted September 29, 2016 Posted September 29, 2016 Hi, http://forums.unigui.com/index.php?/topic/7086-version-09996/&do=findComment&comment=36058 Best regards. Quote
jmdoneva Posted September 29, 2016 Author 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. Quote
Administrators Farshad Mohajeri Posted September 29, 2016 Administrators 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? Quote
jmdoneva Posted September 29, 2016 Author Posted September 29, 2016 Yes. Please give me a few minutes. Quote
Administrators Farshad Mohajeri Posted September 29, 2016 Administrators Posted September 29, 2016 Please confirm that you are using build 1326. Quote
jmdoneva Posted September 29, 2016 Author 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. Quote
jmdoneva Posted September 29, 2016 Author 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. Quote
Administrators Farshad Mohajeri Posted September 29, 2016 Administrators 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 Quote
jmdoneva Posted September 29, 2016 Author 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. Quote
jmdoneva Posted September 30, 2016 Author Posted September 30, 2016 After updating to the latest build all works perfectly. Quote
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.