To read all comments associated with this story, please click here.
Please note this is not a flame attempt, but a genuine question.
Hey, snowflake. Can you show me an example code of non fixed layout for windows API's ? I always avoided programming on windows platforms because I couldn't stand those fixed positioning for everything.
Alexandre Moreira.
It's been about 5 years since I programmed on Windows, but from what I remember, controls in resource files were indexed by fixed co-ordinates and I don't remember ever seeing anything related to layout managers such as the grid layout. I did a google on MFC "layout manager" and only got this link which confirms that MFC didn't have one, but it is possible to roll your own: http://www.codeproject.com/dialog/layoutmgr.asp
That means, either the apps you've written 10 years ago used your own custom layout manager (in which case, I complement you on your foresight, but it doesn't help the average MFC programmer that's stuck with what Microsoft provides them), or you programmed on some non-C/C++ language like Delphi (which I think had layout managers), or you think you know what "fixed layout" means but don't, or you're BSing.
Edited 2007-06-04 16:49
Delphi doesn't have layout managers either, at least not out of the box. You can align components to left/right/top/bottom but that's nowhere near as powerful as and easy as the capabilities I'm used to in GTK. As a result, my dialogs tend to display differently for different users, depending on whether they have XP skinning turned on.
I searched for layout managers for Delphi but I haven't been able to find anything.






Member since:
2005-07-20
>Windows toolkits usually use fixed layouts.
Complete an utter bo**ocks. Why do non-windows programmers continually promulgate these total falsehoods. I've been writing Windows apps for 10 years and I've never had fixed layout.