I was trying to create a dynamic line on Erel's Graph1 sample program using Panel_Touch and cvsGraph.Drawline. The cvsGraph.Drawline is getting fired, but no line is being drawn - that I can see. Do I need a more elegant solution or am I on the right track? Thanks, JD.
B4X:
Sub pnlGraph_Touch (Action As Int, X As Float, Y As Float)
If Action = pnlGraph.ACTION_DOWN Then
If fx0 = 0 AND fy0 = 0 Then
fx0 = X
fy0 = Y
Else
cvsGraph.DrawLine(fx0, fy0, X, Y, CurveLineColor(0), 1)
fx0 = 0
fy0 = 0
End If
End If