Recent

Author Topic: WordWrap  (Read 1000 times)

Borneq

  • Full Member
  • ***
  • Posts: 238
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: 6453
    • 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: 1076
Re: WordWrap
« Reply #2 on: December 08, 2019, 02:20:31 am »
For Wordwrap maybe is better using ATSynEdit.
Lazarus 2.0.6 - FPC 3.0.4 - x86_64-win64 on  Windows 8

Thaddy

  • Hero Member
  • *****
  • Posts: 10274
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 »
I am more like donkey than shrek

howardpc

  • Hero Member
  • *****
  • Posts: 3481
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: 238
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