Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms click event fires instead of objects event
Message
From
22/09/2009 11:21:19
 
 
To
22/09/2009 11:08:05
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:
01425602
Views:
54
>>You indicated that the form sometimes works correctly and other times does not. Is this reliable behavior (meaning that it always >>works correctly when called from a certain place in your program)? If so, then there has to be something different between the two >>called instances.

Yes it is "reliable" behavior, the call that does not work is from another form after user clicks and drags (mouseup() event fires). I thought somehow the mouse was not finishing the drag, so I moved the form calling code into a timer event and got the drag to set the timer off, thereby eliminating the mouse event - but that does not solve it.

It works perfectly when called from a menu, from a right click menu and from a button click event.

>>I would suggest running the form and looking at all the properties of the form for both instances and compare them; also you might >>look at the properties of the controls to see if enabled. You can do a screen capture of the values for _VFP.ActiveForm for each and >>compare (if you have SnagIt it will convert to text -- if you do not have it you can try it for free for 30 days).

I've done that and can't see any properties that are different, I even hard coded the form to load the same data on every call to eliminate a data cause.

It has to be VFP getting confused on the form activation, I just can't think of any property settings that would cause objects to display but not be clickable? or any that would allow me to "reinitiate" the objects, I've tried resize(), paint() etc.

Gary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform