Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox doesn't always fire InteractiveChange()
Message
 
 
À
03/12/2004 12:33:15
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00966757
Message ID:
00966797
Vues:
12
>I have InteractiveChange code in a listbox to refresh some form controls based on the selected item. It works *most* of the time but not always. I click on an item in the listbox and the selection changes as it should, but the InteraciveChange event may or may not fire.
>
>If the event fails to fire, I can click on the selected item again and the event fires. How can the selection change and not fire the InteractiveChange? Thanks for any insights.
>
>Gary

One "for sure" way to cause this is with a mouse drag. Press the mouse button down and hold it down on one item in a list, drag to another item in the list and release the mouse button. SelectedItem, etc., are all updated just like you'd expect but InteractiveChange() doesn't fire even though there's a change and it was certainly interactive. <g>

Click won't fire because of the drag. But MouseUp fires, so at least there's a way to work around it.

This goes back as far as VFP6, if memory serves. It has been reported.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform