You may do it by implementing the widget (container) with a slot
inside, which will replace the current widget ("page") with next widget
("page") in some place on the page where you want.

class MyWidget : public Wt::WContainerWidget {
// code
private:
  Wt::WContainerWidget* page_;
  Wt::WContainerWidget* paginator_; // emits the signal, e.g.,
"internalPathChanged", or clicked....
  void nextPage(); // slot. Loads new page to the page_
// code
};

Regards,
Dmitriy Igrishin

2010/4/23 Sven Knoblich <[email protected]>

> Thanks for your response. I was wrong by using The internal EventSignal.
> Are there possibilities to register my Signals on the existing signal
> handler of WApplication or WContainerWidget? I want to handle my own Signals
> on à Central place. Currently i have a pagehandler which inherits from
> WApplication an Pages which inherit from WContainerWidget. When i want to
> load the next page, i want to call a method from my pagehandler
> "nextpage()".  To avoid a selfdestruction by a call from a page i want to
> set the updateflag of The Signal to true. When now The Signal handler ask
> for this flag, the signal will be called by call emit.
>
> Any idea where to integrate ore which handler i can use?
>
> Many thanks in advance,
> Sven
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to