Peter,

One thing I tend to do, particularly related to listboxes, is to set the
height of them in the SizeChanged event handler for the window. I measure
the container size, then set the height of the listbox. What that does is
tells the listbox's scrollbar (vertical) to kick in automatically if the
list is too small to show all of its items. So if they user resizes their
browser window the listbox will change its height to match its container
(minus a border width) and it will always fill the available vertical
height. You can do the same with width, although as Shane mentioned you can
have things look too wide, so setting a max and min width allows the
controls to resize within that range.

Smart resizing apps are an interest of mine as there's nothing more annoying
than running an app that has resize turned OFF, is very small and you have a
30" (2560x1600) monitor. Its even more aggravating when said application
gives you scrollbars!

The designer in me (thats about 46% of me) thanks you for taking the time to
make your app resize intelligently!! :)

cheers,
Stephen
_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to