-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everybody,

Inside the function specified in itemSelected, how do I know, exactly,
which link was clicked?

e.g.:

{
Wt::WStackedWidget *contents = new Wt::WStackedWidget(contentsParent);
Wt::WMenu *menu = new Wt::WMenu(contents, Wt::Vertical, menuParent);

menu->setRenderAsList(true);
menu->itemSelected().connect(this, &WtApplication::upMenu1);

menu->addItem("Introduction", new Wt::WText("intro"));
menu->addItem("Download", new Wt::WText("Not yet available"));
menu->addItem("Demo", new DemoWidget());
}


void WtApplication::upMenu1() {
  // all items (Introduction, Download and Demo) when clicked, will call
this function.
  // how do I know, exactly, which link was clicked?

  // I would like to create a SWITCH (or a IF) inside this function, but
I need to know which link was clicked.
}


I tried to find an answer in: Wt documentation,
http://redmine.webtoolkit.eu/projects/wt/boards, and here but I could not.

Thank you,
John
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQlwV5AAoJEOjf7XlrDgBAM4MIAJGSwWsS186hoXTB5UQcSz/i
MYPsMAZcbh5zOVRT6IpMJI1Vp0kS+QSxETDTj9Asj03n9Ox/p8VXNFAPpUwRtOZx
LcgZ5peLkwqT1tzwrPTBxu1cOGjAaXWb7IoM9H6i7IUaCHtvkAGVzNanGgKyXh1q
ucRRDScq9TQp2bXyas+/2e0yKsnXF4UN8jdbdEBoJMOrwVqKLrsFUwdImB4QWkrI
mjpqsY2x1ZblOf/K/skdub1cokUOS3Xqh4b1pY4o8GYg2MR0ld0Guq1SXHCn7Tl7
JM0rIk9PTElOEHqpFgiZtzMIyKxozenIgKOgqz8Td4y9rmIzqPZhc9NEd4TcWz4=
=4HEW
-----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

Reply via email to