Platforms to show: All Mac Windows Linux Cross-Platform

/MacControls/HTMLViewer Mac/Reload htmlviewer
Function:
Required plugins for this example: MBS Win Plugin, MBS MacControls Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacControls/HTMLViewer Mac/Reload htmlviewer
Project "Reload htmlviewer.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control HTMLViewer1 Inherits HTMLViewer
ControlInstance HTMLViewer1 Inherits HTMLViewer
EventHandler Sub DocumentBegin(URL as String) ProgressWheel1.Visible = true End EventHandler
EventHandler Sub DocumentComplete(URL as String) ProgressWheel1.Visible = false End EventHandler
EventHandler Sub DocumentProgressChanged(URL as String, percentageComplete as Integer) ProgressBar1.Value = percentageComplete End EventHandler
EventHandler Sub Open() me.LoadURL "http://www.mbsplugins.de/" End EventHandler
End Control
Control BevelButton1 Inherits BevelButton
ControlInstance BevelButton1 Inherits BevelButton
EventHandler Sub Action() if TargetWin32 then dim b as Boolean = HTMLViewer1.IEReloadMBS if not b then MsgBox "Failed." end if else HTMLViewer1.ReloadMBS end if End EventHandler
End Control
Control BevelButton2 Inherits BevelButton
ControlInstance BevelButton2 Inherits BevelButton
EventHandler Sub Action() if TargetWin32 then dim b as Boolean = HTMLViewer1.IEReloadMBS(true) if not b then MsgBox "Failed." end if else HTMLViewer1.reloadFromOriginMBS end if End EventHandler
End Control
Control BevelButton3 Inherits BevelButton
ControlInstance BevelButton3 Inherits BevelButton
EventHandler Sub Action() if TargetWin32 then dim b as Boolean = HTMLViewer1.IEStopMBS if not b then MsgBox "Failed." end if else HTMLViewer1.StopLoadingMBS end if End EventHandler
End Control
Control ProgressWheel1 Inherits ProgressWheel
ControlInstance ProgressWheel1 Inherits ProgressWheel
End Control
Control ProgressBar1 Inherits ProgressBar
ControlInstance ProgressBar1 Inherits ProgressBar
End Control
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
End Project

See also:

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

Feedback: Report problem or ask question.

The biggest plugin in space...