Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select all text from a textbox when ON CLICK
Message
 
 
À
16/05/2005 16:13:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01014675
Message ID:
01014696
Vues:
30
>I am using a textbox for searching in the database, when that character(s) is(are) not found I want it to do some kind of set focus and to select all text as well. In order for the user to easily delete, or change the characters or text withouth having to point back to the text box and manually deleting or backspacing each character. And he can try searching again.

For keyboard access, set TextBox SelectOnEntry property to .t.
If you want the same effect for mouse click on the textbox
* TextBox GotFocus
IF THIS.SelectOnEntry 
  TextBox::GotFocus()
  NODEFAULT
ENDIF
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform