TRichView Gutter component/option for displaying line number

General TRichView support forum. Please post your questions here
Post Reply
abranquart
Posts: 10
Joined: Thu Jul 05, 2012 1:00 pm

TRichView Gutter component/option for displaying line number

Post by abranquart »

Hi Guys,

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

Thanks.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Unfortunately, no. The current version does not allow drawing line numbers.
oickler
Posts: 1
Joined: Fri Apr 12, 2013 1:15 pm

Re: TRichView Gutter component/option for displaying line number

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TRichView Gutter component/option for displaying line number

Post 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.
Post Reply