Recent

Author Topic: SynEdit question  (Read 13141 times)

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: SynEdit question
« Reply #30 on: September 15, 2014, 06:54:32 pm »
About TSynWordBreaker, I have not idea. It seems to be used for scanning words on searching. No for word wrap.

About setting attributes, I haven't played with TSynPositionHighlighter, but I can see that it defines tokens on the positions given. So if you want to give attributes to some fragment of text, you have to "rearrange" the line for to make that fragment to be a token (keeping the state of the other tokens of the line), and then assign the attribute.

FAIK there is not documentation about TSynPositionHighlighter.
Like in many cases, you would have to do, what a suffered Lazarus user have to do, diving on the code, and see what you get.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: SynEdit question
« Reply #31 on: September 15, 2014, 07:00:30 pm »
Thanks.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: SynEdit question
« Reply #32 on: September 19, 2014, 10:43:06 pm »
It seems that BorderStyle does not work properly in SynEdit, I set  bsNone with no effect. Any idea?

Thanks.
« Last Edit: September 19, 2014, 11:36:38 pm by typo »

Basile B.

  • Guest
Re: SynEdit question
« Reply #33 on: September 19, 2014, 11:40:24 pm »
TSynWordBreaker is also used to detect an identifier, e.g CTRL+LEFT, CTRL+RIGHT, double click to select an identifier, etc. In the former SynEdit project it was only a char set.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: SynEdit question
« Reply #34 on: September 19, 2014, 11:44:49 pm »
At design time it seems that the border will not appear with bsNone, but at run time it does.

Where is painted that border? It appears only at runtime.

Edit: Never mind, I have found my error.
« Last Edit: September 20, 2014, 12:42:05 am by typo »

 

TinyPortal © 2005-2018