Placing cursor in a get

Post Reply
User avatar
fp
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

Placing cursor in a get

Post 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".
User avatar
yam_hiong
Posts: 16
Joined: Sun Oct 23, 2005 3:00 pm
Location: Pontianak - Indonesia
Contact:

Post by yam_hiong »

oGet:bGotFocus := {||oGet:SetSel(0,0),__keyboard(CHR(VK_END)+CHR(VK_LEFT))}
User avatar
fp
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

Post by fp »

thanks, that works!
Frank-Peter
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
Post Reply