Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/MacControls/HTMLViewer Mac/Open Link in iTunes
Function:
Required plugins for this example:
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacControls/HTMLViewer Mac/Open Link in iTunes
This example is the version from Sun, 17th Mar 2012.
Project "Open Link in iTunes.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 Function CancelLoad(URL as String) As Boolean System.DebugLog "CancelLoad: "+url if left(url,5)="itms:" then ShowURL url Return true end if End EventHandler
EventHandler Sub DocumentBegin(URL as String) System.DebugLog "DocumentBegin: "+url End EventHandler
EventHandler Sub DocumentComplete(URL as String) System.DebugLog "DocumentComplete: "+url End EventHandler
EventHandler Function NewWindow() As HTMLViewer System.DebugLog "NewWindow" End EventHandler
End Control
EventHandler Sub Open() HTMLViewer1.LoadURL "http://itunes.apple.com/en/app/id347349895?mt=8" End EventHandler
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