Hi all
i have seen on code from Erel where following code is executed on B4J side to draw on a canvas
Sub cvs_MouseDragged (EventData As MouseEvent)
cvs.DrawCircle(EventData.X, EventData.Y, 30dip, fx.Colors.From32Bit(Rnd(0xFF000000, -1)), True, 0)
End Sub
Here as we see that MouseDragged sub is using MouseEvent to draw. However if i want to use the same sub in B4A, i am unable to find an event which i can use to draw. I am trying to create an app in which on dragging my finger on the screen i can draw on the screen.
i have seen on code from Erel where following code is executed on B4J side to draw on a canvas
Sub cvs_MouseDragged (EventData As MouseEvent)
cvs.DrawCircle(EventData.X, EventData.Y, 30dip, fx.Colors.From32Bit(Rnd(0xFF000000, -1)), True, 0)
End Sub
Here as we see that MouseDragged sub is using MouseEvent to draw. However if i want to use the same sub in B4A, i am unable to find an event which i can use to draw. I am trying to create an app in which on dragging my finger on the screen i can draw on the screen.