mIRC Home    About    Download    Register    News    Help

Print Thread
dialog listbox bug with horizontal scroll bar #117688 18/04/05 08:23 AM
Joined: Apr 2005
Posts: 5
J
johndoe2k4haha Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Apr 2005
Posts: 5
Here's the code to my dialog. Notice that I initialize it with a long line (thats longer than the width of the scroll bar)
But it doesnt display the horizontal scroll bar to move to the right
I'm pretty sure its a bug...

dialog test {
title Test
size -1 -1 125 156
option dbu
list 2, 9 26 115 85, hsbar
}

on *:dialog:test:init:0: {
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo

}

Re: dialog listbox bug with horizontal scroll bar #117689 18/04/05 08:32 AM
Joined: Dec 2002
Posts: 208
H
Hrung Offline
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 208
You have to use the -z switch for /did to get it to update the scrollbar. I think the idea is so that you can add many lines, and then update after just the last one, which can make it work faster. Try like this:

on *:dialog:test:init:0: {
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -a test 2 /.MSG <> hi there wants your name dude my name is steveo
/did -az test 2 /.MSG <> hi there wants your name dude my name is steveo
}

(note the z on just the last /did)

edit: Maybe that should be made more clear in future versions of the help file. If I didn't happen to already know that, I would have thought it was a bug too.

Last edited by Hrung; 18/04/05 08:36 AM.
Re: dialog listbox bug with horizontal scroll bar #117690 22/05/05 04:31 AM
Joined: Jan 2005
Posts: 20
C
C45P3R Offline
Ameglian cow
Offline
Ameglian cow
C
Joined: Jan 2005
Posts: 20
There still is a but with the listbox hsbar.
After /did -z it updates too long. Instead of sizing to the end of the text it sizes to about 30% longer then the text displayed so there's a long white space at the end of the line, meaning that even if the hsbar isn't needed it still sizes way too long having the hsbar when it isn't needed.