From: "Josiah Carlson" <jcarlson@uci.edu>
self.newc = ...
sizer.Add(self.newc)Wow, that was a pain. I can't imagine how anyone manages to use sizers
to layout their controls.
Josiah, I hope you intended that playfully. As the level of sarcasm in that jab defies your normal professionalism and helpfulness on this list.
If all anyone ever did was align things in a straight line, then the above then the above would work and this thread wouldn't have come into existence.
But it gets a lot more complicated by just adding labels to those controls.
Then what if you want them in a hierarchy of grids and some to get bigger with resizing and some not. With static boxes around them. With various groupings of various sizes.
Sizers are a pain. They add unbearable clutter to otherwise simple code. And they often simply don't behave as expected.
And this is the worst criticism of all: *There is nothing about them to aid in debugging.* Something not sized right. Why? Which element is causing things to spill off the edge of the screen? Why is one group growing and another is not? Why is some group bigger than it obviously needs to be? No obvious way to find the answers to any of those questions.
End of rant.
(But not end of sizers being a pain. )
Michael