Garry's Mod Wiki

Panel:GetScrollStartIndexes

  number, number Panel:GetScrollStartIndexes()

Description

Returns the vertical and horizontal start indexes of a TextEntry's visible text. This is useful when the panel is scrolled.

Returns

1 number horizontalIndex
The horizontal start index. (characters)
2 number verticalIndex
The vertical start index. (lines)