mIRC Home    About    Download    Register    News    Help

Print Thread
#211314 11/04/09 10:32 PM
Joined: Jan 2006
Posts: 34
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Jan 2006
Posts: 34
combo 410, 192 51 185 206, size edit vsbar limit 10 drop
using the above, as you can see the box is high enough to take 10 entries
fill the box with 10 items and it works well, you see all 10 lines.
however add HSbar to the combo, it then only shows 8 and a half lines and needs the vsbar to see the remaining 1 and a half lines.
also the limit does not limit the box to 10 lines
i am not restricted to height but i am restricted to width.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
1) The HSBar needs space in the combo box to be displayed.
Why Khaled decided to make it the size it is, or why it shows in the combobox rather than below it (or beside it in the case of the VSBar), I don't know.

2) Limit is not listed as a valid style for a combobox, therefore the fact that it does not limit the combo box, imo, is not a bug, but rather, an idea for a Feature Suggestion.

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Adding a horizontal scroll will always make the viewable space smaller, I'm not sure what behaviour you were expecting. This is standard for all windows controls (dialog controls are exactly standard controls), so the behaviour is as you would get with any other application.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #211329 12/04/09 10:29 AM
Joined: Jan 2006
Posts: 34
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Jan 2006
Posts: 34
if i create a combo box large enough to show 25 lines.
insert 10 lines
force the size the combo box sizes it'self and shows 10 lines
add a hsbar and it shows 8 lines.
i expect to see 10 lines with the vsbar disabled (not needed)
and a hsbar at the bottom.
only 8 lines are shown regardless of whether the force size is included or not.
That to me is not normal windows behaviour.

put it this way :-
a plain drop down box shows 10 entries perfectly
add a hsbar and you see 8 entries with both vert and horz scroll bars

Last edited by NoZparker; 12/04/09 10:34 AM.
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
This is in fact normal Windows behaviour. A combo dropdown will always be sized to as many lines as there are items up to a MAXIMUM of the height you specify. In that sense, the height dialog option specifies a max height, not an absolute height. There is no way that I know of to set the actual height of a drop down combo. You should actually see this behaviour with any dropdown combo with a hsbar in Windows. Drop-downs are not meant for horizontal scrolls, however, so you won't see this often.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard