Feature #406

"x" box and mod_dialog

Added by Donald J Lapin over 2 years ago. Updated 3 months ago.

Status:Closed Start date:01/05/2012
Priority:Normal Due date:
Assignee:Harjo Kompagnie % Done:

0%

Category:-
Target version:-
Client type:Web client OS version:Mac OS 10.6.8
In developer?:Yes Java version:1.6.0_29
Servoy version:5.2.11 Browser (if web client):
Component version:1.1.3
Votes: 0

Description

When displaying a dialog with the mod_dialog plug-in, it is not possible to prevent the "x" from being shown in the upper right corner of the window. The user can click on this box to close the window, even when the designer has placed OK and Cancel buttons on the dialog form itself. When the "x" box is clicked, it bypasses the code for the buttons, which might set global variables which are used in subsequent code. The "onHide" event is also superseded by the plug-in, so that returning "false" in that event does nothing to prevent closure. It would be highly desirable to give the designer the option not to display this "x" graphic or, failing that, a way to disable the "x" box from closing the window.

History

Updated by Robert Ivens almost 2 years ago

  • Component version set to 1.1.3

Hi Donald,

The dialog frame is created and controlled by Wicket (thus Servoy), not by the dialogs module. Perhaps it might be possible to override the 'w_close' class that Wicket is using with Servoy Webclient Utils plugin.
Of course that adds another dependency.

In Servoy 6.1 however it's possible to use frameless dialogs so that means you have full control on how the dialog appears.

What are your thoughts?

Updated by Donald J Lapin almost 2 years ago

Hi Robert,

Are the dialogs in 6.1 you are referring to "full" dialogs, which pause the script and allow user input into elements like text fields?

Is Servoy 6.1 ready to use, and is it possible to use it without introducing other problems?

Thank you for following through on this,
Don

Updated by Robert Ivens almost 2 years ago

Hi Don,

In 6.1 the JSWindow object has an extra 'undecorated' property that removes the window frame. And just like in 6.0 you can make this window a window, a dialog or a modal dialog.
That last one is what you are referring to as it pauzes the script.

As for the question if Servoy 6.1 is ready to use. I don't know. It's at RC5 right now and I haven't had much time to do a lot of testing with it.
But like with any version I suggest you test your own solutions with it and see what issues you find.

Anyway, I will explore the option to override the CSS. That trick should work in 6.1 as well.

Updated by Harjo Kompagnie 3 months ago

  • Assignee set to Harjo Kompagnie

Updated by Harjo Kompagnie 3 months ago

  • Status changed from New to Closed

This issue can be closed, because in the latest version of the trunk, you can now use the undecorated option.

Also available in: Atom PDF