Difference between revisions of "GuiMemoSetCaretIndex"

From Multi Theft Auto: Wiki
(New page: __NOTOC__ {{Client function}} This function sets the current position of the caret (the text cursor) within the memo. ==Syntax== <syntaxhighlight lang="lua"> bool guiMemoSetCaretIndex ( gui-memo theMe...)
 
Line 10: Line 10:
 
===Required Arguments===  
 
===Required Arguments===  
 
*'''theMemo:''' The memo edit box where the caret position is to be changed.
 
*'''theMemo:''' The memo edit box where the caret position is to be changed.
*'''index:''' An integer referring to the desired position within the box.
+
*'''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===

Revision as of 12:19, 4 December 2010

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

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows