Platforms to show: All Mac Windows Linux Cross-Platform
/Win/HTMLViewer Windows/IE Properties
Required plugins for this example: MBS Win Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/HTMLViewer Windows/IE Properties
This example is the version from Sun, 17th Mar 2012.
Project "IE Properties.xojo_binary_project"
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
End Project
See also:
- /Win/HTMLViewer Windows/Eval Javascript Win
- /Win/HTMLViewer Windows/HTML Editor
- /Win/HTMLViewer Windows/HTML Editor Win
- /Win/HTMLViewer Windows/HTMLViewer Extensions
- /Win/HTMLViewer Windows/HTMLViewer Get and Set Field
- /Win/HTMLViewer Windows/HTMLViewer Image
- /Win/HTMLViewer Windows/More HTMLViewer Printing
- /Win/HTMLViewer Windows/WebKit - Chromium/HTMLViewer with WebKit on Windows
- /Win/HTMLViewer Windows/WebKit - Chromium/WebPlugins
- /Win/HTMLViewer Windows/WebKit - Chromium/Windows WebKit Cookies
The items on this page are in the following plugins: MBS Win Plugin.