FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Placing cursor in a get
Posts: 76
Joined: Fri Dec 30, 2005 10:25 AM
Placing cursor in a get
Posted: Sat Jan 14, 2006 06: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".
Frank-Peter
Posts: 16
Joined: Sun Oct 23, 2005 03:00 PM
Placing cursor in a get
Posted: Fri Feb 10, 2006 04:13 PM
oGet:bGotFocus := {||oGet:SetSel(0,0),__keyboard(CHR(VK_END)+CHR(VK_LEFT))}
Posts: 76
Joined: Fri Dec 30, 2005 10:25 AM
Placing cursor in a get
Posted: Fri Feb 10, 2006 07:38 PM

thanks, that works!

Frank-Peter
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Placing cursor in a get
Posted: 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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion