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