Lisp HUG Maillist Archive

Modal window without using display-dialog

I want to create a modal window like the preferences window in the
Lispworks IDE. The window should be resizable and movable. I do not
want to use display-dialog. How can I do this?

-- 
Ryan Hope, M.S.
CogWorks Lab
Department of Cognitive Science
Rensselaer Polytechnic Institute


Re: Modal window without using display-dialog

On Fri, Oct 22, 2010 at 7:08 AM, Ryan Hope <rmh3093@gmail.com> wrote:

> I want to create a modal window like the preferences window in the
> Lispworks IDE. The window should be resizable and movable. I do not
> want to use display-dialog. How can I do this?

Why don't you want to use display-dialog?

FWIW, you can use window styles when defining the interface to make it
resizable - see the CAPI reference entry for interface.  (This is
about MS Windows, isn't it?)

Cheers,
Edi.


Re: Modal window without using display-dialog

Ryan Hope wrote on Fri, 22 Oct 2010 01:08:07 -0400 09:08:

| I want to create a modal window like the preferences window in the
| Lispworks IDE. The window should be resizable and movable. I do not
| want to use display-dialog. How can I do this?

You can disable the caller window by means of
(setf (capi:simple-pane-enabled interface) nil)
--
Sincerely,
Dmitriy Ivanov
lisp.ystok.ru


Re: Modal window without using display-dialog

No this has nothing to do with WIndows, I am testing on OSX. I know I
can use :window-styles (:resizeable) but I can't find window style
that brings the window decorations back or anything that allows the
dialog to be moved.

On Fri, Oct 22, 2010 at 2:00 AM, Edi Weitz <edi@agharta.de> wrote:
> On Fri, Oct 22, 2010 at 7:08 AM, Ryan Hope <rmh3093@gmail.com> wrote:
>
>> I want to create a modal window like the preferences window in the
>> Lispworks IDE. The window should be resizable and movable. I do not
>> want to use display-dialog. How can I do this?
>
> Why don't you want to use display-dialog?
>
> FWIW, you can use window styles when defining the interface to make it
> resizable - see the CAPI reference entry for interface.  (This is
> about MS Windows, isn't it?)
>
> Cheers,
> Edi.
>



-- 
Ryan Hope, M.S.
CogWorks Lab
Department of Cognitive Science
Rensselaer Polytechnic Institute


Re: Modal window without using display-dialog

On Fri, Oct 22, 2010 at 8:14 AM, Ryan Hope <rmh3093@gmail.com> wrote:
>>> I want to create a modal window like the preferences window in the
>>> Lispworks IDE. The window should be resizable and movable. I do not
>>> want to use display-dialog. How can I do this?
>>
>> Why don't you want to use display-dialog?

Are you trying to avoid display-dialog, or just to display the modal
dialog as a window, and not as a sheet attached to some window?  If
the latter, then the following might work for you:

(capi:display-dialog interface :owner (capi:convert-to-screen))

-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/


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