Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping the Backspace Key
Message
De
13/08/1999 12:28:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00253434
Message ID:
00253453
Vues:
24
>>Hello everybody-
>>A quick question for the sages. How can I best trap the backspace key in a textbox so that after the text is fully deleted the textbox does not lose the focus? I only want the focus to move to the previous control by using the mouse or shift-tab.
>
>But its possible to position yourselft at the front of the text box without deleting all the text and hit Backspace. You'd need to know your cursor position within the textbox.

Use the selstart. If its pointing to 0 then you know that the next backspace will take you to the previous field. Just add the logic to Bill Caton's suggestion.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform