Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Dim frm2 As Form
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1") 'Load the layout file.
MainForm.Show
frm2.Initialize("frm2", 300, 300)
frm2.Show
End Sub
Sub frm2_CloseRequest (EventData As Event)
Log("request")
EventData.Consume
End Sub