Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms click event fires instead of objects event
Message
From
23/09/2009 04:05:06
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01425578
Message ID:
01425711
Views:
58
>>Here is something that has saved me a lot of misdirected effort over the years, which I pass along in the hope it will help you as >>well. The problem is probably not VFP getting confused, a bug in VFP, etc. Event loops can be very tricky and it's easy to have >>code that makes them act, well, loopy ;-)

You are quite right, It is most likely an event not completing/releasing and it is bound to be my code.

>>The first place I would look is in the Load, Init, and possibly Activate methods of the called form. Is there anything in there that >>might cause the form to behave differently when called by another active form? Also, is the form's LockScreen property ever set >>to .T.? Another thing I would check is whether there are any On Key Labels in effect. Those can wreak havoc with the event loop. >>Also take a close look at the code in the calling form that invokes the form that's acting up.

Have commented out all code in load, init & activate and can still generate the problem. Feel It has to be something to do with mouseup event, just can't get to the bottom of it. Have created a very simple form and that does not exhibit the same behaviour so it has to be some combination of factors. Currently working my way through removing objects and code from the form somewhere I should meet the simple form that works and find my issue!

Thanks for the help

Gary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform