This class can be used to display HTML documents. It does not always handle badly formed html very well. Make sure that any lists are surrounded by <ul> </ul> or <ol> </ol> tags.
Clears the history cache.
Returns anchor within currently opened page (see get_html_page()). If no page is opened or if the displayed page wasn't produced by call to LoadPage, empty string is returned.
Returns full location of the opened page. If no page is opened or if the displayed page wasn't produced by call to LoadPage, empty string is returned.
Returns the title of the currently opened page.
This appends the HTML Source to the Control
Goes backward in the list of pages in an wxHtmlWindow's cache of viewed pages. If there is no page before the current page, then nothing will happen.
Goes forward in the list of pages in an wxHtmlWindow's cache of viewed pages. If there is no page after the current page, then nothing will happen.
Loads the specified file.
This opens a specified html page into the designated wxHtmlWindow. If you want it to follow HTML links, you will need this the second part to be ahref.
This sets the source of the displayed page to source.
Note: This method is deprecated; intercept the event instead: wxEVT_COMMAND_HTML_LINK_CLICKED.
Set a callback for when the user clicks on a link in a wxHtmlWindow. The callback must be a procedure that takes 3 parameters:
Set a call_back to be called when an URL is being opened (either when the user clicks on a link or an image is loaded). The URL will be opened only if the call back returns wxHTML_OPEN. This method is called by wxHtmlParser::OpenURL. You can use the call back to selectively block some URLs (e.g. for security reasons) or to redirect them elsewhere. Default behaviour is to always return wxHTML_OPEN.
Call back return value:
Sets the frame in which page title will be displayed. format is format of frame title, e.g. "HtmlHelp : %s". It must contain exactly one %s. This %s is substituted with HTML page title. status_slot is the slot in the status bar where messages will be displayed (-1 means no messages).