Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
Dim ta As TextArea
Dim cm As ContextMenu
ta.Initialize("ta")
cm.Initialize("")
Dim mi As MenuItem
mi.Initialize("open","open")
cm.MenuItems.Add(mi)
mi.Initialize("close","close")
cm.MenuItems.Add(mi)
ta.ContextMenu = cm
MainForm.RootPane.AddNode(ta,10,10,200,200)
End Sub
Sub open_Action
Log("open clicked")
End Sub
Sub close_Action
Log("close clicked")
End Sub