GuiMemoSetCaretIndex

From Multi Theft Auto: Wiki

Jump to: navigation, search

This function sets the current position of the caret (the text cursor) within the memo.

Syntax

bool guiMemoSetCaretIndex ( gui-memo theMemo, int index )

Required Arguments

  • theMemo: The memo edit box where the caret position is to be changed.
  • index: An integer referring to the desired character position within the box. 0 would be before the first character in the box, 1 before the second, etc.

Returns

Returns true if the caret was successfully moved, false otherwise.

Example

-- TODO


See Also

Buttons

Checkboxes

Comboboxes

Edit fields


Gridlists

Memos

  • guiMemoSetCaretIndex


Progress bars

Radio buttons

Scrollbars

Scroll panes

Static images

Tab panels

Tabs

Text labels

Windows