Hello Xailers,
Is there any way to temporary disable the ProcessMessages function?
Something like the property lAllowProcessMessages from MariaDB.
Thanks,
Juliano
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Temporary disable ProcessMessages
- ignacio
- Site Admin
- Mensajes: 9246
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Re: Temporary disable ProcessMessages
Hello,
I'm afraid is not possible, sorry. If you need to avoid the use of certain operations, like form closing or button pressed in the middle of a process. I suggest you use the following techniques:
1) Use a private data member lWorking that becomes true when you are in the process.
2) Use a private data member lCloseRequested that any button may change it to true in the process loop.
3) Check on your loop the value of lCloseRequested, to exit from it if becomes true.
4) Disable all the controls you do not want the user can touch.
5) Reject the form closing using its OnClose event and checking if lWorking is true.
Regards,
I'm afraid is not possible, sorry. If you need to avoid the use of certain operations, like form closing or button pressed in the middle of a process. I suggest you use the following techniques:
1) Use a private data member lWorking that becomes true when you are in the process.
2) Use a private data member lCloseRequested that any button may change it to true in the process loop.
3) Check on your loop the value of lCloseRequested, to exit from it if becomes true.
4) Disable all the controls you do not want the user can touch.
5) Reject the form closing using its OnClose event and checking if lWorking is true.
Regards,
Re: Temporary disable ProcessMessages
Hello Ignacio,
I will try with one of this solutions.
Many thanks!
I will try with one of this solutions.
Many thanks!
- ignacio
- Site Admin
- Mensajes: 9246
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Re: Temporary disable ProcessMessages
You should use the five proposals at the same time.
Regards
Regards
Re: Temporary disable ProcessMessages
Thanks Ignacio,
Most of them we already use, I am going to test adding the other ones.
Regards,
Juliano
Most of them we already use, I am going to test adding the other ones.
Regards,
Juliano