Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select all text from a textbox when ON CLICK
Message
 
 
To
16/05/2005 16:13:16
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014675
Message ID:
01014696
Views:
29
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform