Clint, Would you mind sharing how you worked around the lack of a blocking Dialog? Perhaps *something* could be included in Pivot to make it easier to work this way given there are equivalents in Swing & SWT, and the issue has come up on the mailing lists a few times.
This might be a use for a Glass Pane type Component within Pivot (which came up on the mailing list recently IIRC) http://download.oracle.com/javase/tutorial/uiswing/components/rootpane.html#glasspane Combined with some host frame, window & focus management and a simplified/streamlined/hidden way of creating the listeners, this might not be particularly difficult to implement. I have code that does a similar thing in a Pivot app with multiple host frames to show an ' app-wide modal' Dialog. Chris On 16 August 2011 07:21, Clint Gilbert <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I asked more or less this question a ways back: > > https://mail-archives.apache.org/mod_mbox/pivot-user/201001.mbox/%[email protected]%3E > > The answer, sadly, is no. > > My app - a game with a well-defined workflow - would have been much > simpler to implement with blocking, synchronous dialogs, but I get the > feeling apps like that are the minority. > > On 08/12/2011 08:34 PM, Roger L. Whitcomb wrote: >> I’m trying to ask a simple “Yes” or “No” question of the user (in >> response to trying to close a window), but I need to know the answer >> synchronously in order to know whether to close the window or not. So, >> in Windows and Swing there is a synchronous dialog that itself does the >> message pump and so it can return when the user clicks the button. Now, >> I don’t see anything like that in Pivot, so I’m wondering how one would >> implement such a thing? Thanks. >> >> >> >> >> >> >> >> *Roger Whitcomb* >> >> Architect, Engineering >> >> *Ingres Corporation*** >> >> [email protected] <mailto:[email protected]> >> >> >> >> *PHONE*+1 650.587.5596 >> >> *FAX*+1 650.587.5550 >> >> >> >> *www.ingres.com* <http://www.ingres.com/> >> >> >> >> This transmission is confidential and intended solely for the use of the >> recipient named above. It may contain confidential, proprietary, or >> legally privileged information. If you are not the intended recipient, >> you are hereby notified that any unauthorized review, use, disclosure or >> distribution is strictly prohibited. If you have received this >> transmission in error, please contact the sender by reply e-mail and >> delete the original transmission and all copies from your system. >> >> >> > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk5JuB8ACgkQ5IyIbnMUeTs3dACfWl9a8TxXWNGKgoY0PrtK6nLw > lEYAnRe+ye7wo3iQZtDf3Kjq9OPfwkmR > =Q8mQ > -----END PGP SIGNATURE----- >
