Exclusive Focus on Form Popup

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Exclusive Focus on Form Popup

Postby john1598360627 » Tue Jan 09, 2024 2:13 am

I want to popup a form and then have exclusive focus on the form such that the user can't click out of it unless they press a close button.

This should be basic, but I forget which component does this. Or if there's a new better method for doing this. Windows, Popup, FormPopup, dialogs? Let me know the best way of doing so with current Servoy.
john1598360627
 
Posts: 175
Joined: Tue Aug 25, 2020 3:03 pm

Re: Exclusive Focus on Form Popup

Postby Joas » Tue Jan 09, 2024 11:53 am

You need a modal dialog, so for example:
Code: Select all
   var win = application.createWindow("name", JSWindow.MODAL_DIALOG);
   win.show(forms.yourform);
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: Exclusive Focus on Form Popup

Postby john1598360627 » Thu Jan 11, 2024 1:45 am

Joas wrote:You need a modal dialog, so for example:
Code: Select all
   var win = application.createWindow("name", JSWindow.MODAL_DIALOG);
   win.show(forms.yourform);

Roger, thanks!
john1598360627
 
Posts: 175
Joined: Tue Aug 25, 2020 3:03 pm


Return to How To

Who is online

Users browsing this forum: No registered users and 36 guests

cron