PRB: Cannot Use the Keyboard to Navigate Between Controls

Last reviewed: May 31, 1996
Article ID: Q147843
The information in this article applies to:
  • Microsoft Visual FoxPro for Macintosh, version 3.0b

SYMPTOMS

In a form or in a dialog, you can't move the focus to a command button by pressing the TAB key. The only way to move the focus to the control is to click it. You'll see this behavior in all of these situations:

  • You cannot press the TAB key to move among controls in Wizard dialogs.
  • Pressing the TAB key does not move the focus to controls in the GETFILE(), PUTFILE(), and other dialogs.
  • The TabStop property setting has no effect on whether or not a user can press the TAB key to navigate in a form.

CAUSE

This is a feature specific to Macintosh interfaces. Command buttons do not get the focus when you press the TAB key to move to them.

WORKAROUND

You can modify this behavior by using the SET KEYCOMP command. If you use the syntax SET KEYCOMP TO WINDOWS, you can navigate in the form, and the default button in a dialog box is selected when you press the ENTER key. However, the KEYCOMP setting does not affect the GETFILE() and the PUTFILE() dialogs.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. On the File menu, click New Form to start a new form in the Form Designer.

  2. Place two command buttons on the form.

  3. Save the form, and run it. Press the TAB key. Nothing happens.

  4. In the Command window, type SET KEYCOMP TO WINDOWS. Click the form to set the focus to it, and press the TAB key. The focus moves to the second command button.


Additional reference words: 3.00b VFoxMac Xplatform cross platorm
KBCategory: kbui kbprb
KBSubcategory: FxprgGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 31, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.