[Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

Luiz Americo Pereira Camara luizamericop at gmail.com
Fri Nov 4 13:16:31 CET 2016


In the last trunk, the slow issue is fixed regardless of usage of TextHint
in TMemo or not. Fixed also not being reset after text changed / added

Due to the way  CharCase is implemented, the slow will manifest if this
property is set to a value different from the default one

Some notes:
- It must be decided if TMemo.TextHint should be published. Delphi does not
publish it
- The implementation of TextHint using custom paint is desired but there
are no reasons to postpone the mentioned fixes since they did not require
any major change
- Must be investigated the possibility of offloading the CharCase
implementation to widgetset. The current implementation is far from optimal
(at each change, uppercase/lowercase and reset the Text property) leading
to performance and visual cluttering. Windows offers a native
implementation. I don't know for others. An alternative is to uppercase /
lowercase at keypress

Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161104/4ed5dc58/attachment.html>


More information about the Lazarus mailing list