[racket] (no subject)

From: Amy Stahlman (ameliastahlman at gmail.com)
Date: Wed Sep 10 14:40:03 EDT 2014

I've been working on a program that uses "init-auto-scrollbars" and I
noticed that when the window is resized it actually changes the size of the
virtual canvas along with the literal canvas instead of just resizing the
scrollbar and changing the size of the literal canvas.

Here's an example that shows this:

*(require racket/gui)(define frame (new frame%                  [label
"Example"]                  [width 300]                  [height
300]))(define canv (new canvas% [parent frame]    [style '(vscroll
hscroll)]            [paint-callback             (lambda (canvas dc)(send
dc draw-ellipse 0 0 500 500))]))(send frame show #t)(send canv
init-auto-scrollbars 500 500 0.0 0.0)*

Resize the window, making it large enough to show the entire ellipse;
notice how the scrollbar's relative size doesn't change, and there is blank
space at the bottom.
Is this by design or some kind of bug?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140910/5373ee66/attachment.html>

Posted on the users mailing list.