Page 1 of 1

TRichView Gutter component/option for displaying line number

Posted: Thu Aug 02, 2012 9:02 am
by abranquart
Hi Guys,

Is there any component or sample on how to display a gutter for displaying line numbers with TRichViewEdit ?

Thanks.

Posted: Thu Aug 02, 2012 1:26 pm
by Sergey Tkachenko
Unfortunately, no. The current version does not allow drawing line numbers.

Re: TRichView Gutter component/option for displaying line number

Posted: Wed Mar 28, 2018 8:54 am
by oickler
Hi, does the current version supports this function?
I really need it for a code viewer in TRichView not in TRichViewEdit.
If not, is it possible to draw it by myself?

Re: TRichView Gutter component/option for displaying line number

Posted: Wed Mar 28, 2018 12:50 pm
by Sergey Tkachenko
It's possible to draw line numbers in a event, but it will be too inefficient, because line numbers are not stored, and you need to calculate them every time on drawing. So, when displaying bottom of large documents, it may cause some delays.

In ScaleRichView, we implemented line numbers for each page, because each page has relatively small count of lines. But for continuous view, it is inefficient.