-- Mr Andrew Dorrell * Faculty of Engineering /---\ Whoo? * University of Technology, Sydney (o o) / * AUSTRALIA ( : ) . ^ ^ *
--- > (fg (foreground self)) > (bg (get-keyword :background initargs (background (parent self))))) > (slot-set! self 'priv-bg > (Id 'create 'rectangle 0 0 0 0 :outline bg :fill bg)) 78a88,90 > (slot-set! self 'highlight-thickness (get-keyword :highlight-thickness initargs 0)) > (slot-set! self 'relief (get-keyword :relief initargs "raised")) > (slot-set! self 'background bg) 82c94 < ;;;; configure-gauge --- > ;;;; configure-gauge (original) 84,90c96,115 < (define-method configure-gauge ((self <Gauge>)) < (when (slot-bound? self 'priv-box) < (let ((width (winfo 'width self)) < (height (winfo 'height self))) < ((Id self) 'coords (slot-ref self 'priv-box) < 0 0 < (quotient (* width (value self)) 100) height)))) --- > ;(define-method configure-gauge ((self <Gauge>)) > ; (when (slot-bound? self 'priv-box) > ; (let ((width (winfo 'width self)) > ; (height (winfo 'height self))) > ; ((Id self) 'coords (slot-ref self 'priv-box) > ; 0 0 > ; (quotient (* width (value self)) 100) height)))) > ;; modified > (define-method configure-gauge ((self <Gauge>)) > (when (slot-bound? self 'priv-box) > (let* ((offset (+ (border-width self) (highlight-thickness self))) > (width (- (winfo 'width self) offset)) > (height (- (winfo 'height self) offset))) > ((Id self) 'coords (slot-ref self 'priv-bg) > offset offset width height) > ((Id self) 'coords (slot-ref self 'priv-box) > offset offset > (quotient (* width (value self)) 100) height) > ((Id self) 'itemconfigure (slot-ref self 'priv-box) :outline > (if (zero? (value self)) (background self) (foreground self))))))
--- > ;;;; Last file update: 26-Jul-1998 12:57 53a54,56 > (define-class <Tk-active-and-propagated-metaclass> > (<Tk-active-metaclass> <Tk-composite-metaclass>) > ()) 66c69,72 < (fraction :init-keyword :fraction) --- > (fraction :accessor fraction > :init-keyword :fraction > :allocation :active > :after-slot-set! (lambda(o v) (place-grip o))) 94c100,101 < :propagate-to (frame)))) --- > :propagate-to (frame))) > :metaclass <Tk-active-and-propagated-metaclass>) 186c193,196 < (fraction :init-keyword :fraction) --- > (fraction :accessor fraction > :init-keyword :fraction > :allocation :active > :after-slot-set! (lambda(o v) (place-grip o))) 214c224,225 < :propagate-to (frame)))) --- > :propagate-to (frame))) > :metaclass <Tk-active-and-propagated-metaclass>)Received on Thu Sep 03 1998 - 02:28:50 CEST
This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST