[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: updating a dialog connected to a scroll-bar
- To: pshannon@iapetus.cv.nrao.edu (Paul Shannon), comp-lang-lisp-mcl@services.cambridge.apple.com
- Subject: Re: updating a dialog connected to a scroll-bar
- From: e@flavors.com (Doug Currie, Flavors Technology, Inc.)
- Date: Mon, 8 Aug 1994 10:00:36 -0500
>I call
>
> (set-dialog-item-text target (format nil "~d" current-value))
>
>but the text doesn't change while the mouse is down. How do I force
>the update? What principle lies behind the delay?
The item is invalidated by set-dialog-item-text, but is not redrawn until
the next update-event. Mouse events have higher priority than update
events.
I do something like this:
(defmethod scroll-bar-changed ((st e-text-scrollee) sb)
(set-dialog-item-text st (princ-to-string (scroll-bar-setting sb)))
(view-focus-and-draw-contents st))
e