A Simple HTML viewer window. More...
#include <mgui/html.h>

Public Types | |
| enum | STYLE { STYLE_None = 0x00000000, STYLE_ShowAddressBar = 0x00000001, STYLE_ShowToolBar = 0x00000002, STYLE_AllLinksToExternalBrowser = 0x00000004 } |
Public Member Functions | |
| DLG_HTML (STYLE style=STYLE_None) | |
| virtual | ~DLG_HTML () |
| void | GetRenderedDocSize (int &height, int &width) const |
| void | SetDelegateOnHyperLink (FORM_HTML::DELEGATE_HYPERLINK delegate) |
| void | SetSize (INT32 height, INT32 width) |
| void | SetURL (const MISTRING &url) |
| void | SetValue (const MISTRING &value) |
| void | SetValue (const FILEPATH &filepath) |
A Simple HTML viewer window.
Style settings, may be combined.
Reimplemented from MGUI::DLGSHELL.
| MGUI::DLG_HTML::DLG_HTML | ( | STYLE | style = STYLE_None |
) |
| virtual MGUI::DLG_HTML::~DLG_HTML | ( | ) | [virtual] |
| void MGUI::DLG_HTML::GetRenderedDocSize | ( | int & | height, | |
| int & | width | |||
| ) | const |
Gets the height and width of the area that the htmldoc has used for rendering.
Note: the layout must already be rendered to call this.
| width | height returned width returned; |
| void MGUI::DLG_HTML::SetDelegateOnHyperLink | ( | FORM_HTML::DELEGATE_HYPERLINK | delegate | ) |
Set delegate to call when user clicks on a link.
By default, all links to a local html file or to an external url which produces a document type of text/html will open in this window. The STYLE_AllLinkstoExternalBrowser flag changes this. NOTE: if you call this, you must do so BEFORE opening the window
| void MGUI::DLG_HTML::SetURL | ( | const MISTRING & | url | ) |
| void MGUI::DLG_HTML::SetValue | ( | const MISTRING & | value | ) |
| void MGUI::DLG_HTML::SetValue | ( | const FILEPATH & | filepath | ) |
1.6.1