Calculates logical position from the position in line.
function LinesPosToLogX(const S: ecString; XPos: integer): integer;
Expands tabs in string S. Result may be greater or equal to XPos position. If there are no tabs in string S, Result will be equal to XPos.
Result (logical X coordinate) is equal to position in line with expanded tab characters.