Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("PC_app") 'Load the layout file.
MainForm.Show
Dim colpal As ColorPalette
colpal.Initialize(Me,"Main","mycol")
colpal.GetColor
End Sub
Sub mycol_Result(selectedcolor As Paint,success As Boolean)
Log($"mycol_Result(${selectedcolor}, ${success})"$)
End Sub