#Region Project Attributes
#MainFormWidth: 437
#MainFormHeight: 239
#End Region
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private b As Button
Private l As Label
Private t As Timer
Private count As Int
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
l.Initialize("lab")
l.Text = "Start"
MainForm.RootPane.AddNode(l,20,20,200,20)
b.Initialize("avvi")
b.Text = "Avvia"
MainForm.RootPane.AddNode(b,20,100,80,20)
MainForm.Show
End Sub
Sub avvi_action
t.Initialize("tim",1)
t.Enabled = True
CallSubDelayed(Me,"conta")
End Sub
Sub conta
For count = 0 To 10000000000
Next
t.Enabled = False
End Sub
Sub tim_tick
l.Text = count
End Sub
[\code]