Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox.InteractiveChange Problem--Possible Bug?
Message
From
04/01/2008 17:16:51
 
 
To
04/01/2008 16:10:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01279499
Message ID:
01279513
Views:
18
>I believe I've found a situation where InteractiveChange does not execute.
>To reproduce, do the following:
> 1. set up a listbox with Multi-Select = .T.
> 2. select any item with a mouse click
> 3. select any other item by holding the Ctrl key down and a mouse click
> 4. deselect the item just selected by holding the Ctrl key down and a mouse click--InteractiveChange does not execute.
>
>Has anyone else observed this? Is there a workaround?
>Thanks

I see that we wrote this in HackFox:

For most controls, InteractiveChange doesn't fire when you re-choose the same item you just chose. For example, clicking the OptionButton that's already chosen in a group doesn't fire InteractiveChange for the OptionGroup. (Most of the time, this makes sense to us, since the Value of the control hasn't changed.) ...

The place where the lack of firing is most counter-intuitive is with multi-select list boxes. If you click an item to select it, then Ctrl+click it to deselect it, InteractiveChange fires only the first time. Again, it's because Value hasn't changed, but, with multi-select, somehow it seems as if something must have changed.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform