Link to home
Start Free TrialLog in
Avatar of GOMF
GOMFFlag for Denmark

asked on

TEdit position

Hey folks,

I want to be able to position the cursor in a specific
position in the TEdit field, how ?

;-)

Regards,

GOMF
ASKER CERTIFIED SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kjteng
kjteng

This is another way:

  Edit1.SetFocus;
  SendMessage(Edit1.Handle, EM_SETSEL, iStartCharater, CharacterSelected);
Avatar of GOMF

ASKER

mucho thanks kretz.. ;-)

kjteng :
Was thinking about that ;-)) however, first come
first serve ;-))

Regards,

GOMF
No problem. Just to make the answer more complete