Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement