[racket-dev] okay to call init-auto-scrollbars multiple times on a canvas%?

From: John Clements (clements at brinckerhoff.org)
Date: Tue Jan 14 13:44:39 EST 2014

I’m implementing (not-horribly-clunky) zooming for sound waves in rsound, and I like the auto-scrollbars mechanism.  One question is what should happen when the user zooms in. I’d like to change the virtual-size.  The obvious solution is to call “init-auto-scrollbars” again. This seems to work, but the name “init-auto-scrollbars” gives me pause. Is it okay to call init-auto-scrollbars again on a canvas?

If so, I’ll add a note to the docs.

Many thanks!

John



Posted on the dev mailing list.