Hi all,
Using D7 I have a TRichEdit and I want to retrieve the char on which I clicked.
According to Win32 help this can be done with:
SendMessage(RichEdit1.Handle, EM_CHARFROMPOS, 0, LPARAM);
where LPARAM is a LongRec containing x and y cooridinates.
For a plain edit this works OK, for a richedit this causes an AV
in procedure TWinControl.DefaultHandler(var Message);
when calling this line: (Delphi 7 source Controls.pas)
Result := CallWindowProc(FDefWndProc, FHandle, Msg, WParam, LParam);
Is this a known bug?
Any workaround?
Thanks in advance,
Gerrit Beuze
ModelMaker Tools