mIRC Home    About    Download    Register    News    Help

Print Thread
#273945 25/06/26 08:12 PM
Joined: Jul 2014
Posts: 333
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 333
Hi Khaled,

There's a bug with the combo dropdown control in custom dialog and with string of different case, see the code below, when you activate the dropdown +t is incorrectly changed to +T. Basically, it always find the first item in the list regardless of the case.

Code
alias test { dialog -m test test }
 
dialog test {
  title ""
  option pixels
  size -1 -1 306 156
  text "Enter or select the modes to delete:", 1, 10 12 290 16
  combo 2, 8 92 290 120, sort edit drop result
  button "&OK", 3, 141 125 76 23, ok default
  button "&Cancel", 4, 223 125 76 23, cancel
}
on *:dialog:test:*:*:{
  if ($devent == init) {
    var %i 1,%g +n,+t,+T,+P,%f +t,%r $numtok(%g,44)
    while (%i <= %r) {
      did -a $dname 2 $gettok(%g,%i,44)
      if ($gettok(%g,%i,44) != %f) { did -co $dname 2 0 %f | did -f $dname 2 }
      inc %i
    }
  }
}


TECO
irc.PTirc.org (Co-Admin)
Joined: Dec 2002
Posts: 3,914
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 3,914
Thanks for your bug report. This is standard Windows combo-box behaviour :-)


Link Copied to Clipboard