Sub Process_Globals
Private fx As JFX
Private MainForm As Form
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1") 'Load the layout file.
MainForm.Show
End Sub
Sub b_Action
Dim b As Button = Sender
b.SetLayoutAnimated(600, 10, 300, b.Width, b.Height)
Sleep(600)
b.SetLayoutAnimated(400, 300, 300, b.Width, b.Height)
Sleep(400)
b.SetLayoutAnimated(200, 300, 10, b.Width, b.Height)
Sleep(200)
b.SetLayoutAnimated(100, 10, 10, b.Width, b.Height)
End Sub