Ok, another variant on “The reason you people don’t love sizers is because you’re too uneducated/inexperienced/dumb/lazy.”
You are welcome to take it that way if you want. I’m not here to stroke or deconstruct anyone’s ego. I’m not trying to insult anyone here, but if you’ll excuse the observation, the thread does start out on a fairly annoying note (one I’ve seen elsewhere as well - browse the Twisted mailing list sometime and search for “deferred” + “sucks”
Sizers may be the very best thing there is. I don’t know and neither does anyone else since Mr. Spock isn’t on this list.
No, actually he is. He’s just a quiet sort. All that scanning …
I’ve read every single comment in these thread(s) and no-one has advocated putting everything at the top level and inside the frame class. No-one.
Yeah, me among them. But one of the most common antipatterns out there is to jam everything into the top level frame. I think I saw somebody use the term “spaghetti sizers” which does a great job of describing the situation. And most often people that are frustrated with sizers are frustrated because that antipattern lends itself to initial efforts readilly.
Organizing and blocking out logical code blocks is a MUST for complex UIs in this situation. Thus, I advocate this.
Like other examples cited, this one is a very simple layout. Exercise: run the demo, using your mouse grab the lower-right corner, move the mouse in a circle while still holding the corner. What do you see? Answer: nothing. Nothing moves, nothing changes size. Nothing shrinks, nothing grows. Even when you collapse the screen too small to hold the demo panel still nothing changes. The layout could be hard-coded static for all we could tell.
You are assuming it wasn’t designed to be a static size. I wouldn’t go that far.
As for making it resizable, it wouldn’t take that long to tweak things so that that would happen. That entire panel can be plunked down into its own frame for academic purposes (I probably have the test frame in my repository still). The hardest part of the whole excersize is unrelated to sizers - adding the code to make the ‘guages’ resizable.
Remember, this was a demo to showcase joystick controls, not sizers. The sizer demo is pretty dynamic, starting especially with the third demo down (I do note that min window size isn’t being enforced, but that’s not the sizer’s fault).
I bid $200. And I’d go more if it really made a significant difference. Who knows maybe XRCed will be such (for me). Some have certainly found it so.
Yah, maybe. I’ve looked and not really warmed to it. But I break out in a rash when I look at XML-ish stuff anyway.
I could hop over to some other list and tell them what a pain C++ is. There’d be a lynch mob outside my door in minutes. But I’d be right and so would they.
Yeah, we all know doin’ it old-school in ANSI C is the way to go
Seriously, though; if you said such a thing (and you’d be right) you’d be framing it in reference to something that, if it didn’t suck, at least sucked less. I’m just trying to figure out what that something is.
···
On 5/23/06, Michael Hipp michael@hipp.com wrote:
–
“Ladies and gentlemen, there’s nothing to worry about … but please keep your heads down.” - The Muppet Show
Best,
Jeff