Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automaticly move cursor to end of editbox.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00415291
Message ID:
00415347
Vues:
18
>When you setfocus() on an editbox (or a textobox) is there a way to automaticly move the cursor to the end of it? I was thinking about sending an 'END' keystoke, but that seems a bit tacky.
>
>Thanks!

I was requested to do this by my users. They wished to be placed at the end of the memo field in a n edit box when ever they entered the field. As the memo was historical data and the most current was at the end. So I put the following code in the GotFocus Method of the edit box:
* The operator always wants to be positioned at the end of the memo
* when they view it
KEYBOARD '{CTRL+END}'
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform