Hi Guys,
Is there any component or sample on how to display a gutter for displaying line numbers with TRichViewEdit ?
Thanks.
TRichView Gutter component/option for displaying line number
-
- Posts: 10
- Joined: Thu Jul 05, 2012 1:00 pm
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: TRichView Gutter component/option for displaying line number
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?
I really need it for a code viewer in TRichView not in TRichViewEdit.
If not, is it possible to draw it by myself?
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: TRichView Gutter component/option for displaying line number
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.
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.