Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/MacControls/HTMLViewer Mac/HTMLViewer on TabPanels fix
Function:
Required plugins for this example: MBS MacBase Plugin, MBS MacControls Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacControls/HTMLViewer Mac/HTMLViewer on TabPanels fix
This example is the version from Sun, 17th Mar 2012.
Project "HTMLViewer on TabPanels fix.rbp"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control TabPanel1 Inherits TabPanel
ControlInstance TabPanel1 Inherits TabPanel
EventHandler Sub Change() HTMLViewer1.Visible=me.Value=0 HTMLViewer2.Visible=me.Value=1 HTMLViewer3.Visible=me.Value=2 HTMLViewer1.visibleMBS=me.Value=0 HTMLViewer2.visibleMBS=me.Value=1 HTMLViewer3.visibleMBS=me.Value=2 End EventHandler
End Control
Control HTMLViewer1 Inherits HTMLViewer
ControlInstance HTMLViewer1 Inherits HTMLViewer
EventHandler Sub Open() me.LoadURL "http://www.heise.de" End EventHandler
End Control
Control HTMLViewer2 Inherits HTMLViewer
ControlInstance HTMLViewer2 Inherits HTMLViewer
EventHandler Sub Open() me.LoadURL "http://www.macnews.de" End EventHandler
End Control
Control HTMLViewer3 Inherits HTMLViewer
ControlInstance HTMLViewer3 Inherits HTMLViewer
EventHandler Sub Open() me.LoadURL "http://www.mactechnews.de" End EventHandler
End Control
EventHandler Sub Open() HTMLViewer1.visibleMBS=true HTMLViewer2.visibleMBS=false HTMLViewer3.visibleMBS=false 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 FileMaker Plugins