mIRC Home    About    Download    Register    News    Help

Print Thread
N
N3M3S1S
N3M3S1S
N
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.
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
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
N
N3M3S1S
N3M3S1S
N
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.
Joined: Nov 2006
Posts: 1,552
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,552
/did -z test 1
smile

5
5618
5618
5
Did you look at /help /did ? In particular the -z switch?

Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
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
N
N3M3S1S
N3M3S1S
N
*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...


Link Copied to Clipboard