Something VERY weird is happening. If I make a window and turn own its built-in scroll bars, then scroll around and place controls in run-time, I noticed that the x and y coordinates of the controls are relative to the window coordinates, but as it appears on the screen.
In other words, if I start at horizontal (or vertical) position 0, then place a control 100 pixels from the left (or top), its x (or y) coordinate is 100. But then if I scroll 300 pixels to the right (or down) and place another control 100 pixels from the left (or top), it will also have an x (or y) coordinate of 100, even though it's actually 300 pixels right (or below) of the other one, and the coordinate should be 400!
This makes it impossible to judge in absolute terms, within the entire scrolling range, where exactly any control exists! What gives???
And no, I can't post source code, and don't even have it with me right now.