B4A Library Circle Check Box

A wrap for this Github project - with a nice animation...



#Region  Project Attributes
    #ApplicationLabel: CircleCheckBox
    #VersionCode: 1
    '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:
    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

Github: arlindiDev, Wrapped by: Johan Schoeman
Version: 1
  • CircleCheckBox
    • check_changed (status As Boolean)
    • ba As BA
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • Initialize (EventName As String)
    • Invalidate
    • Invalidate2 (arg0 As Rect)
    • Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • IsInitialized As Boolean
    • RemoveView
    • RequestFocus As Boolean
    • SendToBack
    • SetBackgroundImage (arg0 As Bitmap)
    • SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
    • SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
    • SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
    • Background As Drawable
    • BorderThickness As Float [write only]
    • Checked As Boolean [write only]
    • CircleBorderColor As Int [write only]
    • Color As Int [write only]
    • Enabled As Boolean
    • Height As Int
    • InnerCircleColor As Int [write only]
    • InnerCircleRadius As Float [write only]
    • Left As Int
    • OuterCircleColor As Int [write only]
    • OuterCircleRadius As Float [write only]
    • Parent As Object [read only]
    • ShowOuterCircle As Boolean [write only]
    • Tag As Object
    • Text As String [write only]
    • TextColor As Int [write only]
    • TextLeftPadding As Float [write only]
    • TextSize As Float [write only]
    • TickColor As Int [write only]
    • TickThickness As Float [write only]
    • Top As Int
    • Visible As Boolean
    • Width As Int


  • CircleCheckBoxLibFiles.zip
    12.5 KB · Views: 220
  • b4aCircleCheckBox.zip
    7.9 KB · Views: 193