Placing cursor in a get

Placing cursor in a get

Postby fp » 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".
User avatar
fp
 
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

Postby yam_hiong » Fri Feb 10, 2006 4:13 pm

oGet:bGotFocus := {||oGet:SetSel(0,0),__keyboard(CHR(VK_END)+CHR(VK_LEFT))}
User avatar
yam_hiong
 
Posts: 16
Joined: Sun Oct 23, 2005 3:00 pm
Location: Pontianak - Indonesia

Postby fp » Fri Feb 10, 2006 7:38 pm

thanks, that works!
Frank-Peter
User avatar
fp
 
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

Postby James Bott » Sat Feb 11, 2006 12:59 am

This has been an annoying bug in the FW Get for as long as I can remember. It is not standard Windows behavior.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests