;;;;
;;;; STk adaptation of the Tk widget demo.
;;;;
;;;; This demonstration script shows an example with a vertical scale.
;;;;
(define (demo-vscale)
(define (set-height! c poly line height)
(let* ((height (+ height 21))
(y2 (max (- height 30) 21)))
(set! (coords poly) (list 15 20 35 20 35 y2 45 y2 25 height 5 y2 15 y2 15 20))
(set! (coords line) (list 15 20 35 20 35 y2 45 y2 25 height 5 y2 15 y2 15 20))))
(let* ((w (make-demo-toplevel "vscale"
"Vertical Scale Demonstration"
"An arrow and a vertical scale are displayed below. If you click or drag mouse button 1 in the scale, you can change the size of the arrow."))
(f (make :parent w :border-width 10))
(c (make