kit@athena.mit.edu (Chris D. Peterson) (04/01/88)
As promised here is the first cut of my reworked scrollbar type widgets. The ThumbScroll widget allows an image to be used as the thumb of the widget. I have put the documentation for these widgets at the end of this article, if anyone out there would like to test these widgets, let me know and I will send you the source. Chris D. Peterson Project Athena Systems Development Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-342C 77 Massachusetts Ave. Cambridge, MA 02139 ------------------------------------------------------------ Revised Scrollbar Type Widgets X11R2 XToolkit I have just completed a new set of scrollbar type widgets, that make better use of subclassing. New features have been added allowing the user to specify a bitmap image for the thumb as well as change the location of the hot spot of the thumb. This package contains three new widget classes to be used in the place of the current scrollbar widget. They are: Valuator | V Scrollbar | V ThumbScroll The valuator widget allows an application to get one-dimensional information about the location of a mouse click within the widget, but has no visual feedback, kind of like a scrollbar without a thumb. The scrollbar widget is very similar to what we now think of as a scrollbar and except for minor changes, you should notice no difference in its behavior or arguments. The changes in the scrollbar were necessary to allow this new subclassing to work they are: 1) New translation table syntax and function names, should not effect you unless you have specified your own translation table. 2) The thumb proc is now called BEFORE the thumb is moved. The thumbscroll widget allows a bitmap (or hard coded pixmap) image to be used as the thumb of the widget, as well allowing the thumb's hot spot to be moved from the top (left) edge. Since images are assumed to be of fixed size this widget's thumb does not change length as the widget changes size. All arguments are listed in the public header files for these widgets and should be pretty easy to understand. If you have any questions or problems please let me know. Chris Peterson Project Athena Systems Development Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-342C 77 Massachusetts Ave. Cambridge, MA 02139