Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find the shortkey and the lastkey value?
Message
From
03/12/2005 20:12:28
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01074037
Message ID:
01074675
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>>Nadya,
>>
>>How about this:
>>
>>oActive = ThisForm.ActiveControl
>>if (vartype(m.loObject) = "O") or (vartype( m.oActive ) = 'O')
>>   llReturn = (inlist(lower(justext(sys(1272, m.loObject))),"cmdcancel","cmdclose") and mdown()) OR ;
>>      inlist(lower(m.oActive.Name),"cmdcancel","cmdclose")
>>else
>>   llReturn = .f.
>>endif
>>
>>
>>I think, you don't even have to use AMOUSEOBJ(). Use ActiveControl object is enough. But I don't know, just in case <bg>
>>
>>HTH
>
>This can work as well. It doesn't answer the thread question, though.


Yes it doesn't, sorry. I just thought that it would be easier <g>.
Anyway, I think you can bind to windows messages (WM_SYSCHAR) to get the shortcut key.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardaccelerators/keyboardacceleratorreference/keyboardacceleratormessages/wm_syschar.asp
Herman
Previous
Reply
Map
View

Click here to load this message in the networking platform