Important: The information in this document is obsolete and should not be used for new development.
TEGetOffset
TheTEGetOffsetfunction finds the byte offset of a character in an edit record's text that corresponds to the specified point.
FUNCTION TEGetOffset (pt: Point; hTE: TEHandle): Integer;
pt- A point in the displayed text of the specified edit record.
hTE- A handle to the edit record containing the text.
DESCRIPTION
TheTEGetOffsetfunction works for both monostyled and multistyled edit
records. TheTEGetOffsetfunction returns the byte offset of the first byte for a
2-byte character.