in 1.jpg, you see the vc++ 6.0 editor. There are 5 fields, 4 of which have EXACTLY the same size. All 5 fields have exactly the same properties (except the ID, of course).
In 2.jpg, you see the dialog as used in the running program. I must say that the size of the 5 fields is recalculated automatically, according to the size of the screen. So maybe due to some rounding errors, the size of the 4 lower windows may vary by one pixel.
Now there are 2 problems, with scrolling:
1.) I see a scrolling bar on the last 2 fields, but no scrolling bar on theother fields. Why ? All 5 fields are used in the very same way, in the cpp part of the program.
2.) at the moment of the screen shot of 2.jpg, the cursor is in the FIRST field, at line 8. But it does not scroll down automatically. I guess that the topmost pixel of line 8 is still visible, and so it does not scroll. But of course I want the program to show me 100% what I am typing. - When I press the downarrow key, then I get what you see in 3.jpg. - I know I could solve it vy trial and error (by adding or removing some pixels in the height of the first window. But this would be a mediocre solution, because as soon as the user has a screen with different size, I cannot guarantee a perfect program anymore.
any idea what causes the bug ?