> >nWidth = GetTextWidth( 'Testing', 'Arial', 12, '' ) > >Function GetTextWidth( tc_Text, tc_FontName, tn_FontSize, tc_FontStyle ) > Return ( TxtWidth( tc_Text, tc_FontName, tn_FontSize, tc_FontStyle ) * ; > FontMetric( 6, tc_FontName, tn_FontSize, tc_FontStyle ) ) >EndFunc >Thanks for the code. I'll give it a try today itself.