I made a very simple sample program that demonstrates my problem. Basically you tap the 1st screen "login" button which initializes a panel and shows it. If you tap between the 2 buttons on the login screen (where the login button is on the 1st screen) something gets messed up. Doesnt fire any events, but messes up the program. I see that GC gets run when you tap between the 2 buttons, any ideas?
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
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.
Dim pnlLogin As Panel
Dim MainMenu_Button_Login As Button
Dim Login_Button_Accept As Button
Dim Login_Button_Cancel As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("LayoutMainMenu")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub MainMenu_Button_Login_Click
pnlLogin.Initialize("")
Activity.AddView(pnlLogin, 0, 0, 100%x, 100%y)
pnlLogin.LoadLayout("LayoutLogin")
End Sub
Sub Login_Button_Cancel_Click
pnlLogin.RemoveView
End Sub
Sub Login_Button_Accept_Click
pnlLogin.RemoveView
End Sub
:BangHead:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
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.
Dim pnlLogin As Panel
Dim MainMenu_Button_Login As Button
Dim Login_Button_Accept As Button
Dim Login_Button_Cancel As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("LayoutMainMenu")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub MainMenu_Button_Login_Click
pnlLogin.Initialize("")
Activity.AddView(pnlLogin, 0, 0, 100%x, 100%y)
pnlLogin.LoadLayout("LayoutLogin")
End Sub
Sub Login_Button_Cancel_Click
pnlLogin.RemoveView
End Sub
Sub Login_Button_Accept_Click
pnlLogin.RemoveView
End Sub
:BangHead:
Attachments
Last edited: