mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
Might just be me but when I go to implement a vertical scroll bar in a dialog, it doesn't work. It does this to me on 6.35 and 7.1 :\

Code:
alias test { dialog -m test test }
dialog test {
  size -1 -1 200 200
  list 1, 5 5 190 150,hsbar,vsbar
  button "OK"2, 5 175 80 23,ok
}
on *:DIALOG:test:init:*: { did -a test 1 This is a test of the vsbar attribute. As you can see the line gets cut off. }


That should re-create the problem.

Last edited by N3M3S1S; 30/09/10 11:19 AM.

"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."
Joined: Jul 2006
Posts: 4,222
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,222
Code:
alias test { dialog -m test test }
dialog test {
  size -1 -1 200 200
  list 1, 5 5 190 150, hsbar vsbar
  button "OK", 2, 5 175 80 23, ok
}
There were some syntax problems in your dialog table


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
Code:
alias test { dialog -m test test }
dialog test {
  size -1 -1 200 200
  list 1, 5 5 190 150, hsbar vsbar
  button "OK"2, 5 175 80 23, ok
}
on *:DIALOG:test:init:*: { did -a test 1 This is a test of the vsbar attribute. As you can see the line gets cut off. }


Problem is still there. If you add more items the vsbar works fine, its just the hsbar :\

I'm pretty sure its not a syntax error as the hsbar worked fine in all my older script with it like this:

Code:
list 1, 5 5 190 150,hsbar,vsbar


It wasn't until the newer versions that I noticed this problem.

And I just noticed that the topic is typo'd *fixes*


Last edited by N3M3S1S; 30/09/10 11:23 AM.

"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
/did -z test 1
smile

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Did you look at /help /did ? In particular the -z switch?

Joined: Jul 2006
Posts: 4,222
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,222
I wasn't answering the actual question, just notifying you that you had some syntax problems with the dialog table and the last table you pasted here still have one


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
*face palms*

I thought /did -z reset the hsbar to the "not used" state. Meaning it would go back to its disabled state acting like the text isnt long enough for it to be used.

<.<

Meh MY BAD there wasn't a bug after all >_>

Thanks

I should probably delete this post then...


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."

Link Copied to Clipboard