I'm thinking of converting my current app to use SizedControls where possible because I'd like to clean up the UI code, and also have my controls spaced correctly based on the HIG of the platform it's running on.
Just wondering, but are SizedControls here to stay? I think they are a great idea. There's a few limitations I've run into so far which could probably be solved by digging into the code. These are:
1) I wanted to create a panel with a StaticBoxSizer. I got around this by nesting a SizedPanel inside a normal wxPanel though. I suppose an additional sizer type could be passed to SetSizerType (e.g. "box") to handle this.
2) I'd like to set that controls expand in one direction only. Is there a way to do this?
Also, is it a problem (performance/memory usage wise) to be creating Panels just for the purpose of having a nested sizer? Was it a trade-off made keep sizers out of code that uses SizedPanels?
Anyway, I like the idea of SizedControls, and noticed it's cut a lot of cruft out of my UI code and given me GUIs that look nice without much effort.
Robert
ยทยทยท
On Apr 10, 2007, at 5:02 AM, Kevin Ollivier wrote:
I'm fairly sure the current method, sizers, will continue to exist indefinitely, as SizedControls is actually implemented using them.
It's just a sort of an abstraction layer for sizers, designed to remove tedious coding and get around the conceptual hurdle of having layout separated from the controls themselves.
As far as the roadmap is concerned (e.g. how much SizedControls come to be used by wxPy itself, the demos, etc.), I think the roadmap will be determined by user feedback and adoption. Sizers are one of those things that, once you "get them", you become quite an advocate of them. (And, to be sure, there's no way I could have implemented SizedControls without them!) So I suspect that it'll be a bit of an uphill battle convincing some of the "sizer fans" that SizedControls retain the power of sizers while at the same time making layouts easier and less work to create. (particularly that one guy who's done a lot of work on sizers...
But I really do feel that they do.
So those of you out there who are using SizedControls, please offer your feedback! And for those who haven't, but would like a simpler way to work with sizers, please check SizedControls out and let the list know what you think!