Tokay Posted March 28, 2021 Share Posted March 28, 2021 Hi! I try to placed the TUniSweetAlert on the Application Datamodule (in the UniGUI terms). I call TUniSweetAlert.Execute and it hangs here: UniSession.ProcessEvents even after 'OK' button pushed on the alert. When TUniSweetAlert placed on the form all works fine. Quote Link to comment Share on other sites More sharing options...
x11 Posted March 29, 2021 Share Posted March 29, 2021 I use TUniSweetAlert in UniMainModule but UniSweetAlert := TuniSweetAlert.Create(MyMainForm); or UniSweetAlert := TuniSweetAlert.Create(AnyMyForm); 1 Quote Link to comment Share on other sites More sharing options...
Tokay Posted April 1, 2021 Author Share Posted April 1, 2021 up Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted April 1, 2021 Share Posted April 1, 2021 Hi Parent of the Unisweetalert should be a form that rendered. You can't put Unisweetalert into mainmodule or datamodule unless you are creating it in runtime and giving a form like above. Quote Link to comment Share on other sites More sharing options...
Tokay Posted April 2, 2021 Author Share Posted April 2, 2021 On 4/1/2021 at 10:05 PM, Hayri ASLAN said: Hi Parent of the Unisweetalert should be a form that rendered. You can't put Unisweetalert into mainmodule or datamodule unless you are creating it in runtime and giving a form like above. Hmmm. Ok, thank you. 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.