home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19475 < prev    next >
Encoding:
Text File  |  1992-11-23  |  2.1 KB  |  52 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!mta!mitch
  3. From: mitch@mta.com (Mitch Trachtenberg)
  4. Subject: arrowhead-style Athena scrollbar
  5. Message-ID: <1992Nov23.154327.11727@mta.com>
  6. Organization: Mitch Trachtenberg & Associates
  7. Date: Mon, 23 Nov 92 15:43:27 GMT
  8. Lines: 42
  9.  
  10.   I've developed modifications for the Xaw scrollbar widget
  11. which implement the arrowhead style familiar to users of the 
  12. Macintosh, Windows, Motif, etc.  Donna Converse has been kind
  13. enough to place the modified scrollbar on export, in
  14.  
  15.     export.lcs.mit.edu:contrib/Xaw.Scrollbar.mta.Z
  16.              
  17.   The start of the README from the file on export follows:
  18.  
  19.   This directory contains a modified version of the Xaw scrollbar 
  20. widget which implements the arrowhead style familiar to users of
  21. the Macintosh, Windows, Motif, etc...  This version of the Scrollbar 
  22. is a "drop in" replacement for the original; that is, once you rebuild 
  23. your Xaw library with this modified code your applications will pick up 
  24. the new scrollbar style without the application code noticing the switch.  
  25.  
  26.   (Well, almost.  You should apply the small patch to Xaw/Text.c noted 
  27. at the top of the Scrollbar.c source file.  This patch will not hurt things 
  28. even if you revert to the original Scrollbar.  It simply ensures that 
  29. user clicks in the scrollbar channel scroll by a minimum of one line, 
  30. which seems reasonable, unless your users like to click for the hell of it.)
  31.  
  32.   The behavior of this version is as follows:  
  33.  
  34.         * button 1 clicks in the arrows move a "small increment"
  35.           in the direction of the click; these autorepeat
  36.         * button 1 clicks in the channel move a "large increment"
  37.           in the direction of the click; these don't autorepeat
  38.     * motion while button 1 is down has no effect until the
  39.           pointer touches the slider, at which point it "picks
  40.           the slider up"
  41.         * button 2 presses cause the slider to jump to and track 
  42.           the pointer position (as in the original)
  43.         * button 3 mimics button 1
  44.  
  45.  
  46.   
  47. -- 
  48. Mitch Trachtenberg              Mitch Trachtenberg & Associates (MTA)
  49. mitch@mta.com                5 Holyoke Street
  50. (617) 267-0440                Boston, MA 02116
  51.  
  52.