troubleshooting Question

How do I identify Menu item click in Visual Foxro 9.0?

Avatar of Deepti_vobilineni
Deepti_vobilineni asked on
10 Comments1 Solution393 ViewsLast Modified:

I have a VFP application in which I want to implement auto-logoff feature.

I used BINDEVENT() function to handle this. I created a eventhandler class in whose Init() i captured WM_LBUTTONUP, WM_RBUTTONUP and WM_KEYUP events. My last activity timer will be reset in the delegate method every time I get any of the above 3 windows events.

Now I want to reset a variable every time I select an item from menu.

WM_MENUSELECT is of no use because it fires even if I mouse hover over the items. What i really need to capture is a menu item selection.

WM_COMMAND seemed to solve my problem until I recognized that it was fired even when I click on 'Yes/No' buttons on the message box.

How do I capture a menu select?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros