Caret move

Caret move

Postby Natter » Thu Jul 03, 2008 12:04 pm

Hi, all !
I want determine caret position into GET after VK_LEFT/VK_RIGHT/got focus.
If I do it by oGet:bKeyDown or oGet:bGotFocus that is not right
How do it ?
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Postby James Bott » Thu Jul 03, 2008 7:53 pm

Try oGet:nPos

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

Postby Natter » Thu Jul 03, 2008 11:10 pm

oGet:nPos is not right all case.

I edit text and to move position into multistrings browser(hex value) of context.
I resolved this problem so. In order to get right position of my GET after any events (VK_LEFT/VK_RIGHT/focus/insert chat/delete char etc. ) I use timer 0.1-0.2 sec
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 46 guests

cron