The information in this article applies to:
SYMPTOMSIf an OptionGroup control has the alphabetic characters "M," "P," "H," and "K," as hot keys, and the user moves through the OptionGroup using the direction (or arrow) keys, the Valid event fires. WORKAROUNDFor the Option button that has "M" as the hot key, add the following command to the GotFocus of this Option button:
For the hot key "H," place the following command in the GotFocus:
For the hot key "K," place the following command in the GotFocus:
For the hot key "P," place the following command in the GotFocus:
Then add the ON KEY command to the LostFocus of each Option button to
restore all keys to their default behavior.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been corrected in Visual FoxPro 5.0 for Windows. MORE INFORMATIONIf the option button has a hot key that begins with an "M," pressing the right-arrow key fires the Valid event of the option button. If the hot key is an "H," the up-arrow fires the Valid. If the hotkey is a "K," the left- arrow fires the Valid, and if it is a "P," the down-arrow fires the Valid. In addition, when the option button uses these hot keys, the focus does not leave that particular option button when pressing the arrow key that fires the Valid. Steps to Reproduce Behavior
Run the form and attempt to move off of each of the option buttons using right-arrow for the "M" hot key, the up-arrow for "H," left-arrow for "K," and down-arrow for "P." Additional query words: VFoxWin kbdsd
Keywords : FxtoolFormdes |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |