PRB: Control in Grid w/ When Returning .F. Passes Keys to Form (156035)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q156035 SYMPTOMS
Clicking on a grid column whose control's When() returns False allows focus
to be set to the grid column. In this state, keystrokes are passed to the
form containing the grid, calling the form's KeyPress event and actuating
any hotkeys on controls on the form.
WORKAROUND- Do not return False (.F.) from the control's When(), and conditionally
issue a KEYBOARD "{tab}" command in the control's GotFocus() to keep
focus off column.
- or -
- Conditionally issue a NODEFAULT in the KeyPress() method of the form.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | KB156035 |
---|
|