Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CTRL+C fireing keypress PAGEUP/PAGEDOWN
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
CTRL+C fireing keypress PAGEUP/PAGEDOWN
Divers
Thread ID:
00822938
Message ID:
00822938
Vues:
77
My project has a textbox with a Keypress event coded to fire procedures when either PAGE DOWN or PAGE UP are pressed. When I press CTRL+C (to copy textbox contents), the Keypress event fires as if the PAGE DOWN KEY.

Also wierd: When I press CTRL+V, to paste, "DEFINE CLASS SUBTEXTBOX" the class definition header, appears in the field contents.
define class subTextBox as TextBox
format="R"
height=17
specialeffect=1
procedur KeyPress(nKeyCode, nShiftAltCtrl)
if nKeyCode=18
   SetFocusforPageKeys(this.name,val(this.parent.lblItemNo.Caption),-1)
else
if nKeyCode=3
   SetFocusforPageKeys(this.name,val(this.parent.lblItemNo.Caption),1)
else
endif
endif
endproc
enddefine
Imagination is more important than knowledge
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform