Posted 16 years ago
by Chris Morris
Version: 4.0.0275
Platform: .NET 2.0
Environment: Windows XP (32-bit)
The method FirstVisibleDisplayLineIndex in EditorView class does not take in to account collapsed outlining sections.
If an outlining section is collapsed previous to the first current displayed line then the FirstVisibleDisplayLineIndex returns the (first current line number - number of lines collapsed) and not the first current line number.
Is there a work around?Please?
Steps to reproduce in c# "SDI Editor Application" example:
1. Add the following code line to the c# mainform.cs so that it will can be called:2. Run "SDI Editor Application" launch the SDI Edior Application
3. Default program ActiproSoftware.SyntaxEditor.TestClass is displayed in editor.
4. Collapse the using System; outlining on line 2 - hides 2 lines.
5. Scroll down so that line 21 is first visible line: public int Double(int x) {
6. Call the line of code added in step 1.
7. Result instead of firstVisibleLine being 21 the value is 19.
Note. Works okay if all outlining before first visible line are expanded.
If an outlining section is collapsed previous to the first current displayed line then the FirstVisibleDisplayLineIndex returns the (first current line number - number of lines collapsed) and not the first current line number.
Is there a work around?Please?
Steps to reproduce in c# "SDI Editor Application" example:
1. Add the following code line to the c# mainform.cs so that it will can be called:
int firstVisibleLine = this.editor.SelectedView.FirstVisibleDisplayLineIndex + 1
3. Default program ActiproSoftware.SyntaxEditor.TestClass is displayed in editor.
4. Collapse the using System; outlining on line 2 - hides 2 lines.
5. Scroll down so that line 21 is first visible line: public int Double(int x) {
6. Call the line of code added in step 1.
7. Result instead of firstVisibleLine being 21 the value is 19.
Note. Works okay if all outlining before first visible line are expanded.