Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlighting a textbox by clicking
Message
De
14/11/2007 23:04:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01269068
Message ID:
01269079
Vues:
12
When I put
if This.SelectOnEntry
  dodefault()
  nodefault
endif
in the textbox’s gotfocus() event, the control would no longer get focus … even if I tried to tab into it. However, there was another bit of code in the thread from Borislav Borissov as follows:
if this.SelectOnEntry
  nodefault
  TextBox::GotFocus()
endif
… and it worked as I was asking for, with a click on the textbox bringing exactly the same response as tabing into it.

Bob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform