junglejet Active Member Licensed User Longtime User May 22, 2012 #1 I need to position a string on a canvas. The end of the string needs to be positioned relative to a mark on the screen. My conservative thinking would be that I need to determine the width of the string and then draw the string to the left of the mark at x position "mark-width". So I would need to determine the width of the string, a function I cannot find. Or is there any other method that makes things easier?
I need to position a string on a canvas. The end of the string needs to be positioned relative to a mark on the screen. My conservative thinking would be that I need to determine the width of the string and then draw the string to the left of the mark at x position "mark-width". So I would need to determine the width of the string, a function I cannot find. Or is there any other method that makes things easier?
Erel B4X founder Staff member Licensed User Longtime User May 22, 2012 #2 Or is there any other method that makes things easier? Click to expand... Yes. You should pass "RIGHT" as the align value. The text will end at the specific origin. Upvote 0
Or is there any other method that makes things easier? Click to expand... Yes. You should pass "RIGHT" as the align value. The text will end at the specific origin.
H hdtvirl Active Member Licensed User Longtime User May 22, 2012 #3 Canvas.MeasureStringWidth(.....) Look it up in the beginner guide. I hope this helps. Regards BOB Upvote 0
junglejet Active Member Licensed User Longtime User May 22, 2012 #4 Ooops... :sign0013: Thanks for that Upvote 0