Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox and LockScreen
Message
De
07/12/2009 12:21:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01437599
Message ID:
01437928
Vues:
47
>Hi Mark,
>
>The MoseDown event fires before InteractiveChange when item is selected by mouse. You can reset LockScreen back to .F. in the MouseUp.
>>
>>When changing a Listbox's selected item, I want to be able to lock the screen and do some stuff before any visual indication that the selected item has been changed. It's no problem to do this when the Action invokes the Keypress event -- I just set Thisform.LockScreen=.T. there and reset it to .F. at the end of InteractiveChange. However, checking dog-eared page 130 of my Megafox book, Keypress is not in the event sequence when selecting a list item with the mouse, and setting LockScreen=.T. at the top of InteractiveChange is too late. Is there a workaround for this?
>>

Belated thanks to you & Naomi. Locking the screen in MouseDown helped, unlocking in MouseUp was too soon. I ended up examining event tracking, carefully checking inherited methods, etc., and got a result I could live with, but less than perfect. Not worth any more time & effort.

-mark
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform