TRichMemo - CaretPos property not returning correct X & Y position...
Original Reporter info from Mantis: savage
-
Reporter name: Dominique Louis
Original Reporter info from Mantis: savage
- Reporter name: Dominique Louis
Description:
If I access a TRichMemo's CaretPos property, initially it seems fine, but if I load and RTF file via
fs := TFileStream.Create(Utf8ToAnsi(odRTF.FileName), fmOpenRead or fmShareDenyNone);
rmEditor.LoadRichText(fs);
Then access rmEditor.CaretPos.X or Y, the value is wrong.
Please refer to the attached unit1 replacement for the TRichMemo example.
Unzip the contents of unit1.zip into your demo directory, it should only replace unit1.* . Compile the project1.lpr and load an RTF file. You should see that the X and Y position returned from CaretPos are not consistent with the end of the loaded RTF file.
Mantis conversion info:
- Mantis ID: 14635
- Monitored by: » savage (Dominique Louis)