Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/MacControls/HTMLViewer Mac/Reload htmlviewer
Function:
Required plugins for this example: MBS MacBase Plugin, MBS MacControls Plugin, MBS Main Plugin, MBS Win Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacControls/HTMLViewer Mac/Reload htmlviewer
This example is the version from Wed, 4th Sep 2012.
Project "Reload htmlviewer.rbp"
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:

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins