Hi Alexander.
It must be my poor English. So, I'll try to explain.It is definitely not your poor English. Your English is very good!
1. Supposed we have a textbox with something in it: [ 23456].
a. If the user is activating this box pressing TAB or ENTER - OK, the whole TEXTBOX must be selected.
b. If the user activates the textbox clicking with the mouse e.g. between 3 and 4 - nothing must be selected, the text cursor (Carret) must simply appear and start blinking between 3 and 4 (as it actually happens in standart textbox if SelectOnEntry is .f.)I think I am beginning to understand. So if the data in the textbox is numeric, you want different behavior than if it is character. How about something like this in the textbox's click method?
DODEFAULT()
IF INLIST( VARTYPE( This.Value ), 'N', 'Y' )
IF This.SelStart > 0
lcChar = SUBSTR( This.Text, This.SelStart, 1 )
IF EMPTY( lcChar )
This.SelStart = 0
This.SelLength = LEN( This.Text )
ENDIF
ELSE
This.SelLength = LEN( This.Text )
ENDIF
ENDIF
NODEFAULT