Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to deactivate the backspace key ?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01039614
Message ID:
01039718
Vues:
19
David,

It was pointed to me by Roy in the Message #883571 that check for 'This.SelLength = 0' is also required.


>If what you are trying to accomplish is to prevent backspace from taking you out of a textbox into the previous control (one of the most truly annoying things in VFP) is to put this code into your lowest level textbox subclass:
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>if ( ( m.nKeyCode = 127 ) and ( this.SelStart = 0 ) )
>   * prevent backspace from leaving this field
>   nodefault
>endif
>
>
>>how to deactivate the backspace key ?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform