Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 May : How to get a word not the entire text at the pos when the mouse is on in the TTr

www.cryer.info
Managed Newsgroup Archive

How to get a word not the entire text at the pos when the mouse is on in the TTr

Subject:How to get a word not the entire text at the pos when the mouse is on in the TTr
Posted by:"wind73" (fj9..@sina.com)
Date:14 May 2005 19:12:21

For Example:
put an Edit1 and TreeView1 on the form and
if the TreeView1.Node.Text := 'I have a dream'
when the mouse move on the Text and point at the 'dream',
I want the Edit1.Text := 'dream'
if the mouse move on the 'have', then Edit1.Text := 'have'
what shall I do?
GetNodeAt or selected function only get the selected node text,
EM_CHARFROMPOS message only function on the control VCL, Edit VCL can work well, but Node can not work.
Please help me,thank you!

Replies:

www.cryer.info
Managed Newsgroup Archive