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