Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional selecting in the TextBox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00785262
Message ID:
00786206
Views:
16
Hi Alexander.

if thr textbox is entered with TAB or ENTER - then it must be selected. If it is entered with the mouse - then it must be only selected if the mouseclick succeeded in the filled part of the textbox or left to it (in the white space if the allignment is R).

Try this code in the click of the textbox:
DODEFAULT()
IF BETWEEN( This.SelStart, 1, LEN( ALLTRIM( TRANSFORM( This.Value ) ) ) -1  )
  This.SelStart = 0
  This.SelLength = LEN( This.Text )
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform