Lisp HUG Maillist Archive

Load images in dialog

Hi all,

I want to load images or make font lookups in a dialog, is it possible? As the documentation on interface states, the way to do it for ordinary windows is to put it into interface-display :before (or :after). But for display-dialog, that method is not called.

The only solution I've found so far is to defer creation of the images to the display-callback of my output-pane, and cache it from there. But it's quite ugly and seems like a last resort.

Regards
Erik


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


Re: Load images in dialog

>>>>> On Tue, 14 May 2013 01:14:02 +0200, Erik Ronström said:
> 
> Hi all,
> 
> I want to load images or make font lookups in a dialog, is it possible? As
> the documentation on interface states, the way to do it for ordinary windows
> is to put it into interface-display :before (or :after). But for
> display-dialog, that method is not called.
> 
> The only solution I've found so far is to defer creation of the images to
> the display-callback of my output-pane, and cache it from there. But it's
> quite ugly and seems like a last resort.

You could try the :create-callback of the dialog interface or the
:create-callback of the output-pane.

-- 
Martin Simmons
LispWorks Ltd
http://www.lispworks.com/

_______________________________________________
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:35 UTC