I need to be able to use a function like “textwidth” from VB, can we do this without using styled text?
You will need a graphics object.
Dim g As graphics
dim wdt As integer = g.StringWidth(myText)
Larry I posted my routine in this forum. Maybe you can find it by searching for my name or the word align.
Henry
[quote=20989:@Henry F Gibson]Larry I posted my routine in this forum. Maybe you can find it by searching for my name or the word align.
Henry[/quote]
He don’t need to use search to find it.
Just mouse click on your name and select activities. Then all your post are shown.
I guess this your are talking about: https://forum.xojo.com/2982-printing-text-aligned-to-right/p1#p20308
John, thanks for the tip.
Henry