[comp.windows.x] Scroll.c?

grunwald@uiucdcsm.cs.uiuc.edu (10/21/87)

Do scrollbars in libXtk.a work? I've had no luck getting them to do anything.
I was hoping to put a better front-end to a text previewer.

dirk grunwald
grunwald@m.cs.uiuc.edu

tom@hpcvlo.HP.COM (Tom Houser) (10/24/87)

The scrollbar was not included in the makefile in the Sept. release 
of the X11 tape.  I found that Scroll.c wouldn't compile, but made the   
following two fixes.  It now compiles and appears to work.

In the file Scroll.c:

   49c49
   <   	"<Motion>2:	MoveThumb()", /* bug? in TM forces button spec here */
   ---
   >   	"Button2<PtrMoved>:	MoveThumb()",/*bug? in TM forces button spec here */
   
In the file Conversion.c:

   Make the declaration  "Cursor cursor;"  static in the function 
   "CvtStringToCursor".  It gets passed out of the function and therefore
   must be declared static.
   e.g.,  static Cursor cursor;