[core]  [oils]  [libraries]  [C++ messages]  [coding guidelines] [up to overview ]

mkeyLinkClicked (in msg_display)

Last updated:


Syntax

#include <msg/display/mkeyLinkClicked.h>
mkeyLinkClicked (int id, const string &href, int button);


mkeyLinkClicked

This message is send by the display when a link is clicked. It is keyed on the display id and contains a const string &href member with the clicked link's href and a int button member indicating which button was pressed.


Example


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;
}


This file is part of Project Mnemonic.