Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighting a textbox by clicking
Message
From
14/11/2007 23:04:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01269068
Message ID:
01269079
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform