ShowFormInDialog() options - disable close box

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

ShowFormInDialog() options

Postby ROCLASI » Sat Nov 15, 2003 4:15 pm

It would be wonderful if we could make the dialog with this function a (movable) modal window.

I like to use this feature for windows with, for example, an OK and Cancel button.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby jcompagner » Sat Nov 15, 2003 7:50 pm

the formDialog is modal and moveable.
and you can put ok and cancel buttons in the form to get the dialog you want..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8852
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby ROCLASI » Sun Nov 16, 2003 2:18 am

jcompagner wrote:the formDialog is modal and moveable.
and you can put ok and cancel buttons in the form to get the dialog you want..


I guess you are technically right.
Can you give me control over the close button as well then? I don't want a user to be able to close the window without using any of my predefined buttons.

Thanks :)
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby IT2Be » Tue Nov 18, 2003 7:43 pm

I must agree here with Robert.

Let's say you want to do a validation on leaving a form (that we entered with showFormOnDialog). We would leave the form with (or without) ok and cancel etc. buttons. But we can still click away the form via the close box.

We can 'attach' a method to the 'onHide' event but even when you give a focus to an element with a validation error the form closes when we used the close box.
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby jcompagner » Thu Dec 04, 2003 12:40 am

in the next beta release onHide on a form can return a false to stop the dialog from closing.

This feature is also now available on the main panel (so normal forms) if the onhide of the current showing form returns false then it won't switch to another form.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8852
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby IT2Be » Thu Dec 04, 2003 1:05 am

Great Johan, thanks...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron