surensiddhi Posted February 5, 2017 Share Posted February 5, 2017 How to catch the modal result returned from the called form. Following code works fine in Delphi but it is not working in UniGUI. if GetSQLParaForm.ShowModal = mrOK then // Get the parameter values for the SQL Statement begin //show the result set with the parameters set in GetSQLParaForm GridViewForm.ShowModal;end; In GetSQLParaForm UniButton is ModalResult is set to mrOK ; // does not work procedure TGetSQLParaForm.UniBitBtn1Click(Sender: TObject);begin Modalresult := mrOK; // this also does not work; end; Any one know the alternative way to handle this. Quote Link to comment Share on other sites More sharing options...
Juarez Posted January 6, 2019 Share Posted January 6, 2019 On 2/5/2017 at 5:00 AM, surensiddhi said: How to catch the modal result returned from the called form. Following code works fine in Delphi but it is not working in UniGUI. if GetSQLParaForm.ShowModal = mrOK then // Get the parameter values for the SQL Statement begin //show the result set with the parameters set in GetSQLParaForm GridViewForm.ShowModal; end; In GetSQLParaForm UniButton is ModalResult is set to mrOK ; // does not work procedure TGetSQLParaForm.UniBitBtn1Click(Sender: TObject); begin Modalresult := mrOK; // this also does not work; end; Any one know the alternative way to handle this. Got any answers? I'm also in the same doubt Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 6, 2019 Share Posted January 6, 2019 38 minutes ago, Juarez said: Got any answers? I'm also in the same doubt Can you please specify first, which edition and build of UniGUI are you using ? Quote Link to comment Share on other sites More sharing options...
Juarez Posted January 6, 2019 Share Posted January 6, 2019 2 minutes ago, Sherzod said: Can you please specify first, which edition and build of UniGUI are you using ? uniGUI Complete Trial Edition 1.50.0.1482 (uniGUI Voyager) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 6, 2019 Share Posted January 6, 2019 5 minutes ago, Juarez said: uniGUI Complete Trial Edition 1.50.0.1482 (uniGUI Voyager) \FMSoft\Framework\uniGUI\Demos\Desktop\Form Callback 1 Quote Link to comment Share on other sites More sharing options...
Juarez Posted January 6, 2019 Share Posted January 6, 2019 2 minutes ago, Sherzod said: \FMSoft\Framework\uniGUI\Demos\Desktop\Form Callback Thanks!!! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 6, 2019 Share Posted January 6, 2019 6 minutes ago, Juarez said: Thanks!!! Thank you for your interest in UniGUI and have a nice programming! 1 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.