In .js, the DrawLine() in TestWidget.OnPaint(context) works fine, but what is the syntax for DrawText()?
I’ve tried all of these below, but no text is drawn on the widget.
[FONT=courier new]PaintContext.C(context).DrawText(‘Test1’, {X:10, Y:10}, {R:1,A:1})
[FONT=courier new]PaintContext.C(context).DrawText(‘Test2’, {X:10, Y:30}, {R:1,A:1}, GEngine.SmallFont)
PaintContext.C(context).DrawTextFormatted(‘Test3’, {X:10, Y:50}, GEngine.SmallFont, {R:1,A:1})