I got the wxConstraints to work within wxNotebooks thanks to David Hughes
help.
It seems that the objects I added with AddPage() need to be derived from a
wxPanel rather than a wxWindow. I'm not sure of the technical reasons but it
now works.
I got the wxConstraints to work within wxNotebooks thanks to David Hughes
help.
It seems that the objects I added with AddPage() need to be derived from a
wxPanel rather than a wxWindow. I'm not sure of the technical reasons but
it
now works.
wxWindow doesn't honor the autoLayout flag because it doesn't make sense for
all classes derived from wxWindow (such as controls.) You can easily make a
class derived from wxWindow do autoLayout by simply giving an EVT_SIZE
handler that calls self.Layout().
Window classes that typically contain other windows (wxPanel,
wxScrolledWindow, wxFrame, etc.) have a default EVT_SIZE handler that checks
the autoLayout flag and if set calls Layout().