Wiki Home

Scrollbars And Forms In VFP 7


Namespace: WIN_COM_API

I am using VFP7 and I have a form on which I have placed 2 grids. The form has vertical scrollbars and the user populates the grid by clicking on an option group which runs a select statement and sets the control source for the grid.

The problem I am having is that if the user has scrolled to the bottom of the form before clicking on the option group to populate the grid, when they go to click on the grid to highlight a row, the position of the vertical scrollbar is at the bottom of the scroll area, but the form jumps back to the top part of the form. This means that the user cannot scroll down to see what is at the bottom of the form, without scrolling up first. Am I doing something wrong?

I would either like the vertical scrollbar to be in the correct position after they click on the grid, so that they can scroll down, or a way of stopping the form from jumping to the top of the form area when they click on the grid after running the select statement.

Any help appreciated.

This problem appears to be fixed by VFP8, but I do not want to upgrade my application to VFP8 yet.
(see link: http://support.microsoft.com/kb/818179)
( Topic last updated: 2005.03.31 08:25:18 AM )