The purpose of this class is to display rich content pages (either local file or downloaded via HTTP protocol) in a window based on a subset of the HTML standard. The width of the window is constant, given in the constructor and virtual height is changed dynamically depending on page size. Once the window is created you can set its content by calling
Note: If you want complete HTML/CSS support as well as a Javascript engine, consider using
Styles
This class supports the following styles:
See:
This class is derived (and can use functions) from:
wxWidgets docs:
Event types emitted from this class:
Default ctor.
Constructor.
The parameters are the same as
Appends HTML fragment to currently displayed text and refreshes the window.
Return: false if an error occurred, true otherwise.
Returns anchor within currently opened page (see
If no page is opened or if the displayed page wasn't produced by call to
Returns full location of the opened page.
If no page is opened or if the displayed page wasn't produced by call to
Returns title of the opened page or wxEmptyString if the current page does not contain <TITLE> tag.
Returns the related frame.
Moves back to the previous page.
Only pages displayed using
Returns true if it is possible to go back in the history i.e.
Returns true if it is possible to go forward in the history i.e.
Clears history.
Moves to next page in history.
Only pages displayed using
Loads an HTML page from a file and displays it.
Return: false if an error occurred, true otherwise
See:
Unlike
Return: false if an error occurred, true otherwise
See:
Selects all text in the window.
See:
Returns the current selection as plain text.
Returns an empty string if no text is currently selected.
Selects the line of text that
Note that
See:
Selects the word at position
Note that
See:
This function sets the space between border of window and HTML contents.
See image:
This function sets font sizes and faces.
See
See: SetSize()
Sets the source of a page and displays it, for example:
If you want to load a document from some location use
Return: false if an error occurred, true otherwise.
Sets the frame in which page title will be displayed.
(Default is -1 = no messages.)
Call this instead of
Since: 2.9.0
Returns content of currently displayed page as plain text.
Destroys the object.