ISDBUI::NewActiveX

From MediaMonkey Wiki
Revision as of 23:02, 24 March 2007 by Jiri (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CoClass SDBUI, Interface ISDBUI

Property Get NewActiveX(Owner As Object, ProgID As String) As ISDBUIActiveX


Parameters

Name Type Description
Owner Object Parent control of the newly created control.
ProgID String ProgID of the control to be created, e.g. 'Shell.Explorer' for a web browser from IE.


Property description

Creates a new ActiveX control.

Example code

' An example of how to create a web browser control (that can display any HTML page).

Set WB = UI.NewActiveX( Form, "Shell.Explorer")
WB.Common.Align = 5      ' Fill all client rectangle
WB.Interf.Navigate "about:"          ' A trick to make sure document exists
Set Doc = WB.Interf.Document

Doc.Write "Hello world!"
Doc.Close