Posted 21 years ago
by painetraine

First, I have a question about how to do something.
1. Is there an event that fires whenever the lines displayed in the editor change either through the user scrolling with the mouse or using the arrow/pgdn/pgup/etc. keys? I have two editors side-by-side that I want to try and keep in sync (line # 1 in editor A should match up with line # 1 in editor B, etc.)
Also, I saw the previous post on custom line numbering. Is there anyway when you implement this to go a step further and allow no line # to be displayed for a line?
ie., I would like to have a line numerbing scheme in some instances that would resemble the following:
1
2
3
4
5
6
...
With the empty lines not having any line number and then having the next line requiring a # to have the next # in line. Using the current object model, if you added a property to the DocumentLine class called something like "IncludeInNumerbering" and allow me to set it to true/false then the editor could only # lines that were set to true. I think this should handle my case and the other post where they wanted #s to go in a non-next-integer type format.
Thanks
1. Is there an event that fires whenever the lines displayed in the editor change either through the user scrolling with the mouse or using the arrow/pgdn/pgup/etc. keys? I have two editors side-by-side that I want to try and keep in sync (line # 1 in editor A should match up with line # 1 in editor B, etc.)
Also, I saw the previous post on custom line numbering. Is there anyway when you implement this to go a step further and allow no line # to be displayed for a line?
ie., I would like to have a line numerbing scheme in some instances that would resemble the following:
1
2
3
4
5
6
...
With the empty lines not having any line number and then having the next line requiring a # to have the next # in line. Using the current object model, if you added a property to the DocumentLine class called something like "IncludeInNumerbering" and allow me to set it to true/false then the editor could only # lines that were set to true. I think this should handle my case and the other post where they wanted #s to go in a non-next-integer type format.
Thanks