ctrlTextSelection: Difference between revisions
BrettMayson (talk | contribs) mNo edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 13: | Line 13: | ||
|p1= control: [[Control]] | |p1= control: [[Control]] | ||
|r1= [[Array]] with [start, length, selectedText] | |r1= [[Array]] with [start, length, selectedText] | ||
* start: [[Number]] - position in text selection started | * start: [[Number]] - position in text selection started | ||
* length: [[Number]] - number of the highlighted characters (this number could be negative, see description) | * length: [[Number]] - number of the highlighted characters (this number could be negative, see description) | ||
Latest revision as of 10:02, 2 January 2026
Description
- Description:
- Returns edit control text selection in format [start, length, selectedText].
- Groups:
- GUI Control
Syntax
- Syntax:
- ctrlTextSelection control
- Parameters:
- control: Control
- Return Value:
- Array with [start, length, selectedText]
Examples
- Example 1:
- Selection is made from left to right:
ctrlTextSelection _control; //[0, 11, "Hello World"];
- Example 2:
- Selection is made from right to left:
ctrlTextSelection _control; //[11, -11, "Hello World"];
- Example 3:
- Find cursor position:
Additional Information
- See also:
- ctrlSetTextSelection
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note