TextWidthEx(win, s, i, j, tw)

Package :
gui
Type :
procedure

Extended TextWidth function, handling tabs in s. Returns the width of the string from positions i through j.

Source