Is there a way to prevent a user from minimizing a window? I suspect we can use the Form OnHide (or is it OnExit… I’m not in front of Servoy right now) event trigger… but that requires adding to every form right?
Thanks.
Is there a way to prevent a user from minimizing a window? I suspect we can use the Form OnHide (or is it OnExit… I’m not in front of Servoy right now) event trigger… but that requires adding to every form right?
Thanks.
Hi Chico,
I don’t think the onHide event will trigger when you minimize a window. It should only trigger when you move to another form within this same window.
Perhaps the kioskmode might be of help? It will hide the whole window.
plugins.window.setFullScreen(true);
Hope this helps.
Thanks ROCLASI… we wanted to do that awhile ago but thanks to Java, it doesn’t work if you’re using popup windows ( application.showFormInDialog )
So you have to change all of our behavior to use Tabs and Hide and Show… which may take some time.
Ultimately, it’ll be better for us.
Chico
Hi Chico,
I do this to stop users from closing a window until a form is saved…put the following code in the forms onhide method. set the globals.gFormOkToClose = 1 if you allow it to close.
if(globals.gFormOkToClose == 1){
return true;
} else {
return false;
}
Thanks Phillip… we’ll give that a try.