Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox.InteractiveChange Problem--Possible Bug?
Message
De
04/01/2008 17:16:51
 
 
À
04/01/2008 16:10:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01279499
Message ID:
01279513
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform