Contents Up Previous Next

wxHtmlCellEvent

This event class is used for the events generated by wxHtmlWindow.

Derived from

wxCommandEvent
wxEvent
wxObject

Include files

<wx/html/htmlwin.h>

Event handling

To process input from a wxHtmlCellEvent, use one of these event handler macros to direct input to member function that take a wxHtmlCellEvent argument:

EVT_HTML_CELL_HOVER(id, func) User moved the mouse over a wxHtmlCell.
EVT_HTML_CELL_CLICKED(id, func) User clicked on a wxHtmlCell. When handling this event, remember to use wxHtmlCell::SetLinkClicked(true) if the cell contains a link.

Members

wxHtmlCellEvent::wxHtmlCellEvent
wxHtmlCellEvent::GetCell
wxHtmlCellEvent::GetPoint
wxHtmlCellEvent::SetLinkClicked
wxHtmlCellEvent::GetLinkClicked


wxHtmlCellEvent::wxHtmlCellEvent

wxHtmlCellEvent(wxEventType commandType, int id, wxHtmlCell * cell, const wxPoint & point)

The constructor is not normally used by the user code.


wxHtmlCellEvent::GetCell

wxHtmlCell * GetCell() const

Returns the wxHtmlCellEvent associated with the event.


wxHtmlCellEvent::GetPoint

wxPoint GetPoint() const

Returns the wxPoint associated with the event.


wxHtmlCellEvent::SetLinkClicked

bool SetLinkClicked(bool linkclicked)

Call this function with linkclicked set to true if the cell which has been clicked contained a link or false otherwise (which is the default). With this function the event handler can return info to the wxHtmlWindow which sent the event.


wxHtmlCellEvent::GetLinkClicked

bool GetLinkClicked() const

Returns true if SetLinkClicked(true) has previously been called; false otherwise.