[core] [oils] [libraries] [C++ messages] [coding guidelines] | [up to overview ] |
#include <msg/display/mkeyLinkClicked.h>
mkeyLinkClicked (int id, const string &href, int button);
This message is send by the display when a link is clicked. It is keyed on the display id and contains aconst string &href
member with the clicked link's href and aint button
member indicating which button was pressed.
InterestByKey*interestLinkClicked; interestLinkClicked = new InterestByKey ( this,&Browser::GotoURLMess); interestLinkClicked->AddKey(connNewId); int Browser::GotoURLMess(mkeyLinkClicked &m) { if (m.button == 1) { cout <<m.href<<" was clicked!"<<endl; } return 0; }