eduardosuruagy Posted May 12, 2020 Share Posted May 12, 2020 How can I call ShowMask inside a DataModule? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 12, 2020 Share Posted May 12, 2020 To able to show mask in datamodule, you need to call synchronize. We are not suggesting call synchronize in any datamodule event. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted May 12, 2020 Author Share Posted May 12, 2020 10 minutes ago, Hayri ASLAN said: Para poder mostrar a máscara no módulo de dados, é necessário chamar a sincronização. Não estamos sugerindo a sincronização de chamadas em nenhum evento do módulo de dados. What reason do you not indicate? Quote Link to comment Share on other sites More sharing options...
Wilton Ergon Posted May 13, 2020 Share Posted May 13, 2020 if you are activating a method on the datamodule, using a form, start showmask from your form ex: procedure tform.clickbutton; begin showmask('wait...'); UniSession.Synchronize; dmfunctions.yourprocedure; hidemask; end; Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 13, 2020 Administrators Share Posted May 13, 2020 The best way to use a mask is enabling the Mask in associated control such as button. We don't recommend using Synchronize in such cases. 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.