PRB: Using ARROW Keys Ignores Page Deactivate Event NODEFAULT (165169)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q165169 SYMPTOMS
In Visual FoxPro 5.0x, moving between pages in a PageFrame using an ARROW
key ignores the NODEFAULT keyword in the Deactivate Event of a page. Moving
between pages using a mouse click with the NODEFAULT keyword in the
Deactivate Event works as expected.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
WORKAROUND
Here is a workaround for the behavior illustrated in the above example:
- Set the Form KEYPREVIEW property to .T.
- Put the following code in the KeyPress Event of the Form:
IF THISFORM.ACTIVECONTROL.BASECLASS="Page" AND ;
(nKeyCode=4 OR nKeyCode=19) AND ;
!THISFORM.ACTIVECONTROL.DEACTIVATE()
NODEFAULT
ENDIF
- Type in the following code in the Deactivate Event of first page:
NODEFAULT
RETURN .F.
Modification Type: | Major | Last Reviewed: | 2/4/2000 |
---|
Keywords: | kbprb KB165169 |
---|
|