wxRuby Documentation Home

Wx::HtmlCellEvent

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

Derived from

CommandEvent

Event

Object

Event handling

To process HtmlCellEvents, use one of these event handler methods to
direct the event to a block that takes a
HtmlCellEvent argument:

evt_html_cell_hover(id) { | event | … } User moved the mouse over a HtmlCell.
evt_html_cell_clicked(id) { | event | … } User clicked on a HtmlCell. When handling this event, remember to use HtmlCell::SetLinkClicked if the cell contains a link.

Methods

HtmlCellEvent.new

HtmlCellEvent.new(%(arg-type)EventType% commandType, Integer id, HtmlCell cell, Point point)

The constructor is not normally used by the user code.

HtmlCellEvent#get_cell

HtmlCell get_cell()

Returns the HtmlCellEvent associated with the event.

HtmlCellEvent#get_point

Point get_point()

Returns the Point associated with the event.

HtmlCellEvent#set_link_clicked

Boolean set_link_clicked(%(arg-type)Boolean% linkclicked)

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

HtmlCellEvent#get_link_clicked

Boolean get_link_clicked()

Returns if set_link_clicked has previously been called;
otherwise.

[This page automatically generated from the Textile source at 2023-06-09 00:45:31 +0000]