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

mkeyDisplayStatus (in msg_display)

Last updated:


Syntax

#include <msg/display/mkeyDisplayStatus.h>
mkeyDisplayStatus (int id, status s, const string &msg);


mkeyDisplayStatus

This message is send by the display when it's changed status. It is keyed with the display id and contains a const string &msg member with a message that can be displayed to the user. It also contains a status stat member indication the status. status is a enum typedef that can have the following values:
OVERLINK
The mouse is currently on top of a link. msg contains the url.
LEFTLINK
The mouse is no longer on top of the link. msg contains one single space to clear the status line.


Example


InterestByKey *interestDispStatus;
interestDispStatus = new InterestByKey(
  this,&Browser::GotoURLMess);
interestDispStatus->AddKey(connNewId);

int Browser::DispStatusMess(mkeyDisplayStatus &m) {
	if (m.stat != mkeyDisplayStatus::LEFTLINK)
		cout <<"Display: "<<m.msg<<endl;
	return 0;
}


This file is part of Project Mnemonic.