Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug with CLICK method in text/shapes in VFP6?
Message
 
 
To
18/12/2006 22:35:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01178782
Message ID:
01178826
Views:
22
It's not a bug but double-click vs click. If the time interval between left mouse clicks is less or equal the value of _DBLCLICK system variable (default 1/2 of second), than it's double-click. It doesn't apply to right-clicks and command buttons (no dblclick event).


>I've discovered that when you fire the CLICK method on a text label or a shape on a form, it takes considerable time to "reset" so that you can click it again. In other words, I built a class that has a text label at the highest Z-index with code in it's CLICK and RIGHT-CLICK methods. The idea is to be able to click this with the mouse and have something happen, or right-click and do the opposite. It takes about 1/2 a second or so after the first click to be able to click again. HOWEVER, the right-click method has no such limitation! The behavior is the same for shapes but NOT for command buttons (which work just fine - CLICK is fired as fast as you can click the mouse). Note that this has nothing to do with the time to process the actual code - I distilled it to an extremely simple one-line function on click with the same result.
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform