Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!heron.cis.ohio-state.edu!mershon From: mershon@heron.cis.ohio-state.edu (Stuart Mershon) Newsgroups: comp.windows.x Subject: Scrollbar widget help needed ... Message-ID: <35812@tut.cis.ohio-state.edu> Date: 17 Feb 89 17:54:49 GMT Sender: news@tut.cis.ohio-state.edu Reply-To: Organization: Ohio State University Computer and Information Science Lines: 26 I am a novice X11R3 programmer looking for some help in dealing with the scrollbar widget. I am trying to use the callback procedure specified by XtNscrollProc to nudge the thumb a little bit one way or another, depending upon which mouse button was pressed. In order to do this, I have tried to use XtGetValues, which doesn't want to cooperate. So, I stepped back to the following: float top,shown; top = 0.5; shown = -1.0; XtScrollBarSetThumb(scrl[call_id],top,shown); XtSetArg( arg[0], XtNtop, &top ); XtGetValues( scrl[call_id], arg, ONE ); Even though my scrollbar shows the thumb in the proper position, top always comes back from XtGetValues with a zero value. Can anyone out there show me the error of my ways. Any help is greatly appreciated. Thanks, ... Jeb mershon@cis.ohio-state.edu