home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!vaxa.hofstra.edu!accdak
- From: accdak@vaxa.hofstra.edu
- Newsgroups: comp.databases
- Subject: Another Foxpro Screen Builder Question
- Message-ID: <1993Jan20.220223.514@vaxc>
- Date: 20 Jan 93 22:02:23 EST
- Lines: 26
-
- I used the Foxpro screen builder to create a grid (it's a calendar). Each
- field in the grid is a field in a temporary database. The up arrow key moves
- the cursor to the field to the left. Pressing the down arrow key moves the
- cursor to the field to the left.
-
- I wanted the down arrow to move the cursor into the field directly below in the
- grid. Pressing the up arrow key would move the cursor into the field above.
-
- I was able to do this with a WHEN clause which checks for a "screen index"
- or a mouse click and a function call (described below) in the VALID
- clause of each field in the grid. It works very very slowly. Has anyone
- done this or know where I can find code examples for this?
-
- The VALID function checks to see checks for the last key pressed. Based on
- that, the "screen index" is updated based on the current "screen Index". d.
-
- The WHEN clause checks to see if the "screen index" is the ok for the field or
- if the last key was actually a mouse click. If the mouse was used, instead of
- the keyboard, a new "screen index" is calculated from the screen position.
-
- The grid has 5 row and 7 fields in each row. Is it just the size of the code
- which has to be run though which makes it so slow? (I'm running Foxpro2 on
- a 486/25Mhz machine.
-
- David ACCDAK@vaxc.hofstra.edu - Internet
- ACCDAK@HOFSTRA - BITNET
-