Radio Buttons Handled Differently in FoxPro for Windows

Last reviewed: June 27, 1995
Article ID: Q95662
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SUMMARY

Tabbing through radio (option) buttons in FoxPro for Windows is handled differently than it is in FoxPro for MS-DOS if KEYCOMP is set to WINDOWS. When the selection cursor is on a radio button in FoxPro for MS-DOS, pressing TAB moves the selection cursor to the next button in the set. If the selection cursor is on a radio button in FoxPro for Windows, pressing TAB moves the selection cursor to the next object on the screen. If KEYCOMP is set to MS-DOS in FoxPro for Windows, pressing TAB in a dialog box will behave like it does in FoxPro for MS-DOS.

MORE INFORMATION

In FoxPro for MS-DOS, when the selection cursor is positioned on a radio button, it moves to the next button in the set when the TAB key is pressed. The same holds true for push (command) buttons and invisible buttons. In FoxPro for Windows, command buttons and invisible buttons still work the same way, but pressing TAB when the selection cursor is on a radio button moves to the next object, not the next button in the set.

The way the TAB key works in FoxPro for Windows is by design. In the Windows environment, a grouped set of radio buttons is treated as one object for tabbing between objects. This is handled by Windows itself and can be observed in all Windows-based applications. FoxPro for MS-DOS versions 2.0 and 2.5 were not limited to a set definition for how radio buttons should be accessed, so it was decided to allow movement through the buttons with the TAB key.


Additional reference words: FoxWin 2.50 2.50a keystrokes
KBCategory: kbprg
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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.