mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
dialog Mp3Diag {
title "Mp3Diag"
size -1 -1 130 73
option dbu
scroll "", 1, 111 7 8 57
box "Vol", 2, 105 0 20 70
}

I know the volume control of splay = /vol -v #

# being a value from 0 to 6XXXX

I want the scroll bar to work from lower to upper 0 to 65535 im not sure how to go about doing this in any way

could anyone help me?


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
I think you will find the information your looking for in this script
Website




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
that script is too big i need it for a single scroll bar


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Nov 2005
Posts: 24
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Nov 2005
Posts: 24
I looked through the help section fo dialogs, but I found only /did -z for scrollbar. Or, maybe, /did -c (like for a editbox). If neither works - You'll probably have to use something like dcx.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I sort of got this, the problem that I was unable to counter, is the fact that the scroll bar goes from 0 at the top to 65536 at the bottom.

I also added a small read only edit box to display the current volume setting (according to the scroll bar)

Code:
 dialog Mp3Diag {
  title "Mp3Diag"
  size -1 -1 130 73
  option dbu
  scroll "", 1, 111 7 8 57, range 0 65535
  box "Vol", 2, 105 0 20 70
  edit "", 3, 75 2 25 10, read center
}
menu * {
  Mp3: dialog $iif(!$dialog(Mp3Diag),-md,-ev) Mp3Diag Mp3Diag
}
on *:dialog:Mp3Diag:scroll:1:{
  did -ra $dname 3 $did(1).sel
}
 

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
the horizontal switch is needed
Code:
dialog Mp3Diag {
  title "Mp3Diag"
  size -1 -1 130 30
  option dbu
  scroll "", 1, 5 8 120 10, range 0 65535 horizontal
  box "Vol", 2, 2 0 125 25
}
on *:dialog:mp3Diag:init:0:{
  did -c $dname 1 $vol(mp3)
}
on *:dialog:Mp3Diag:scroll:1:{
  vol -p $did(1).sel
}

Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Thanks it works laugh


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Link Copied to Clipboard