Lisp HUG Maillist Archive

Scrolling

Hi folks,

I have an output-pane that uses "normal" scrolling (not internal  
scrolling). Sometimes, the contents I draw to the output-pane change  
so that the "internal size" of the pane changes.

What is the recommended way to update the scroll bars?

Using set-scroll-parameters with :max-range works well on Cocoa, but  
on Windows I get a very strange behavior, with the scroll bars  
appearing and disappearing randomly. Setting :scroll-width and :scroll- 
height (or :internal-min-width / :internal-min-height) in the pane  
works well, but as far as I know, they cannot be set after the pane  
has been initialized.

Regards
Erik


Re: Scrolling

>>>>> On Thu, 10 Nov 2011 10:44:30 +0100, Erik Ronström said:
> 
> Hi folks,
> 
> I have an output-pane that uses "normal" scrolling (not internal  
> scrolling). Sometimes, the contents I draw to the output-pane change  
> so that the "internal size" of the pane changes.
> 
> What is the recommended way to update the scroll bars?
> 
> Using set-scroll-parameters with :max-range works well on Cocoa, but  
> on Windows I get a very strange behavior, with the scroll bars  
> appearing and disappearing randomly.

Setting :max-range should work.

Does code in

(example-file "capi/output-panes/scroll-test.lisp")

exhibit the same problem (when you enter a new number for Range Maximum and
press return)?


>                                      Setting :scroll-width and :scroll- 
> height (or :internal-min-width / :internal-min-height) in the pane  
> works well, but as far as I know, they cannot be set after the pane  
> has been initialized.

That's correct.

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


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