itsatomic
Joined: 12 Jun 2006 Posts: 38
|
Posted: Mon Aug 14, 2006 7:04 am Post subject: Line number /user range confusion |
|
|
I know TStringList.Strings is a 0-based list / collection of strings and have
dealt with this enough to loop from 0 to .Count -1 etc.
I have started looking at User Ranges, from within the Delphi IDE, and
notice something a little disconcerting:
Example:
======
If I enter StartLine as 10 and EndLine as 20, (with a coloured background
for the style to make it easy to see), it highlights lines 11..20.
Now I set HighlightLines := True, and lines 11..21 are highlighted (ie one
more line at the end of the "block").
This user style is set to readonly. When I run the application, I cannot type
letters in the lines, as expected/intended, until I get to the last line (21),
where I can now type letters.
Because the last line (21) is displayed as part of the user range, using the
user style, i would expect the readonly flag to extend to this line also.
Aaron |
|