Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!sgi!daisy!klee From: klee@daisy.UUCP (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Scrollbar widget help needed ... Message-ID: <2716@daisy.UUCP> Date: 17 Feb 89 22:19:31 GMT References: <35812@tut.cis.ohio-state.edu> Reply-To: klee@daisy.UUCP (Ken Lee) Organization: Daisy Systems Corp., Mountain View, Ca. Lines: 16 In article <35812@tut.cis.ohio-state.edu> writes: => float 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. Funny, this code works fine for me (X11R3, Sun 386i, SunOS 4.0.1), assuming scrl[call_id] is a valid widget ID. Does your machine have a problem with pointers to floats? Ken Lee -- klee@daisy.uucp Daisy Systems Corp., Interactive Graphics Tools Dept.