If I have a chart up with lastBar at right edge, all of the following vars look ok:
ChartControl.LastBarPainted <- index of last bar on chart (i.e. 7905)
ChartControl.FirstBarPainted <- index of first bar on chart (i.e. 7826)
ChartControl.BarsPainted <- number of bars painted (i.e. 80)
Now if I scroll the data to the left one bar by hitting the right arrow key, I get something like the following:
ChartControl.LastBarPainted <- 7906 This index does not exist yet!
ChartControl.FirstBarPainted <- 7827 This is good.
ChartControl.BarsPainted <- 80 Should be 79 now that a bar scrolled off.
The only var that seems to be correct is FirstBarPainted. This continues if you continue to scroll.
You can work around this, but I wanted to see if this is expected or a bug.
This is with B7.

Comment