I have a grid, and would like to set it so that the arrow keys cause
the focus to move to the next/previous object in the tab order. In the
keypress method, I watch for chr(4), and keyboard a chr(9). This works
in the forward direction. However, I also watch for a chr(19), and
keyboard a '{SHIFT+TAB}', but nothing happens. I can press shift-tab,
and it works as expected, but programatically doing it seems to be
ignored. I can't keyboard a chr(15), because this is also ctrl-o and
causes the open dialog to appear. Up/down arrows works as expected.
So - how can I trap a left arrow, and keyboard a shift-tab so that the
focus moves to the previous object in the tab order?
Here is a sample form that I've been working with, and it has the grid
with the specific settings we need:
http://zootal.no-ip.info/stuff/VFP%20Stuff/
You want the form files for gridnavtest. Click on the grid, and then
when the grid has the focus, try the left and right arrow keys. You
can look at the simple code to see what I'm doing.
Background: I'm using the grid in a calendar control, where each grid
is a day of the month. I'd like to use the arrow keys to navigate from
one date to the next, but so far have only got it to work in the
forward direction. I can use code and manually setfocus to the desired
control, but it would be cleaner if I could just stuff a shift-tab
into the keyboard buffer.