You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/HTMLViewer Windows/IE Properties
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
EventHandler Sub Open()
if TargetWin32 then
// ok
else
MsgBox "This example requires Windows."
end if
End EventHandler
End Class
Class Window1 Inherits Window
Control EditField1 Inherits TextField
ControlInstance EditField1 Inherits TextField
EventHandler Function KeyDown(Key As String) As Boolean
if asc(key)=3 or asc(key)=13 then
HTMLViewer1.LoadURL me.Text
Return true
end if
End EventHandler
End Control
Control HTMLViewer1 Inherits HTMLViewer
ControlInstance HTMLViewer1 Inherits HTMLViewer
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action()
text=""
add "CharSet",HTMLViewer1.IECharSetMBS
add "Cookie",HTMLViewer1.IECookieMBS
add "DefaultCharset",HTMLViewer1.IEDefaultCharsetMBS
add "Domain",HTMLViewer1.IEDomainMBS
add "FileCreationDate",HTMLViewer1.IEFileCreationDateMBS
add "FileModifiedDate",HTMLViewer1.IEFileModifiedDateMBS
add "FileSize",HTMLViewer1.IEFileSizeMBS
add "FileUpdatedDate",HTMLViewer1.IEFileUpdatedDateMBS
add "Handle",HTMLViewer1.IEHandleMBS
add "HistoryLength",HTMLViewer1.IEHistoryLengthMBS
add "LastModified",HTMLViewer1.IELastModifiedMBS
add "MimeType",HTMLViewer1.IEMimeTypeMBS
add "NameProp",HTMLViewer1.IENamePropMBS
add "NavigatorAppMinorVersion",HTMLViewer1.IENavigatorAppMinorVersionMBS
add "NavigatorAppName",HTMLViewer1.IENavigatorAppNameMBS
add "NavigatorAppVersion",HTMLViewer1.IENavigatorAppVersionMBS
add "NavigatorBrowserLanguage",HTMLViewer1.IENavigatorBrowserLanguageMBS
add "NavigatorCookieEnabled",HTMLViewer1.IENavigatorCookieEnabledMBS
add "NavigatorJavaEnabled",HTMLViewer1.IENavigatorJavaEnabledMBS
add "NavigatorOnLine",HTMLViewer1.IENavigatorOnLineMBS
add "NavigatorUserAgent",HTMLViewer1.IENavigatorUserAgentMBS
add "NavigatorUserLanguage",HTMLViewer1.IENavigatorUserLanguageMBS
add "Protocol",HTMLViewer1.IEProtocolMBS
add "Referrer",HTMLViewer1.IEReferrerMBS
add "Security",HTMLViewer1.IESecurityMBS
add "Title",HTMLViewer1.IETitleMBS
add "ToString",HTMLViewer1.IEToStringMBS
add "URL",HTMLViewer1.IEURLMBS
EditField2.text=text
End EventHandler
End Control
Control EditField2 Inherits TextArea
ControlInstance EditField2 Inherits TextArea
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action()
HTMLViewer1.LoadURL EditField1.Text
End EventHandler
End Control
Control PushButton3 Inherits PushButton
ControlInstance PushButton3 Inherits PushButton
EventHandler Sub Action()
HTMLViewer1.IEHistoryBackMBS
End EventHandler
End Control
Control PushButton4 Inherits PushButton
ControlInstance PushButton4 Inherits PushButton
EventHandler Sub Action()
HTMLViewer1.IEHistoryForwardMBS
End EventHandler
End Control
Sub add(t as string, v as variant)
dim d as string
d=v.StringValue
text=text+t+":"+EndOfLine+d+EndOfLine
End Sub
Property text As string
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar