mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
list <id>, <x y width height>, size

Does anyone know exactly what this does? I know it changes the size of the listbox but I need something more specific than that. smile

I
Iori
Iori
I
Well there is this
  • 72.Added custom dialog style 'size' for listboxes, forces the listbox
    to be sized to the vertical size you specify instead of being rounded
    to the nearest whole size for a listbox item.

Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
That's the theory anyway. Upon testing it seems it quite often ends up being rounded by up to two line-height's from the given value when size isn't used.

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
I saw that but that's not what it does, I thought maybe it had changed since.
Sometimes it gets big enough to show 2-3 extra items.

Edit:

Here's an example:

Code:
dialog t {
  title ""
  size -1 -1 114 318
  option dbu
  list 1, 1 2 50 314, size
}
on *:dialog:t:init:*:{
  didtok $dname 1 32 a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
}


/dialog -m t t

Last edited by tidy_trax; 21/03/05 11:36 PM.
I
Iori
Iori
I
I don't know how it calced, but without it mIRC rounds down to fit only whole lines, whereas using it you can see partial lines (depending of course on the size specified).

I
Iori
Iori
I
Yeah, it can, the calculatons seem a little odd sometimes. :[/b])

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
Instead of starting a new topic about an almost identical question, i'll ask here.

Can anyone see any differences between the "multsel" and "extsel" properties other than not being able to select multiple items by Shift+Click and dragging the mouse? It seems kinda pointless to me.

Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
'multsel' allows sticky selections, ie you click on an item, it is selected and it stays that way until you click on it again. Clicking on another line doesn't affect the selection status of the first. I guess this makes it handy when you want to select multiple non-consecutive items. With 'extsel' you need to hold Ctrl while doing that.

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
Thanks. smile


Link Copied to Clipboard