Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxSmith Feature request: Option to disable calls to Fit() and SetSizeHints()
lesnewell:
Yes it unconditionally removes the calls per sizer. I looked back at the wx2.8.11 samples and they only call SetSizeHints once for the top level window so I can't see it being needed for backwards compatibility with old versions of wx.
oBFusCATed:
We don't care for wx2.x in wxSmith as far as I'm concerned.
lesnewell:
The point I was trying to make is that the recommended use for SetSizeHints does not appear to have changed for a long time. If the current behaviour was put in due to a bug in wx I guess it was probably fixed a long time ago.
oBFusCATed:
I'm testing this patch.
Am I supposed to see this new property for wxFrames?
Are they supposed to be laid out?
I think, I've implemented the tooltip stuff, but I have to find where is the property to test it. :)
oBFusCATed:
OK, I'm not sure if this is a problem or side effect.
I have a wxFrame test project.
If I use the code generated by the patched cb the min size of the window is not set, so I can shrink it smaller then the content.
I have "Default min size" checked.
I'm always confused by this min size stuff, so I don't know if this is a regression or not but it is a change in behaviour.
Any comments about it? Do you have wxFrame based windows in your app?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version