At 5:16 PM +0100 24-02-00, Gordon, Douglas wrote:
>I have a feedback slider control that is giving me the expected
>ctlRepeatEvent events when it is being dragged. However, when the event
>occurs, the slider value as returned by CtlGetValue or CtlGetSliderValues
>does NOT change. When the slider is eventually released, the value finally
>changes to the new one. I can't figure out how to get the interim values for
>the slider. If this information is not available, then the ctlRepeatEvent
>events are fairly useless -- I can't dynamically update the display as the
>slider is being dragged.
Hmm... I'm not sure what CtlGetValue or CtlGetSliderValues *should* do.
When you're dragging, the new slider value isn't 'true' yet. e.g. you can
drag vertically outside the bounds and the slider snaps back to the old
value...
Anyway, the new (intermediate) value is passed as part of the
ctlRepeatEvent! It's in event.data.ctlRepeat.value
Clearly you can update the intermediate value while the slider is being
dragged, as both the contrast (Palm V) and brightness (Palm IIIc) controls
update while you're dragging. :-) (In fact, it's those UI elements that
prompted the addition of the slider control to the API!)
--Bob
_______________________________________________________________________
Bob Ebert, Consulting Engineer, Palm Computing Europe SARL (still 3Com)
V: +33 4 99.52.43.54 F: +33 4 99.52.43.97 [EMAIL PROTECTED]
77 rue Samuel Morse, 34935 Montpellier, Cedex 9, France
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html