Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box click event fires twice...how to detect
Message
From
30/10/1997 21:18:35
 
 
To
30/10/1997 21:05:28
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00057441
Message ID:
00057524
Views:
32
>>I've made a form exactly as Q157048 says (in fact, just the listbox part and the 2 properties to the form) and it works just fine. So, you have to look in your code for something wrong.
>>
>>Eventually, restart a test form from scratch...
>>
>>Probably just a dummy idea: Probably you Cut&Paste the methods' code from the MSKB. Are you sure you didn't CTRL+V twice in the List's Click method (ie copy the same code twice in this method)? This would explain the behavior you reported.
>>
>>Vlad
>>
>>>I have created a list box with a check box in it as described in KB article 157048. Basically, it functions like the
>>>View, Toolbars menu in VFP. However, there is a problem, when I click on the highlighted item, the
>>>click even fires twice, causing the selected state of the item to change, and then change back. By this, I mean
>>>that if the checkbox is selected (the X is in the box), it will change to unselected, then selected again.
>>>
>>>The click event also fires when the user moves to a highlighted object with the keyboard..just moving the
>>>highlight fires the click event. So, my question is...how can I detect a "true" click so that I can set the
>>>display of the check box correctly?
>
>
>It actually goes down to the original VFP listbox object. Put a listbox on a form and put a wait window
>in the click event. If you click on the highlighted object, the click event will fire twice.

This is at least weird. I never met this problem and never heard/read about something like that. I just retested now and I have just one click, as it's supposed to be.

Are you sure your mouse works fine? Do you have 2 clicks for other objects too (or is just for the List control)?

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform