Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Click event vs keypress
Message
From
11/12/2001 07:44:24
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00592124
Message ID:
00592586
Views:
23
>>>Is there a way to discern between clicking in a listbox and hitting ENTER? When I do hit enter, the click event fires as well.
>>
>>Haven't tested but off the top of my head...
>>
>>
>>IF LASTKEY() = 13 && enter key was pressed
>>ENDIF
>
>Yes, thanks!

If keyboard is not used after last [ENTER] on another object lastkey() still would return 13. At least support it by :
and !mdown().
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform