Placing cursor in a get
Posted: Sat Jan 14, 2006 6:40 pm
I'm using
cVar := "Hello" + SPACE(15)
REDEFINE GET oGet VAR cVar OF oDlg
oGet:bGotFocus := {||oGet:SetSel(0,0),__keyboard(CHR(VK_END))}
If I klick in this field with the mouse, the cursor is set on the end of the edit field. But I want the cursor to be directly behind the "o" of "Hello".
cVar := "Hello" + SPACE(15)
REDEFINE GET oGet VAR cVar OF oDlg
oGet:bGotFocus := {||oGet:SetSel(0,0),__keyboard(CHR(VK_END))}
If I klick in this field with the mouse, the cursor is set on the end of the edit field. But I want the cursor to be directly behind the "o" of "Hello".