function GetPrintable(font as Object, str as String, width as Integer) as String
for i = 1 to Len(str)
ss = str.Left(i)
if font.GetOneLineWidth(ss, 99999) > width then return str.Left(i-1)
end for
return str
end function
"idunno" wrote:
Please explain the font variable to me, for example where do I get it from?