I have been doing a sendmessage to a TRichEdit using the EM_CHARFROMPOS
message to determine at what character position the drop occured from xy
coords. It seems that every second or third 'drop' raises an exception. I
have heard rumors to the effect that the underlying rich edit control is
flawed, is this true? Are there ways around it (Apart from try / except)?
I tried the process on a memo control and didn't get the exception but got
some strange numbers back if the 'drop' occured after the last character or
somewhere on a line, after the first line ie > 65000. Looking at it, the
memo one is returning a high/low order word indicating position and line.
thanks in advance
Tony Sinclair
Holliday Group Limited
Christchurch
New Zealand
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz