You could get the Selstart Position and relate that to the cursor position
to find its relative position within the selected area.

from Robert Meek dba Tangentals Design  CCopyright 2006

"When I examine myself and my methods of thought, I come to the conclusion
that the gift of Fantasy has meant more to me then my talent for absorbing
positive knowledge!"
                                                    Albert Einstein


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Peter Laman
Sent: Wednesday, March 22, 2006 7:00 AM
To: Delphi Talk
Subject: //Edit cursor

Hello,

The EM_GETSEL message retrieves the selected text in an edit control, but it
doesn't tell me where the caret is: it might be at the beginning or at the
end of the selection. Does anybody know a way to retrieve that information?

Peter Laman
Senior Software Engineer
Lance ICT Group
Roermond, the Netherlands
http://www.lance-safety.com

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to