Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim TheMenu As LMenu
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
TheMenu.Initialize(Me,"TheMenu")
TheMenu.ButtonAdd2("Reports",1,1,Colors.Magenta)
TheMenu.ButtonAdd("Contacts",2,1,Colors.Gray,File.DirAssets,"address_book.png","button-cross-red-48.png")
TheMenu.ButtonAdd("Messages",3,2,Colors.Gray,File.DirAssets,"balloon-red-48.png","")
TheMenu.BackGroundMenu=Colors.Transparent
TheMenu.LabelButtonTextBackColor=Colors.Yellow
TheMenu.LabelButtonTextColor=Colors.Black
TheMenu.MaxHorizontalButtons=4
TheMenu.CreateMenu(Activity,0,40,480,400,2,3,False)
TheMenu.ButtonsClickAnimation(True)
End Sub
Sub TheMenu_ButtonClick
Msgbox(TheMenu.ButtonGetTitle(TheMenu.ButtonSelected),"")
End Sub