From Bohemia Interactive Community
Jump to navigation
Jump to search
Hover & click on the images for description
Description
- Description:
- Selects length characters of edit control from the start position and places cursor at the end of selection.
ⓘ
To only move the cursor, set
length to 0. To select text from right to left, use negative
length (See
ctrlTextSelection for more info)
- Groups:
- GUI Control
Syntax
- Syntax:
- control ctrlSetTextSelection [start, length]
- Parameters:
- control: Control
- start: Number - selection start position
- length: Number - length of characters to select (0 to only move the cursor). Negative length will select text from right to left (see example 3)
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- Example 3:
- Select text from right to left:
Additional Information
- See also:
- ctrlTextSelection ctrlSetText
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note