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