Hi all,
Reading about sizers ... a windows seems to have a min size, best size and max size.
Min and max size seem to be pretty obvious, what's exactly is the point of the best size?
My guess would be that, if there's plenty of room available, then don't make it bigger than the best size. In which case, there's no need for a max size.
Many thanks
Hugo
Difference between max size, best size and min size ? Topic is solved
-
- Experienced Solver
- Posts: 84
- Joined: Wed Aug 09, 2006 11:14 pm
- Location: London
- Contact:
-
- Experienced Solver
- Posts: 89
- Joined: Tue Oct 03, 2006 6:30 pm
- Location: London, UK
- Contact:
Re: Difference between max size, best size and min size ?
Hi,
http://wiki.wxpython.org/WindowSizeInfo
It's wxPython, but it doesn't make much difference
HTH.
Andrea.
Try here:Rocketmagnet wrote:Hi all,
Reading about sizers ... a windows seems to have a min size, best size and max size.
Min and max size seem to be pretty obvious, what's exactly is the point of the best size?
My guess would be that, if there's plenty of room available, then don't make it bigger than the best size. In which case, there's no need for a max size.
Many thanks
Hugo
http://wiki.wxpython.org/WindowSizeInfo
It's wxPython, but it doesn't make much difference
HTH.
Andrea.
-
- Experienced Solver
- Posts: 84
- Joined: Wed Aug 09, 2006 11:14 pm
- Location: London
- Contact:
Thanks Infinity_77,
That's pretty helpful.
So, is this correct:
Min and Max size are used when it's the outer window whose size is being set externally (for example by the user dragging it). The Min size prevents the user making the window smaller than that. Similarly with Max size.
Best size is used when the outer window is told to automatically resize itself to whatever size would be best for its children.
I.E. Min and Max are used when size information is flowing from parent to child. Best size is used when size information is flowing from child to parent.
Hugo
That's pretty helpful.
So, is this correct:
Min and Max size are used when it's the outer window whose size is being set externally (for example by the user dragging it). The Min size prevents the user making the window smaller than that. Similarly with Max size.
Best size is used when the outer window is told to automatically resize itself to whatever size would be best for its children.
I.E. Min and Max are used when size information is flowing from parent to child. Best size is used when size information is flowing from child to parent.
Hugo