Hey. Im adding items to the bottom of a list with a mdx listview control. Because of this, the scrollbars are also controlled by mdx. But as i add items to the bottom, it wont scoll down to reveal them, leaving me to scroll manually. Does anyone know of a way to scroll to the last line (or a specified line number) with a command? Im pretty sure it's possible, as ive seen it done on other scripts. TIA!
Have you tried using this command:
/did -c <dname> <id> <N>
Where <N> = the line that you just added. I think this will select the line, and maybe it will scroll to make that line visible.
-genius_at_work
Great! That does scroll to the bottom. Thanks. One little problem, it selects that line (as it should) and all the lines after it. So i end up with the whole list highlighted. Any idea how i can prevent this?
if that's a listview, make sure you enable singlesel, the list is in multiple selection mode by default.
Great, that did the trick! Mucho thanks to both of you.