[gsharp-devel] Re: [mcclim-devel] scrollbars and :command-loop
Christophe Rhodes
csr21 at cam.ac.uk
Fri May 12 16:58:57 UTC 2006
[added gsharp-devel, since that's where this patch would end up...]
"Andy Hefner" <ahefner at gmail.com> writes:
> I struggled with this a while ago and concluded that incremental
> redisplay is probably the intended solution.
While Andy said this in this forum, he did provide a hint in
another... on IRC, he said
<hefner> Xof: have you considered solving your scrolling problem by
setting :display-time nil and calling your display function yourself
from the top-level loop and using (clear-output-record
(stream-output-history foo)) rather than window-clear?
And so I tried it, and the attached patch is the result. I don't know
if it's climily correct, and it might suffer a bit from suboptimality
when loading in new files, but apart from that it does what I think I
want it to.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: scrolling.diff
URL: <https://mailman.common-lisp.net/pipermail/gsharp-devel/attachments/20060512/3bbcc726/attachment.ksh>
-------------- next part --------------
So this patch does two things: one, after doing what drawing to the
score pane needs to be done, the :height space requirement is changed
to whatever it needs to be; two, window-clear calls are intercepted
and implemented following Andy's suggestion.
Comments?
Cheers,
Christophe
More information about the gsharp-devel
mailing list