mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 23
R
R1pl3y Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Dec 2002
Posts: 23
How can I make it so when it refreshes the list box and highlights the chosen line that it would also make the highlighted/chosen line be at the top of the list?
when I do it with this:

did -c $dname 6 %var
did -z $dname 6

the highlighted line is at the bottom of the list window.
confused


R¹¶¬³¥
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
You would have to grab the contents of the line, delete the line it's on and insert it at the top and then select it. This won't work, by the way, if it's a sorted listbox.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Dec 2002
Posts: 23
R
R1pl3y Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Dec 2002
Posts: 23
No I dont mean for it to go to the top of the 'list', just to the top of the 'window'.
It highlights the right line but appears at the bottom of the window.
There are say 500 lines in the file listed in the window, but only 10 lines show at any given time in the scrolled list window due to its size.
It refreshes so that highlighted line appears in the list window but the highlighted line appears at the 10th(bottom) 'list window line' after refresh rather than the 1st(top) 'list window line'.
I hope you follow that. wink

And on a second note, I didnt want to start a new thread unless I have to but,
when using:

/drawtext -hnrpboc @ <color> [color] [fontname fontsize] <x y [w h]> <text>

and the font name is say 'times new roman' (spaces) as opposed to 'verdana' (no spaces) how do I write a fontname in the code that has spaces?
I get errors when using a font with spaces but no errors with fonts that have no spaces when trying to scroll the text across the window.
But I am a picture window newb so please help :tongue:


R¹¶¬³¥

Link Copied to Clipboard