Hello!

I have done this here:
https://github.com/starius/Wt-Tests/blob/master/WStackedWidget/test.cpp

I think, that better way of doing what you want is using internal
paths of application. Just create several instances of WAnchor,
connect them to internal paths like "/help/", "/about/". Then connect
wApp->internalPathChanged() signal to function, which would parse
internal path, create appropriate widget and set it as central widget.
In this case no memory will be spend for widgets except one that is
currently set. I have tried several other ways (including
WStackedWidget) and came to the conclusion that method I proposed is
the simpest.

On Mon, Nov 5, 2012 at 9:28 AM, John Robson <john.rob...@usp.br> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Complementing the previous email.
>
> I need to know which link was clicked, because always run all the code
> inside the function "mnItemSelected".
>
> eg:
> Menu->itemSelected().connect(this, &WtApplication::mnItemSelected);
>
> Always execute: "Home" and "About".
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.19 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJQl06IAAoJEOjf7XlrDgBAbkIH/20q4QOGNPiOuYPqRHjI35yh
> 8x88fLl7uzxdlJ5yDS4S9Ihpm3/OAduAvFH9PQisn3+tnIbkRfHzhU81zxP1c5Lv
> +pd+LC39ozhSC8BdcHUSgCmH6FS3QqcicZqdyqA17yspEy+Ws1nQhe7GQL9B+iyP
> 76qNRxeyH8E1qgmioPKIZ+80YLh4TOMVYOqNxv3zH+N26Hahrxx/U3dk7gtHFWah
> fZmf5txqZcy+ROW23avQ6GIgpDRR1WPULpImihqox+bhi/thfUYdq3N7RA1Do9xM
> xRUDdw838NGrgYDcDIKYBy0MHcQhlvqDJ5N7XnrdPaC944muLrq7djQkbCLamCU=
> =fhUS
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to