Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox and listbox
Message
 
À
01/10/1998 06:00:25
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonésie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00142711
Message ID:
00143689
Vues:
19
Senna,

You must issue a NODEFAULT to stop VFP from processing the keystroke. You won't need the SetFocus call with a NODEFAULT.
WITH THISFORM
   DO CASE
      CASE nKeyCode=24  &&&& Down Arrow
         IF .List1.ListIndex <> .List1.ListCount
            .List1.ListIndexX = .List1.ListIndex + 1
         ENDIF		
         NODEFAULT
     CASE nKeyCode=5  &&&& Up Arrow
        IF .List1.ListIndex <> 1 AND .List1.ListCount > 1
           .List1.ListIndex = .List1.ListIndex - 1
        ENDIF		
        NODEFAULT
   ENDCASE	
ENDWITH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform