mIRC Homepage
Posted By: HAMM3R Scroll MDX list command - 20/12/05 06:16 AM
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!
Posted By: genius_at_work Re: Scroll MDX list command - 20/12/05 06:24 AM
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
Posted By: HAMM3R Re: Scroll MDX list command - 20/12/05 06:37 AM
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?
Posted By: ClickHeRe Re: Scroll MDX list command - 20/12/05 12:47 PM
if that's a listview, make sure you enable singlesel, the list is in multiple selection mode by default.
Posted By: HAMM3R Re: Scroll MDX list command - 20/12/05 07:22 PM
Great, that did the trick! Mucho thanks to both of you.
© mIRC Discussion Forums