Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which methods to use for a listbox?
Message
De
17/03/2006 14:06:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01104865
Message ID:
01105392
Vues:
16
This message has been marked as the solution to the initial question of the thread.
First obvious idea would be to use a special listbox class with all code inside instead of repeating code for each listbox. But my main problem is to understand why do we need code in each of these methods? Would KeyPress and InteractiveChange be enough?

This is how the events fire in list boxes - obviously, it does not include the mouse events:
Action: Scroll through list using the down arrow
   KeyPress( 24, 0 )
   InteractiveChange
   Click
   When

Action: Select an item in the list using the mouse 
   InteractiveChange
   Click
   When

Action: Select an item in the list by pressing the <ENTER> key
   KeyPress( 13, 0 )
   DblClick
   Valid

Action: Exit the control by clicking elsewhere with the mouse
   LostFocus

Action: Exit the control using the <TAB> key
   KeyPress( 9, 0 )
   LostFocus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform