Hello,
I very enjoy trying B4A (looks much easier than Java) but here is a problem
I can't find any solution.
I am testing graphics with a drawcircle function...
This is just a test moving a filled circle, but it does not work.
Does anybody know why :
:sign0163:
Thanks a lot,
WW
I very enjoy trying B4A (looks much easier than Java) but here is a problem
I can't find any solution.
I am testing graphics with a drawcircle function...
This is just a test moving a filled circle, but it does not work.
Does anybody know why :
B4X:
'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 LAYER As Canvas
Dim TIMER1 As Timer
Dim x, y As Int
End Sub
Sub Activity_Create(FirstTime As Boolean)
LAYER.Initialize( activity)
If FirstTime Then
TIMER1.Initialize( "TIMER1", 100 )
TIMER1.Enabled = True
x = 0dip
y = 200dip
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub TIMER1_tick
If x < 300 Then
x = x + 2dip
End If
LAYER.DrawCircle( x, y, 20, Colors.red, True, 10dip )
End Sub
Thanks a lot,
WW