Hey Stefan,
2012/11/13 Stefan Ruppert <[email protected]>:
> 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().
Regards,
koen
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest