Hey John,

2011/2/9 John Robson <[email protected]>:
> It was excellent for the use of wrapView just instantiate the class when
> necessary (for example, along with Wmenu & WStackedWidget).
>
> WWidget *MenuTop::wrapView(WWidget *(MenuTop::*createWidget)()) {
>  return makeStaticModel(boost::bind(createWidget, this));
> }
>
> The problem is that the object becomes static and the use WFileUpload
> (uploadButton->clicked().connect(upload_, &WFileUpload::upload)) does
> not work.
>
> Could use wrapView, but without creating static objects?

Then you need to keep the 'view' widget to react to events. In that
case you cannot use WViewWidget, but, you can still defer widget
creation use the DeferredWidget trick as used in the wt-homepage
example.

Regards,
koen

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to