Would doing it this way mess up the layout already in the module main? I am just trying to have a menu pop up after pressing the menu button.
'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 Panel0, Panel1, Panel2, Panel3 As Panel
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("MenuPanels")
Activity.AddMenuItem("Help1","Help")
Activity.AddMenuItem("Help2","Help")
Activity.AddMenuItem("Help3","Help")
Panel1.Top = 0
Panel1.Left = 0
Panel2.Top = 0
Panel2.Left = 0
Panel3.Top = 0
Panel3.Left = 0
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Help_Click
Select Sender
Case "Help1"
Panel1.Visible=True
Case "Help2"
Panel2.Visible=True
Case "Help3"
Panel3.Visible=True
End Select
End Sub
Sub Button_Click
Dim Send As Button
Send = Sender
Select Send.Tag
Case "1"
Panel1.Visible=False
Case "2"
Panel2.Visible=False
Case "3"
Panel3.Visible=False
End Select
End Sub