SynEdit doesn't have WordWrapping
Original Reporter info from Mantis: dabdala
-
Reporter name: David
Original Reporter info from Mantis: dabdala
- Reporter name: David
Description:
I Implemented a WordWrapping class, in a similar fashion to Trimming and TabExpansion.
I implemented it, and tested on Linux and Windows (with a newer Lazarus version on the latter).
It's not fully tested, but is working as expected (so far). You can use it to Visually WordWrap (has a way or retrieving original lines), or Physically WordWrap.
Didn't found a way of implementing WordWrapping without disturbing the actual string buffer, which is the way I think should be done.
Steps to reproduce:
Attached is the wrapping class and the detail of other classes that need changes, as implementation is very "intermixed" (I mean there are many dependencies between classes).
Additional information:
I don't fully understands SynEdit implementation (nor really want to), so probably (I hope) there is a better way of doing it, but as I didn't found any implementation except the "plugin" of Delphi version, this is the best I could come by.
Mantis conversion info:
- Mantis ID: 30395
- Version: 1.0.14
- Monitored by: » mcclane (John McClane)