#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#ExcludeFromLibrary: False
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private mCallback As TestClass
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private btnQuit As Button
Dim pnlDisplay As Panel
Private mNumber As Long
Private EditText1 As EditText
Private butQuit As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Log("actTestClass:Activity_Create")
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("frmTestClass")
pnlDisplay.Initialize("")
pnlDisplay.Color =Colors.White
pnlDisplay.Visible = True
'Activity.AddView(pnlDisplay,0,40%y,100%x,60%y)
Activity.AddView(pnlDisplay,20dip,400dip,50%x,50%y)
End Sub
Public Sub StartAct(Callback As TestClass)'
Log("actTestClass:StartAct")
mCallback = Callback
LoadItems
End Sub
Sub LoadItems
Log("actTestClass:LoadItems")
'Activity.Title = "Add Item: " & RoomName
Dim b As Boolean
mNumber = mCallback.ID
EditText1.Text = mNumber
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub butQuit_Click
Log("actTextClass:btnQuit")
CallSub2(mCallback,"Result",mNumber)
Activity.Finish
End Sub