Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting click
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01056882
Message ID:
01056899
Views:
10
In VFP9 you may use BINDEVENT to link mouse events, like WM_LBUTTONDOWN, sent to _screen.HWND to a method of your modal form.

* * *
For lower VFP versions, I woud try Windows API function SetWindowsHookEx. It could do the trick. BUT because of VFP does not support callback functions, this solutions -- AFAIK -- requires participation of an external module: FLL, DLL or ActiveX.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookfunctions/setwindowshookex.asp

see WH_MOUSE, MouseProc
Previous
Reply
Map
View

Click here to load this message in the networking platform