Lisp HUG Maillist Archive

Modal dialogs on Windows

Hi,

Is it possible to get a modal dialog in LWW?

The documentation on display-dialog says:

"A true value of modal indicates that the dialog takes over all input to the application. [...] The default value of modal is t ."

This is true on Mac OS X, but on Windows, it is still possible to click on any interface "behind" the dialog and continue interacting with it. Is this avoidable?

Erik



_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Modal dialogs on Windows

Answering myself:

I've been using :owner (capi:convert-to-screen) in every call to display-dialog, since otherwise the dialog opens as a sheet on Mac OS X. But that also seems to be the source of the Windows problems: only the interface specified as :owner is disabled.

So, the documentation is still not completely accurate, but at least I have a workaround for most of the cases (I still have a problem when I have more than one interface that needs to be disabled by a single dialog).

Erik


20 jan 2014 kl. 17:37 skrev Erik Ronström:

> 
> Hi,
> 
> Is it possible to get a modal dialog in LWW?
> 
> The documentation on display-dialog says:
> 
> "A true value of modal indicates that the dialog takes over all input to the application. [...] The default value of modal is t ."
> 
> This is true on Mac OS X, but on Windows, it is still possible to click on any interface "behind" the dialog and continue interacting with it. Is this avoidable?
> 
> Erik
> 
> 
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
> 


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:34 UTC