networkthis
Programmer
Is it possible to do a hidden mouse click on a form, without affecting the position of the mouse itself???
I'm asking this question because we have discoved the following is happening with a lot of our users. Also, I have found a few others on the net having the same issue, just with no resolution to the problem. It seems to only be occuring with VFP 9.
When a user is holding down the left mouse button on the scrollbar generated by a combobox and is scrolling through the options and goes off the scrollbar (while still holding the left mouse button)(*They release the left mouse button outside of the dropdown) - then return to the dropped down list and left click on a value, it will not select and display that value. This selected value is stored by default I believe in the valid event (?) However, the valid and when events are not released when this happens unless you click on the form itself. It is as if the click function is disabled after losing focus on a combo box while scrolling.
So, here are my thoughts: I can make this problem go away by simply adding MOUSE CLICK in the mouseleave event. This works wonderful, as long as your combobox is no where near any other object :-/ So, I tried making the MOUSE CLICK at 1,1 and hiding with mousepointer = 13. This works great for displaying the value correctly everytime. Yet, it's not practical to move the cursor on the user everytime. I can get the current X and Y coordinates on the mouseleave, but when I try to make the mouse coordinates return to those coordinates on the form itself... I can not for the life of me figure it out... MOUSE CLICK wants a "WINDOW" name and I'm lost as the form itself isn't a window?? There has to be a way to do this. I almost just need an invisible click at 1,1 and then immediate return to where the mouse was, or a better idea! I'm still new at VFP and any help is greatly appreciated!!!
I'm asking this question because we have discoved the following is happening with a lot of our users. Also, I have found a few others on the net having the same issue, just with no resolution to the problem. It seems to only be occuring with VFP 9.
When a user is holding down the left mouse button on the scrollbar generated by a combobox and is scrolling through the options and goes off the scrollbar (while still holding the left mouse button)(*They release the left mouse button outside of the dropdown) - then return to the dropped down list and left click on a value, it will not select and display that value. This selected value is stored by default I believe in the valid event (?) However, the valid and when events are not released when this happens unless you click on the form itself. It is as if the click function is disabled after losing focus on a combo box while scrolling.
So, here are my thoughts: I can make this problem go away by simply adding MOUSE CLICK in the mouseleave event. This works wonderful, as long as your combobox is no where near any other object :-/ So, I tried making the MOUSE CLICK at 1,1 and hiding with mousepointer = 13. This works great for displaying the value correctly everytime. Yet, it's not practical to move the cursor on the user everytime. I can get the current X and Y coordinates on the mouseleave, but when I try to make the mouse coordinates return to those coordinates on the form itself... I can not for the life of me figure it out... MOUSE CLICK wants a "WINDOW" name and I'm lost as the form itself isn't a window?? There has to be a way to do this. I almost just need an invisible click at 1,1 and then immediate return to where the mouse was, or a better idea! I'm still new at VFP and any help is greatly appreciated!!!