Android Question Beta B4A3 DrawText problem

klaus

Expert
Licensed User
Longtime User
In the attached project fron the User's Guide the program stops at this line:
B4X:
cvsGraph.DrawText(CurveName(i) & " " & CurveUnit(i), x0, y0, Typeface.DEFAULT, CurveTextSize, CurveLineColor(i), CurveGravity(i))
The problem is the CurveGravity(i) variable declared as a String.
With this line it works.
B4X:
cvsGraph.DrawText(CurveName(i) & " " & CurveUnit(i), x0, y0, Typeface.DEFAULT, CurveTextSize, CurveLineColor(i), "LEFT")
Project attached.

Best regards.
 

Attachments

  • Graph1.zip
    8 KB · Views: 228
Top