Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catch if shift key pressing at toolbar buttons click met
Message
From
10/03/2014 14:47:35
 
 
To
10/03/2014 13:29:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01595966
Message ID:
01596037
Views:
81
>>>>>>>Hi All,
>>>>>>>Is there a way catch if shift key pressing at toolbar buttons click method?
>>>>>>You don't need to go to the API for this. MouseDown has a parameter that tells you what keys are pressed. Capture the information there.
>>>>>>Tamar
>>>>>This's excellent, changed Rick's code with this. Thanks both of you... :)
>>>>
>>>>
>>>>Oh sure, Metin. One piece of better advice from Tamar and you abandon me? C'mon ... where's the loyalty, man? :-) LOL! Us guys need to stick together! :-)
>>>
>>>Rick, just want to comment that often you seem to jump to an API solution when VFP offers a native solution. In my view, whenever you can do it with the language, it's a better choice to do so, if for no other reasonable than maintainability. One or two lines of VFP code is easier to understand than a block of code calling on the API.
>>>
>>>Tamar
>>
>>
>>I often assume that by the time a person gets here and is asking a particular question, that there is some reason why they haven't been able to do it through the normal VFP facilities, so I offer a solution that I know will always work.
>
>My experience is that the VFP language is so rich that no one person knows all its capabilities. I figure that if someone asks here and they've already tried the language elements that should do the trick, they'll tell us that. If you read enough threads, you see that far more often than people need to reach outside VFP, they just need to be pointed to the right part of the language or helped to see how to put it to work.
>
>Tamar


Thank you for the guidance, Tamar.
Previous
Reply
Map
View

Click here to load this message in the networking platform