S
smith
Googles shows that this question has been asked a couple of times but every
"answer" turns out to be a snappy "only an idiot would need that" rather
than a real answer. I'd kinda like a real answer if there is one.
question, in 3 parts:
1) Why is there a 32767 maximum width/height limit on GUI controls?
2) Since there is that limit why aren't those properties defined as Shorts
instead of Ints?
3) Why was the decision made to just force higher values to the
Short.MaxValue value without tossing an exception alerting the dev/user that
such a silent force was going on?
It applies to all controls (buttons, groupboxes, panels, etc) and only
really gets in the way on pictureboxes being filled with very large images -
and that's is where the other "answers" turn into ""you don't need that
ability" rants rather than being very informative.
There is a mention of a 32bit exposed property being internally a 16bit
value at:
http://msdn.microsoft.com/library/d...eference/scrollbarfunctions/getscrollinfo.asp
.... but it seems to be a slightly different issue (or is it?)
If anyone's got an idea, I'd love to hear it just for the knowledge factor.
Thanks.
Robert Smith
Kirkland, WA
www.smithvoice.com
"answer" turns out to be a snappy "only an idiot would need that" rather
than a real answer. I'd kinda like a real answer if there is one.
question, in 3 parts:
1) Why is there a 32767 maximum width/height limit on GUI controls?
2) Since there is that limit why aren't those properties defined as Shorts
instead of Ints?
3) Why was the decision made to just force higher values to the
Short.MaxValue value without tossing an exception alerting the dev/user that
such a silent force was going on?
It applies to all controls (buttons, groupboxes, panels, etc) and only
really gets in the way on pictureboxes being filled with very large images -
and that's is where the other "answers" turn into ""you don't need that
ability" rants rather than being very informative.
There is a mention of a 32bit exposed property being internally a 16bit
value at:
http://msdn.microsoft.com/library/d...eference/scrollbarfunctions/getscrollinfo.asp
.... but it seems to be a slightly different issue (or is it?)
If anyone's got an idea, I'd love to hear it just for the knowledge factor.
Thanks.
Robert Smith
Kirkland, WA
www.smithvoice.com