Hm, I'm using JW's UI Library, so it took an extra bit of digging to find out what the elements were named. In the end, I just dumped out the name and the force refresh property of the GBPVRuiElement passed into GetRenderList via Debug.WriteLine
Here are the results (first value is the index of the list item):
Given sub's comments above, I can see how the rendering might get confused. Indeed, I'm left wondering how it works at all.
However, what's more interesting though is, with this bit of debug code included, I'm able to easily reproduce what (I think) Ted is seeing. After a couple of page downs and some general scrolling, the output looks like this:
Here we have multiple items showing as selected (which shouldn't be happening) neither of which had anything to do with what the current index was.
Maybe there is a timing issue here as well, that doesn't appear until getRenderList starts taking too long to finish? (Or maybe not. I'm taking guesses.)
But it does sound like I'll have to ask JavaWiz about it as well. Better check to ensure that I'm using the most recent version of the library too.
Thank you all for your help in tracking this down!
Here are the results (first value is the index of the list item):
Code:
0 ListViewListNormal False
1 ListViewListNormal False
2 ListViewListSelected False
3 ListViewListNormal False
4 ListViewListNormal False
5 ListViewListNormal False
6 ListViewListNormal False
7 ListViewListNormal False
8 ListViewListNormal False
9 ListViewListNormal False
10 ListViewListNormal False
11 ListViewListNormal False
12 ListViewListNormal False
13 ListViewListNormal False
Given sub's comments above, I can see how the rendering might get confused. Indeed, I'm left wondering how it works at all.
However, what's more interesting though is, with this bit of debug code included, I'm able to easily reproduce what (I think) Ted is seeing. After a couple of page downs and some general scrolling, the output looks like this:
Code:
0 ListViewListNormal False
1 ListViewListNormal False
2 ListViewListNormal False
3 ListViewListNormal False
4 ListViewListNormal False
5 ListViewListSelected False
6 ListViewListNormal False
7 ListViewListNormal False
8 ListViewListNormal False
9 ListViewListSelected False
10 ListViewListNormal False
11 ListViewListNormal False
12 ListViewListNormal False
13 ListViewListNormal False
Here we have multiple items showing as selected (which shouldn't be happening) neither of which had anything to do with what the current index was.
Maybe there is a timing issue here as well, that doesn't appear until getRenderList starts taking too long to finish? (Or maybe not. I'm taking guesses.)
But it does sound like I'll have to ask JavaWiz about it as well. Better check to ensure that I'm using the most recent version of the library too.
Thank you all for your help in tracking this down!