News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

scroll to top left

Started by jimg, March 12, 2016, 10:48:25 AM

Previous topic - Next topic

jimg

I'm having a senior moment here.

I have a dialog I've been moving around with ScrollWindow.   After awhile, I'm out of sync due to roundoff error or some other factor.   What is the command to scroll the window to the zero,zero position so I can re-calibrate?   ScrollWindow only seems to be relative to the current position, and I've lost that position.  I can't even think of a good enough term to search online and get an answer.

TouEnMasm

If you can post your code or a sample,it will be more simple to help you.
Fa is a musical note to play with CL

jj2007

Quote from: jimg on March 12, 2016, 10:48:25 AMAfter awhile, I'm out of sync due to roundoff error or some other factor.

Even if you are working with integer results, and keep them in global variables?

If nothing helps, hide it a second, resize to w=1, h=1, update(?), then restore the old size, update and show again. But as Yves wrote, code for testing would be nice ;)

MichaelW

You could maintain a set of coordinates that track the offset of the window from the original position, updating them each time you scroll the window.
Well Microsoft, here's another nice mess you've gotten us into.

jimg

Thank you.  I thought I was having a real brain glitch.   From your comments, there apparently is no scroll to origin command.  :)   
What an oversight on Microsoft's part.