TMemo.Lines add slow when Text property is read inside TextChanged / OnChange
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
This is the bug report for this mailing list issue: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Memo-Lines-Add-seems-to-be-slow-with-Lazarus-1-6-td4050146.html
On Windows the issue starts with revision 48931 (LCL: Start implementing TCustomEdit.TextHint support. Issue #21307 (closed))
Edit:
This behavior is triggered for the TextHint and CharCase support
As of revision 53292, the issue does not manifest anymore when using TextHint. The issue remain when using CharCase property different its default value
Additional information:
I add a patch, with it, it is much much faster here.
But I think, it is better to implement a boolean property like TextHintAllowed, so there is no need to call a slow check, if a string has a entry.
Mantis conversion info:
- Mantis ID: 30851
- OS: 7
- Build: 53289
- Platform: Windows
- Version: 1.7 (SVN)