Hey all, We have now implemented layout managers that can be used in conjunction with WContainerWidgets. In CVS are now WGridLayout, WBoxLayout (and its related classes WHBoxLayout and WVBoxLayout), as well as WBorderLayout implementations that you can use to layout children in a WContainerWidget. As with Qt, these layout managers can be arbitrarily nested. The current behaviour of WContainerWidget has not changed, as long as you do not set a layout manager using setLayout().
They package a whole lot of frustration to get them implemented, and hopefully will become useful to reduce daily frustration when dealing with layout in Wt applications. I would have wanted them to work even without JavaScript, but that turned out too much asked of CSS (the standard). Only Safari and to a lesser extent Firefox can render them without JavaScript. Not that that makes them the most compliant browsers (only the most useful ones!). Of all browsers, Opera seems to be implementing most closely the CSS standard with respect to dealing with width/height stuff. Unfortunately the standard is pretty lousy for vertical layout, leaving many things that could be useful undefined. Therefore, there is some JavaScript that will help in doing the vertical layout; in all cases the horizontal layout does not require JavaScript. There are still some things unfinished: - alignment of a layout item within its layout cell; - see if they do not interfere with Ext, and probably make them work nicely nested within Ext-based layout, and make sure the layouts update nicely whenever needed. To see them work for yourself, you could try the SimpleChat example, which has been adapted (and greatly simplified) to use WVBoxLayout and WHBoxLayout instead of the previous CSS absolute layout. Regards, koen ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
