Keeping the Cursor from Advancing on Push Button ObjectID: Q115110 The information in this article applies to:
SUMMARYWhen the ENTER key is pressed, it sometimes is desirable to have the cursor stay on the same push button prompt in a set of multiple prompts in a push button object. However, doing this is not as simple as with other GET fields in a screen because FoxPro treats each prompt in a set of push buttons as a separate object, even though the push button set is defined as a single screen object. This article describes two methods of keeping the cursor from moving to the next field.
MORE INFORMATION
Method 11. Open or create a new screen. 2. In FoxPro for Windows, use the Push Button tool to add a push button to 3. In the Push Button Prompts dialog box, enter the set of prompts. In
4. In the Push Button dialog box, choose the Valid button in FoxPro for
5. In the resulting dialog box, select Procedure, and then enter the CASE
6. Generate and run the screen.
Method 21. Follow steps 1-5 above; however, instead of entering the code shown in 2. Generate and run the screen.
When the appropriate push button is chosen, pressing ENTER will execute the command, but will not cause the cursor to move to the next button or field. Additional reference words: FoxDos FoxWin 2.50b 2.60 stay moving stop prevent KBCategory: kbprg KBSubcategory: FxprgGeneral |
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |