mIRC Home    About    Download    Register    News    Help

Print Thread
#137817 20/12/05 06:16 AM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
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!


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net
#137818 20/12/05 06:24 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

#137819 20/12/05 06:37 AM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
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?


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net
#137820 20/12/05 12:47 PM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
if that's a listview, make sure you enable singlesel, the list is in multiple selection mode by default.

Last edited by ClickHeRe; 20/12/05 12:47 PM.
#137821 20/12/05 07:22 PM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
Great, that did the trick! Mucho thanks to both of you.


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net

Link Copied to Clipboard