[mcclim-devel] Re: Redisplay and pixmaps

Кальянов Дмитрий kalyanov.dmitry at gmail.com
Mon Aug 11 15:48:49 UTC 2008


В сообщении от Monday 11 August 2008 13:24:19 Sascha Wilde написал(а):
> Sascha Wilde <wilde at sha-bang.de> wrote:
>
> Sorry, send the last message to early per accident, here are the missing
>
> questions:
> > BUT: The string "Redisplay #1" _is_ redrawn, so some more low level part
> > of CLIM knows that a redraw is needed and does that for the text send to
> > the standard output stream.
> >
> > So two questions:
>
> 1. What do I have to do, so that the display-function is called _every
>    time_ a redisplay is needed?
>
> 2. Is there a better way to ensure that the picture is redisplayed
>    whenever needed, maybe even that magical es done with the text?
>

There is a :display-time initarg for panes. It controls when 
the :display-function is called.

But, there is a handle-repaint method (which is a part of Sheet Repaint 
Protocol) that does the repaint. As I understand, :display-function is a more 
high-level (it's defined for stream panes), and it outputs not pixels on 
screen (which is a job for handle-repaint), but outputs objects onto pane.

(I myself do not have a good knowledge of CLIM, so whatever I say might be 
wrong).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <https://mailman.common-lisp.net/pipermail/mcclim-devel/attachments/20080811/2ca9ec44/attachment.sig>


More information about the mcclim-devel mailing list