Window_ItemList's Visual Index?

I want to find out which row the cursor is in. With a non-scrolling list, using the "row" method works. However, once there's scrolling, the actual row doesn't correspond with the visual row.

How would I find out that the cursor below is in the second visual row (row = 1) when it's actually in a much lower row?

[IMG]http://img835.imageshack.us/img835/6017/dpiu.jpg[/IMG]
I don't understand what you want. So row == 1 is not the "visual row" index?
Sure, I can elaborate. Say the party has nine items. For whatever reason, this window can only display three rows at a time.

[IMG]http://img850.imageshack.us/img850/6417/lapw.jpg[/IMG]

In the above picture, we can see that the cursor is in the third row and left column.

However, if you check Window_ItemList.row,

the first picture gives row = 4,

the second picture gives row = 3,

and the third picture gives row = 2.

So Window_ItemList.row corresponds to the row value if the item list were displayed fully as:

1 2 (row = 0)

3 4 (row = 1)

5 6 (row = 2)

7 8 (row = 3)

9 (row = 4)

I'd like to instead know what holds the "visual" row, which would equal 2 (third row) in the above cases.

EDIT: Perhaps I solved it myself. (window.row - window.top_row) will give the "visual" row.

Original thread: https://forums.rpgmakerweb.com/threads/window_itemlists-visual-index.17197/