How to Highlight a Menu Option or Menu Item ProgrammaticallyLast reviewed: January 30, 1996Article ID: Q143074 |
The information in this article applies to:
SUMMARYUpon startup of an application, you may want to have a specific menu or menu option highlighted by default so that the user need only press the ENTER key to carry out the associated command. This article presents a simple way to do it.
MORE INFORMATIONThis method, which depends on the KEYBOARD command, can be used with either FoxPro for Windows or Visual FoxPro.
This method can be called an unlimited number of times without running into the 'Do nesting too deep' error message you may encounter if you use the ACTIVATE MENU command. The other significant advantage is that the use of the KEYBOARD command allows you to drill down to a specific menu option (in this case, Form 2). The disadvantage to this method is that there is a flicker as the keyboard commands are executed.
For information about how to do this with FoxPro 2.x, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q110909 TITLE : How to Highlight a Menu Bar and Popup Programmatically |
Additional reference words: 3.00 3.00b VFoxWin bar
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |