Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Win/HTMLViewer Windows/WebKit - Chromium/WebPlugins
Function:
Required plugins for this example:
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/HTMLViewer Windows/WebKit - Chromium/WebPlugins
This example is the version from Mon, 10th Jan 2016.
Project "WebPlugins.rbp"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control HTMLViewer1 Inherits HTMLViewer
ControlInstance HTMLViewer1 Inherits HTMLViewer
End Control
Control ShowButton Inherits PushButton
ControlInstance ShowButton Inherits PushButton
EventHandler Sub Action() #if TargetWin32 then PluginsWindow.show #else MsgBox "This is for Windows only. Please build windows app to test." #endif End EventHandler
End Control
EventHandler Sub Open() HTMLViewer1.LoadURL "http://www.mbsplugins.de" End EventHandler
End Class
MenuBar MainMenuBar
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem EditSeparator1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem EditSeparator2 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
Class PluginsWindow Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
EventHandler Sub Open() dim plugins() as ChromiumWebPluginInfoMBS = ChromiumWebPluginInfoMBS.Plugins for each p as ChromiumWebPluginInfoMBS in plugins list.AddRow p.Name, p.Path, p.Version, p.Description next End EventHandler
End Class
End Project

See also:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Win Plugin.




Links
MBS Xojo blog