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 14:58:06
 
 
To
30/10/1997 14:16:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00057441
Message ID:
00057468
Views:
29
>Craig,
>
>It feels dicey asking a pro this, but. . .
>
>Are you certain that there is no DoDefault operating here and causing the apparent problem?
>
>Good luck,
>Jim N
>
>>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?

I'm positive...In fact, I tested this in the base class and it still fires the click event twice. Looks like a bug to me.

Cria
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform