mIRC Home    About    Download    Register    News    Help

Print Thread
#25589 23/05/03 09:09 AM
P
pheonix
pheonix
P
i was wondering if anyone knows how to change the range of a seperate hsbar in a dialog to the length of a currently playing mp3
bcoz range 0 $!inmp3.length doesnt work frown
any help gr8ly appreciated smile

#25590 23/05/03 10:32 AM
S
ScatMan
ScatMan
S
u can use /did -z DNAME ID
to update the horizontal bar of the listbox, if u specify the hsbar option

#25591 23/05/03 11:03 AM
P
pheonix
pheonix
P
i know that doesn't help as the horisontal scrollbar is seperate,
it isnt on a listbox.
i want to use it like a trackbar

#25592 23/05/03 11:10 AM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
/did -z <name> <id> <min> <max>
for example:
/did -z mp3dialog 12 0 $inmp3.length

#25593 23/05/03 11:14 AM
P
pheonix
pheonix
P
did -z is only if the scrollbar is in a listbox, this 1 isnt connected to anything.

#25594 23/05/03 11:51 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
Quote:
did -z is only if the scrollbar is in a listbox

No it isn't, I've used it before...

#25595 23/05/03 03:00 PM
S
ScatMan
ScatMan
S
-z is for listbox scrollbar AND scroll, if u use it for scroll it will update the range of the scrollbar


#25596 23/05/03 04:06 PM
P
pheonix
pheonix
P
o ok i was just going by what it said in mirc help blush
cheers you 2 smile

#25597 23/05/03 05:34 PM
P
pheonix
pheonix
P
now 1 more question please smile
do you know how to get the range of the scrollbar to use in another command?
coz im also going to use it as a seek bar.
thanx a lot so far smile

Last edited by pheonix; 23/05/03 06:04 PM.
#25598 23/05/03 06:20 PM
P
pheonix
pheonix
P
its ok now i got it grin
cheers smile
now can i ask 1 more question please blush
do you know how to get the range for a scrollbar?

Last edited by pheonix; 23/05/03 06:42 PM.
#25599 24/05/03 01:16 PM
S
ScatMan
ScatMan
S
$did(name,id).lines will return the MAX part from the range
so if the range is from 10 to 50 it will return 50, if u want it return 40 in this case so i don't think it's possible

#25600 24/05/03 02:06 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
$did(name,id).sel

#25601 24/05/03 02:08 PM
S
ScatMan
ScatMan
S
no, $did(name,id).sel will return the current position of the scrollbar, not the range

#25602 24/05/03 02:17 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
Yep you're right it will, I misread the question, sorry. shocked

#25603 24/05/03 02:36 PM
P
pheonix
pheonix
P
hmm my friend said its using very complicated gettoks frown
cheers anyway you 2

#25604 25/05/03 02:29 AM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
I read this thread after I posted to that one, so check it out.


Link Copied to Clipboard