Recent

Author Topic: WordWrap  (Read 2809 times)

Borneq

  • Full Member
  • ***
  • Posts: 248
WordWrap
« on: December 08, 2019, 12:26:20 am »
I see forum.lazarus.freepascal old
Is any way to break lines ?
In old Delphi Synedit I have :
Code: Pascal  [Select][+][-]
  1. fSynEdit.WordWrap:= true;
« Last Edit: December 08, 2019, 12:31:17 am by Borneq »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: WordWrap
« Reply #1 on: December 08, 2019, 01:58:44 am »
Unfortunately not.

Not sure if this will help: https://bugs.freepascal.org/view.php?id=30395

Dont recall why it was not included, but IIRC there was a reason....

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: WordWrap
« Reply #2 on: December 08, 2019, 02:20:31 am »
For Wordwrap maybe is better using ATSynEdit.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Thaddy

  • Hero Member
  • *****
  • Posts: 14203
  • Probably until I exterminate Putin.
Re: WordWrap
« Reply #3 on: December 08, 2019, 10:57:30 am »
Dont recall why it was not included, but IIRC there was a reason....

That is absolutely the most beautiful circular reasoning I have read this year!

Tnx!
(Let's have a poll..., can you better Martin? Are there more such gems? Actually Martin can get away with it...)
« Last Edit: December 08, 2019, 11:01:59 am by Thaddy »
Specialize a type, not a var.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: WordWrap
« Reply #4 on: December 08, 2019, 02:04:25 pm »
I see nothing circular at all.
Martin can recall (perhaps incorrectly) that WordWrap was omitted for a good specific reason, i.e. he knows it was not omitted simply through an oversight.
Martin cannot now recall exactly what that good reason was.
Such memory lapses happen to me all the time. I often go upstairs to retrieve something, and forget what I went up there to retrieve. The only circularity in my  forgetting is the journey back downstairs to my starting point without whatever-it-was.

Borneq

  • Full Member
  • ***
  • Posts: 248
Re: WordWrap
« Reply #5 on: December 08, 2019, 05:18:05 pm »
Wrapping works very well. Only thing (maybe I bad make 4 files from diff) is that line numbers are visible lines, not true lines.
---
Is OK !
I paste in bad place, should be:
"// ftab, currently has" after "{$ENDIF} // WithSynExperimentalCharWidth"
second "FTheLinesView := FTabbedLinesView" is not needed
"FreeAndNil(FWrappedLinesView)" before "FreeAndNil(FTabbedLinesView)"
« Last Edit: December 08, 2019, 07:17:47 pm by Borneq »

 

TinyPortal © 2005-2018