I can't seem to get this to work:
B4J code
The error message is "too many parameters"
If I remove the "LEFT" I get "missing parameter"
How do you apply the alignment parameter?
The docs say:
B4J code
B4X:
mycanvas.DrawText("hello",10,10,fx.DefaultFont,fx.Colors.Blue,"LEFT")
The error message is "too many parameters"
If I remove the "LEFT" I get "missing parameter"
How do you apply the alignment parameter?
The docs say:
DrawText (Text As String, x As Double, y As Double, Font As javafx.scene.text.Font, Paint As javafx.scene.paint.Paint, Alignment As javafx.scene.text.TextAlignment)
Draws the text.
Text - The text that will be drawn.
x - The origin X coordinate.
y - The origin Y coordinate.
Font - The text font.
Paint - Drawing color.
TextAlignment - Sets the alignment relative to the origin. One of the following values: LEFT, CENTER, RIGHT.
Last edited: