Add wxADJUST_MINSIZE flag here. That tells the sizer to ask
the window
what it's best size is everytime Layout is called, instead of always
using the initial or minimum size.
That works, amazing. Thank you. I did a search on that flag, and it really
isn't discussed very much. Makes me wonder how many people are actually
using wx* for "real" applications since it relates to a methodology that,
IMHO, is not clearly documented, yet would become crucial as soon as you get
out of the sandbox. Best,
Layout(), Fit(), SetSizeHints() and nothing works. Here is the 100 LOC:
[Please use attachements so the code is not word-wrapped by the mailer, also always mention the platform and version of wxPython used.]
Sorry I thought attachments were a no-no on lists.
Large and/or binary attachments are, athough I don't mind getting small screen shot images if they help clarify the description of a problem. But if you have text that must not be mangled (like python source code) then you don't have much option but to make it an attachement.
Add wxADJUST_MINSIZE flag here. That tells the sizer to ask the window what it's best size is everytime Layout is called, instead of always using the initial or minimum size.
That works, amazing. Thank you. I did a search on that flag, and it really
isn't discussed very much.
It was a later addition. The previous way to make it work was to tell the sizer about the new minsize of an item using SetItemMinSize.
BTW, sizers have been changed for the next 2.5 release such that wxADJUST_MINSIZE is now the default behaviour, and you have to specify a different flag if you don't want that.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!