#Region Project Attributes
#ApplicationLabel: CollapseCalendarView
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
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.
Private ccv1 As CollapseCalendarView
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("main")
ccv1.Initialize("ccv1", 2, 1)
Activity.AddView(ccv1, 2%x, 5%y, 96%x, 70%y)
ccv1.DayNameColor = Colors.yellow
ccv1.DayNameTextSize = 15
ccv1.TitleTextColor = Colors.Green
ccv1.TitleTextSize = 20
End Sub
Sub Activity_Resume
Log("resume " & ccv1.SelectedDate)
' ccv1.minusMonths = 3 'use these two calls together to set the number of months forward/backwards from the present date
' ccv1.plusMonths = 3
' ccv1.minusYears = 1 'use these two calls together to set the number of years forward/backwards from the present date
' ccv1.plusYears = 2
'ccv1.setminusMonthsPlusYears(3,1) 'use this call to set the number of months backwards and the number of years forward from the present date
ccv1.setminusYearsPlusMonths(1, 5) 'use this call to set the number of years backwards and the number of months forward from the present date
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub ccv1_date_selected(mydate As String)
Log("mydate = " & mydate)
End Sub