Hi Koen, On 13.11.2012 16:09, Koen Deforche wrote: > Hey Stefan, > > 2012/11/13 Stefan Ruppert<s...@myarm.com>: >> Hi, >> >> is there a support method in Wt to detect the current size of the >> browser window or document? I want to store the percentage of two >> WVBoxLayout cells of the main widget to later load and use the same >> ratio of the two vbox cells! > > You can (if your user-interface works like, that but I guess it does > ?) organize it as: > > root() > WVBoxLayout() > WContainerWidget : setLayoutSizeAware() + listen for layoutSizeChanged() > ... (whatever you had originally in root()) > > Thus, wrap a toplevel WVBoxLayout around your entire layout which > communicates its size in layoutSizeChanged().
Thanks for that hint. It works fine! Stefan ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest