home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gumby!wupost!psuvax1!psuvm!f0o
- Organization: Penn State University
- Date: Fri, 13 Nov 1992 09:57:26 EST
- From: <F0O@psuvm.psu.edu>
- Message-ID: <92318.095726F0O@psuvm.psu.edu>
- Newsgroups: comp.lang.pascal
- Subject: Scroll bar update problem
- Lines: 23
-
- On a project I'm currently working on using TPW 1.0, I'm displaying
- a map in a window and using the mouse to zoom in on sections of the map.
- When I rubber-band a region and let go of the left mouse button, my
- WMLButtonUp routine will get the new coordinate values and set the scroll
- bars to their new position using Scroller:.ScrollTo(). The ScrollTo
- method is supposed to update the window, I imagine by calling the Paint
- method.
- This all works fine the first time I zoom from the full map displayed
- in a window to a sub-section of the map. By then when I try to zoom in
- closer, the ScrollTo method does not seem to be calling the Paint method.
- The window will not update the second time. I can force it to by hiding
- it behind another window and then making it the active window, in which
- case everything looks fine, but the ScrollTo() method should update the
- window for me.
- When I run the program in TDW, the first time I step past the ScrollTo()
- method and the window is updated, the debugger will switch to the window
- as it updates, then go back to the debugger. However, the next time I
- try and zoom in, when I step past the ScrollTo() method, the debugger does
- not switch to the window.
- Has anyone else seen this problem or have any idea as to why the
- ScrollTo() method does not seem to update the window on the second call?
-
- [Tim]
-