Garry's Mod Wiki

Panel:SetCaretPos

  Panel:SetCaretPos( number offset )

Description

Sets the position of the caret (or text cursor) in a text-based panel object.

Arguments

1 number offset
Caret position/offset from the start of text. A value of 0 places the caret before the first character.