#Region Project Attributes
#ApplicationLabel: CircleCheckBox
#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 ccb1 As CircleCheckBox
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")
ccb1.BorderThickness = 5.0
ccb1.Checked = False
ccb1.TextColor = Colors.Red
ccb1.TextSize = 25.0
ccb1.Text = "Set the check box"
ccb1.TickColor = Colors.Red
ccb1.OuterCircleColor = Colors.Green
ccb1.InnerCircleColor = Colors.Blue
ccb1.CircleBorderColor = Colors.white
ccb1.InnerCircleRadius = 25.0
'ccb1.OuterCircleRadius = 40.0
ccb1.ShowOuterCircle = True
ccb1.TickThickness = 2.0
ccb1.TextLeftPadding = 2.0
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub ccb1_check_changed(status As Boolean)
Log("status = " & status)
End Sub