I have not tried this in qooxdoo with a window object, but I have used this technique for IE popup windows: create a variable on the window object and set it to false, If the user clicks a Cancel button on your page, run a Cancel script and set the value of the variable to true, then call an exit script. In the exit script, check to see if the variable it false, if it is, call the Cancel script. Also, set the value of this variable to true in the script you call when clicking OK to process the window values. Hook into the onClose event of the window and call the exit function. So if they close the window using the X it should call the Exit script which will then call the cancel script if needed. Like I said, I have not implemented this yet in qooxdoo, but it should work. The only thing that I am not 100% clear on is if clicking on the X will trigger the onClose event of the window. Someone else might be able to share some info on this. I am working on popup windows now so once I get something tested I'll post some real code for you.
Jim
On 5/17/06, Raphaël Terrettaz <[EMAIL PROTECTED]> wrote:
Thank you for your responses !
I thought indeed of a button which allow to close the
window by cancelling the entered values.
Perhaps for the next release to add a "ModalCancel"
property, set to True if this top right button is
clicked and in case of a modal window...
Raphaël
--- Sebastian Werner <[EMAIL PROTECTED]> a
écrit:
> You can change the the function: _closeButtonManager
> to not include the
> modal handling inside the if-case.
>
> The intention here was, that the most time modal
> windows was used as
> non-easily closeable dialogs here. Maybe we should
> enable the
> close-button as default and implement this feature
> in some QxDialogWindow.
>
> Sebastian
>
>
>
>
> Jim Hunter schrieb:
> > I brought this up once before but got no final
> answer except that it was
> > designed that way. I had to add a button on my
> popup to close the
> > window. I think Sebastian is aware that the X
> needs to be enabled, give
> > it time. I haven't had time to create a patch for
> it but if I get time I
> > will.
> >
> > Jim
> >
> > On 5/16/06, *Raphaël Terrettaz*
> <[EMAIL PROTECTED]
> > <mailto: [EMAIL PROTECTED]>> wrote:
> >
> > Hello !
> >
> > Why it's not possible to close a modal Window
> with the
> > X on the top right ? When I set the
> > setModal(true)
> > this icon becomes gray and I cannot click on
> it ...
> >
> > Any reason ?
> >
> > Thank you !
> > Raphaël Terrettaz
> >
> >
> >
> >
> >
> >
> >
>
___________________________________________________________________________
> > Faites de Yahoo! votre page d'accueil sur le
> web pour retrouver
> > directement vos services préférés : vérifiez
> vos nouveaux mails,
> > lancez vos recherches et suivez l'actualité en
> temps réel.
> > Rendez-vous sur http://fr.yahoo.com/set
> >
> >
> >
>
-------------------------------------------------------
> > Using Tomcat but need to do more? Need to
> support web services,
> > security?
> > Get stuff done quickly with pre-integrated
> technology to make your
> > job easier
> > Download IBM WebSphere Application Server
> v.1.0.1 based on Apache
> > Geronimo
> >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
>
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
> >
> _______________________________________________
> > Qooxdoo-devel mailing list
> > [email protected]
> > <mailto:[email protected]>
> >
>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
>
>
>
>
-------------------------------------------------------
> Using Tomcat but need to do more? Need to support
> web services, security?
> Get stuff done quickly with pre-integrated
> technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1
> based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Qooxdoo-devel mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
___________________________________________________________________________
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel.
Rendez-vous sur http://fr.yahoo.com/set
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
