mIRC Homepage
Posted By: FroggieDaFrog dialog List hsbar - 09/08/10 01:49 PM
ListBox hsbar bug:


List 1 and 2 are correct(No hsbar)
But on list 3, even though hsbar is specified it isn't present
On List 4, it's present(hsbar with vsbar), but disabled
Code:
dialog test {
  title test
  option pixel
  size -1 -1 400 400
  list 1, 0 0 200 200,
  list 2, 200 0 200 200, vsbar
  list 3, 0 200 200 200, hsbar
  list 4, 200 200 200 200, vsbar hsbar
}
on *:DIALOG:test:Init:0:{
  var %x = 1
  while (%x <= 20) {
    did -a $dname 1 $str(This is list:1,10)
    inc %x
  }

  var %x = 1
  while (%x <= 20) {
    did -a $dname 2 $str(This is list:2,10)
    inc %x
  }
  var %x = 1
  while (%x <= 20) {
    did -a $dname 3 $str(This is list:3,10)
    inc %x
  }
  var %x = 1
  while (%x <= 20) {
    did -a $dname 4 $str(This is list:4,10)
    inc %x
  }
}

Posted By: Collective Re: dialog List hsbar - 09/08/10 02:04 PM
You need to update the horizontal scrollbars manually with /did -z.
Posted By: Riamus2 Re: dialog List hsbar - 09/08/10 02:41 PM
Just a note on /did -z... you should use /did -z whenever you change what is in the list (after the change is made) as well as after you add everything to the list initially.
© mIRC Discussion Forums