I have a form inside an xCustomListView. I want to constrain the tab navigation to the form until the user presses Enter.
This is easy enough to do from the "First Name" and "Zip Code" fields with the focus change event with a Tab keypress. But it will require knowing if the user hit Shift+Tab to process any other navigation. This is where I'm stuck.
Here's how I figure it can go:
1. Capture the Tab and Shift+Tab keys. If it's any other field than "First Name" or "Zip Code," let it fall thru. If it is leaving "First Name" with "Tab," let it fall thru. If it is leaving "First Name" with Shift+Tab, intercept and do txt_ZipCode.RequestFocus. If it is leaving "Zip Code" with "Tab," intercept and do txt_FirstName.RequestFocus. If it is leaving "Zip Code" with Shift+Tab, let it fall thru.
-or-
2. Disable all other controls in the xCustomListView until the user is done entering the data.
I've searched the forum and couldn't find a solution, so...
I suspect the first idea above is the better option, but I'm not sure how to capture the Shift+Tab keypress from a TextField.
What's the best way to go about handling this?
This is easy enough to do from the "First Name" and "Zip Code" fields with the focus change event with a Tab keypress. But it will require knowing if the user hit Shift+Tab to process any other navigation. This is where I'm stuck.
Here's how I figure it can go:
1. Capture the Tab and Shift+Tab keys. If it's any other field than "First Name" or "Zip Code," let it fall thru. If it is leaving "First Name" with "Tab," let it fall thru. If it is leaving "First Name" with Shift+Tab, intercept and do txt_ZipCode.RequestFocus. If it is leaving "Zip Code" with "Tab," intercept and do txt_FirstName.RequestFocus. If it is leaving "Zip Code" with Shift+Tab, let it fall thru.
-or-
2. Disable all other controls in the xCustomListView until the user is done entering the data.
I've searched the forum and couldn't find a solution, so...
I suspect the first idea above is the better option, but I'm not sure how to capture the Shift+Tab keypress from a TextField.
What's the best way to go about handling this?