wWebView

This control may be used to render web (HTML / CSS / javascript) documents. As an embedded internet explorer, you can use getComObject() to get a winim COM object with IWebBrowser2 interface and then do a lot of thing on it. For example, manipulate DOM, call javascript function, and so on.

By default, the control runs in compatibility view mode (IE7). To change the compatibility mode, you need to deal with the registry key: FEATURE_BROWSER_EMULATION.

Notice: wWebView is always re-enabled before wEvent_WebViewLoaded event. If you need a disabled control, disable it again in the event handler of wEvent_WebViewLoaded.

Appearance:
Superclass:wControl
Styles:
StylesDescription
wWvNoSelDoes not enable selection of the text.
wWvNoScrollDoes not have scroll bars.
wWvNoContextMenuDoes not have context menus.
wWvNoFocusDoes not receive focus.
wWvSilentDoes not display dialog boxes (script error, etc.).
Events:wWebViewEvent

Types

wWebViewError = object of wError
  
An error raised when webview operation failure.

Consts

wWvNoSel = 1
wWvNoScroll = 2
wWvNoContextMenu = 4
wWvNoFocus = 8
wWvSilent = 16

Templates

template getComObject(self: wWebView): untyped
Returns a winim COM object with IWebBrowser2 interface. Import winim/com before using this template.
template comObject(self: wWebView): untyped
The same as getComObject().