Garry's Mod Wiki

Garry's Mod Wiki

  number Panel:GetCaretPos()

Description

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

Returns

1 number
The caret position/offset from the start of the text. A value of 0 means the caret sits before the first character.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...