Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress how-to
Message
 
 
À
08/08/2000 08:29:46
Bruce Covey
Home Depot Television
Atlanta, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00402154
Message ID:
00402162
Vues:
12
In the form's KEYPRESS event, put this:
LPARAMETERS nKeyCode, nShiftAltCtrl
do case
   case nKeyCode = 1	&& Home
      go top
      thisform.refresh()
      nodefault
   case nkeyCode = 6	&& End
      go bottom
      thisform.refresh()
      nodefault
   otherwise
      *	nothing special
endcase
In real life you'd probably call thisform.GoTop() and thisform.GoBottom() instead of embedding the 'go' and the 'refresh' (or whatever else) in the KEYPRESS event itself.

>I rcv'd a suggestion last week about using the KEYPRESS event in lieu of obsolete ON KEY LABEL or KEYBOARD commands. However, I'm not quite understanding how to get started.
>
>I would like to use the HOME and END keys to issue a GO TOP and GO BOTTOM only when I am on a grid on my form. I need an example of the syntax.
>
>Thanks
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform