Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional selecting in the TextBox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00785262
Message ID:
00786206
Vues:
18
Hi Alexander.

if thr textbox is entered with TAB or ENTER - then it must be selected. If it is entered with the mouse - then it must be only selected if the mouseclick succeeded in the filled part of the textbox or left to it (in the white space if the allignment is R).

Try this code in the click of the textbox:
DODEFAULT()
IF BETWEEN( This.SelStart, 1, LEN( ALLTRIM( TRANSFORM( This.Value ) ) ) -1  )
  This.SelStart = 0
  This.SelLength = LEN( This.Text )
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform