The information in this article applies to:
SYMPTOMSWhen assigning hot keys to the command button, check box, or option button objects, some keys trigger that hot key besides the letter key that was assigned to it. When assigning the letters G, O, R, or S as hot keys, pressing the Insert, Delete, Home, or End keys also triggers the objects that these letters are assigned to. Also, using the hot key letters A, B, and C can be triggered by the F7, F8, and F9 keys. RESOLUTIONTo work around this problem, use the ON KEY LABEL command to turn off these keys. Be careful using this method since it might cause problems in some instances because the Insert, Delete, Home, or End keys may not be available for things like editing data. The syntax for this command is ON KEY LABEL <key name> *. Note that the asterisk is what disables the key. To turn the key back on, issue ON KEY LABEL <key name> without the asterisk. Look in the "Steps to Reproduce Behavior" section for examples of using this command in a form. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0a. MORE INFORMATIONTo allow an object to have hot key capability, place the "\<" symbols in front of the letter that is to be used as the hot key. For example, placing "\<Quit" in the Caption property of the object allows the pressing of the Q key to give focus to that object. Any letter in the caption can be assigned as the hot key. Another example would be "E\<xit", which allows the X key to become the hot key. No two objects on the form can have the same hot key letter. Whichever object was assigned the hot key letter first is the one that will receive focus. Steps to Reproduce Behavior
REFERENCESFor information on a similar issue, please refer to the following article in the Microsoft Knowledge Base: Q158830 FIX: OptionGroup with M, P, H, K Hot Keys Fire Valid Additional query words:
Keywords : kbtool kbVFp kbVFp300bbug kbVFp500afix kbVFp500bug buglist3.00 FxtoolFormdes |
Last Reviewed: February 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |