This may be related to this, but then that looks rather complicated…
Here’s the problem. I’m trying to revamp the mp3 player I found around here. It’s a simple thing, requires the user to pick a folder from which to load songs. My regular playlist covers many folders, so I stored the filenames in a table, and mean to have it displayed in a grid (a dabo dGrid). The sticking point at the moment is that when the form launches, I load the pk of the last selected song from local preferences, navigate the grid to that record, and then when the form shows, the grid is on the top record, the scrollbar pointer is on the top of the scrollbar. If I press keyDown, it immediately jumps to the next song after the one I selected, the scrollbar takes proper position and everything’s fine.
I’ve tried a dozen tricks, and this actually worked in several other situations, when I’d just have grd.CurrentRow=nnn, and the grid would navigate to the desired row. Not in this case. Don’t know why, perhaps something’s still not working because this is done while the form is still invisible?
I’ve tried grd.SetGridCursor(), does nothing. Tried grd.SelectRow(), and found that it calls MakeCellVisible()… which, after some digging, turned out to be just an idea, there’s no code in the method, just the docstring.
Is there some simple trick to make the current row scroll into view before the user has any chance to do anything?
Of course, while writing this I got a couple more ideas, but… still,