home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4322 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.7 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!darwin.sura.net!uvaarpa!concert!borg!news_server!ladd
  2. From: ladd@oscar.cs.unc.edu (Brian Ladd)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Scroll Bars Acting Funny
  5. Message-ID: <LADD.92Aug19111803@oscar.cs.unc.edu>
  6. Date: 19 Aug 92 15:18:03 GMT
  7. Sender: news@cs.unc.edu
  8. Distribution: comp
  9. Organization: UNC Department of Computer Science
  10. Lines: 28
  11.  
  12. I am probably missing something fundamental, but in a tiny application I am
  13. working on I almost have vertical scrolling working. It just seems that the
  14. scrollbar remains "pressed" when the background of the bar or one of the
  15. arrows is pressed with the mouse. That is to say, it scrolls, a page or
  16. line at a time, from top to bottom or bottom to top of the picture being
  17. displayed.
  18.  
  19. I am compiling with gcc/emx 0.8d and the Toolkit/2 headers. After deciding
  20. what type of WM_VSCROLL message I have got and calculating the appropriate
  21. change in the scroll bar and in the image, I send a SBM_SETPOS message to
  22. the scroll bar, I scroll the window appropriately, I call WinUpdateWindow,
  23. and I return 0.
  24.  
  25. My decoding logic seems correct; the scroll bar seems "sticky" with the
  26. buttons remaining depressed until I press the mouse button on any other window.
  27. It doesn't seem to capture the mouse, for nothing moves when I am off the
  28. scrollbar, it just waits for me to be over it again and it starts scrolling
  29. again.
  30.  
  31. As always, any information would be greatly appreciated.
  32.  
  33. -bcl
  34. Brian C. Ladd
  35. Graduate Student & *NIX Court Jester
  36. UNC - Chapel Hill
  37. Internet: ladd@cs.unc.edu
  38. As always, the University will disavow all knowledge of this posting and
  39. its author. This message will self-destruct in five seconds:  5..4..3..2..1...
  40.