Links
EControl Syntax Editor SDK
TCustomSyntaxMemo.LinesPosToLogX Method

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.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!