SAMPLE: Agrid.exe Navigates to Non-Visible Grid Cells in VisualLast reviewed: February 20, 1998Article ID: Q172087 |
The information in this article applies to:
SUMMARYAgrid.exe is a sample for FoxPro for Windows that shows a way to move to grid cells that are not visible on the face of the grid with program code. The files include a form, Gridtest.scx, with a grid on it. The grid is based on a class stored in the Agrid.vcx visual class library. Agrid.hqx is a sample for the Macintosh that shows a way to move to grid cells that are not visible on the face of the grid with program code. The files include a form, Gridtest.scx, with a grid on it. The grid is based on a class stored in the Agrid.vcx visual class library.
MORE INFORMATIONThe following files are available for download from the Microsoft Software Library:
~ Agrid.exe (size: 21556 bytes) - Compressed file for Visual FoxPro for Windows ~ Agrid.hqx (size: 31492 bytes) - Stuffed file for Visual FoxPro for MacintoshFor more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591 TITLE : How to Obtain Microsoft Support Files from Online ServicesIn Visual FoxPro, the ActivateCell() method of a grid can be used to change the active cell in a grid. However, ActivateCell() works only for cells that are visible in the grid. A grid may have thousands of rows and more columns than can be shown. These rows and columns can be accessed if the user scrolls the grid or uses the navigation keys (page up, page down, arrow keys, and so forth) to move to them. The sample .vcx file contains a class based on a grid that has a custom method to allow access to any cell in the grid, visible or not. To use the files included, follow these steps:
either a zero or negative number entered for the column reference. Any improvements to the code in the GoToCell custom method in the agrid class are appreciated.
Keywords : FxprgGrid VFoxMac vfoxwin Version : MACINTOSH:3.0b; WINDOWS:3.0,3.0b,5.0,5.0a Platform : MACINTOSH WINDOWS Issue type : kbfile Solution Type : kbsample |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |