D Deleted member 103 Guest Dec 22, 2010 #1 this works: Canvas1.DrawText("This is a nice sentence.", 200dip, 200dip, Typeface.DEFAULT_BOLD, 30, Colors.Blue, "LEFT") Click to expand... that does not work Canvas1.DrawText("This is a nice sentence.", 200dip, 200dip, Typeface.DEFAULT_BOLD, 30, Colors.Blue, "RIGHT") Click to expand... Can it be?
this works: Canvas1.DrawText("This is a nice sentence.", 200dip, 200dip, Typeface.DEFAULT_BOLD, 30, Colors.Blue, "LEFT") Click to expand... that does not work Canvas1.DrawText("This is a nice sentence.", 200dip, 200dip, Typeface.DEFAULT_BOLD, 30, Colors.Blue, "RIGHT") Click to expand... Can it be?
Erel B4X founder Staff member Licensed User Longtime User Dec 22, 2010 #2 The alignment here is related to the origin point. LEFT means that the origin point is left to the text. RIGHT means that the origin point is right to the text: The origin point is marked with a red circle. Upvote 0
The alignment here is related to the origin point. LEFT means that the origin point is left to the text. RIGHT means that the origin point is right to the text: The origin point is marked with a red circle.
C colin9876 Active Member Licensed User Dec 23, 2010 #4 Thats reminds me the example of the Drawtext which comes up in the box when you type .Drawtext is wrong. It has an extra parameter in it at the end. It confused me for a while as I tried it with the exact fields as shown in the example which has (...,"LEFT",5) and its says too many parameters. The last number is not required. Maybe Erel is already aware of this but just mentioning it as worth fixing the next release. Upvote 0
Thats reminds me the example of the Drawtext which comes up in the box when you type .Drawtext is wrong. It has an extra parameter in it at the end. It confused me for a while as I tried it with the exact fields as shown in the example which has (...,"LEFT",5) and its says too many parameters. The last number is not required. Maybe Erel is already aware of this but just mentioning it as worth fixing the next release.
Erel B4X founder Staff member Licensed User Longtime User Dec 23, 2010 #5 Thanks. It is fixed. Upvote 0