Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SelectOnEntry not working for grid textbox
Message
De
03/09/2002 11:37:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00696230
Message ID:
00696237
Vues:
16
>hmmmm.... how do u do that?

With properties .SelStart and .SelLength.

I don't remember exactly, but I think it would be something like:
* TextBox.GotFocus()
This.SelStart = 0 && or was it 1?
This.SelLength = len(This.Text)
Of course, if you manage to make it work, you should put it somewhere in your base classes - perhaps dependent on property .SelectOnEntry, or a user-defined property. Assuming the above works correctly:
* TextBox.GotFocus()
DoDefault()
if This.SelectOnEntry
  This.SelStart = 0 && or was it 1?
  This.SelLength = len(This.Text)
endif
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform