Page 1 of 1

Placing cursor in a get

Posted: Sat Jan 14, 2006 6:40 pm
by fp
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".

Posted: Fri Feb 10, 2006 4:13 pm
by yam_hiong
oGet:bGotFocus := {||oGet:SetSel(0,0),__keyboard(CHR(VK_END)+CHR(VK_LEFT))}

Posted: Fri Feb 10, 2006 7:38 pm
by fp
thanks, that works!

Posted: Sat Feb 11, 2006 12:59 am
by James Bott
This has been an annoying bug in the FW Get for as long as I can remember. It is not standard Windows behavior.

James