#Region Project Attributes
#MainFormWidth: 1000
#MainFormHeight: 800
#End Region
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private TabPane1 As TabPane
Private WebView1 As WebView
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("MainLayout") 'Load the layout file.
MainForm.Show
WebView1.Initialize("WebView1")
TabPane1.LoadLayout("EmptyLayout", "NewTab1")
TabPane1.LoadLayout("EmptyLayout", "NewTab2")
TabPane1.LoadLayout("EmptyLayout", "NewTab3")
End Sub
Sub TabPane1_TabChanged (SelectedTab As TabPage)
SelectedTab.Content.RemoveAllNodes
SelectedTab.Content.AddNode(WebView1, 0, 0, -1, -1)
WebView1.LoadHtml(SelectedTab.Text)
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub