CLIM mail archive
[Prev][Next][Index][Thread]
Re: pop up windows
In message <m0pcdJk-0008g5C@liasg1.epfl.ch>you write:
>
>Dear "climers",
>
>I'm working with Clim 2.0.
>I've spent a couple of hours trying to open a simple temporary
>(menu-like) window to display a warning message ..
>The clim2.0 doc specifies that the "clim:with-menu" macro can be used
>to allocate a temporary window for other uses than displaying a menu.
>I've tried this to solve my problem but could never make it work.
>Any help would be greatly appreciated.
>
>Djamila
>
>------------------------------------------------------------------------------
>-
>Djamila Haroud | haroud@lia.di.epfl.ch
>ArtificiaI Intelligence lab.
>Swiss Federal Institute of Technology(EPFL)
>DI-Ecublens, 1015 Lausanne
>Switzerland.
>------------------------------------------------------------------------------
>-
Dear Djamila,
I've no experience in Clim 2.0
but in Clim 1.1 under LUCID
I got WITH-MENU to work:
(in-package :clim-user)
(let (menu1)
(with-menu
(menu *root-window*)
(setf menu1 menu) ;; save to de-expose it later
(size-menu-appropriately
menu
:width *menu-width*
:height *menu-height*
:right-margin *menu-width*
:bottom-margin *menu-height*
)
(window-expose menu)
(force-output menu)
;; ... do some in-/output on stream bound to menu
)
(setf (window-visibility menu1) nil) ;; de-expose
(force-output menu1)
)
Thomas.
------------------------------------------------------------------------------
Thomas Weis
SFB 314 (KI und Wissensbasierte Systeme), FB14 - Informatik,
Uni. Saarbruecken, D-66123 Saarbruecken
------------------------------------------------------------------------------
References:
Main Index |
Thread Index