ctrlSetTextSelection: Difference between revisions
Jump to navigation
Jump to search
(Page creation - WIP!) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|Selects 'length' characters of control | |Selects 'length' characters of edit control from the 'start' position and places cursor on the 'start' position. To move cursor only, set 'length' to 0. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 15: | Line 15: | ||
|p2= [start, length]: [[Array]] |PARAMETER2= | |p2= [start, length]: [[Array]] |PARAMETER2= | ||
|p3= start: [[Number]] - cursor start position|PARAMETER3= | |||
|p4= length: [[Number]] - length of characters to select (0 to only move the cursor) |PARAMETER4= | |||
| Nothing |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 13:16, 17 April 2020
Description
- Description:
- Selects 'length' characters of edit control from the 'start' position and places cursor on the 'start' position. To move cursor only, set 'length' to 0.
- Groups:
- Uncategorised
Syntax
- Syntax:
- control ctrlSetTextSelection [start, length]
- Parameters:
- control: Control
- [start, length]: Array
- start: Number - cursor start position
- length: Number - length of characters to select (0 to only move the cursor)
- Return Value:
- Nothing
Examples
- Example 1:
_control ctrlSetTextSelection [5, 10]
Additional Information
- See also:
- ctrlTextSelection
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
[[Category:Introduced with arma3dev version 1.99]][[ Category: arma3dev: New Scripting Commands | CTRLSETTEXTSELECTION]][[ Category: arma3dev: Scripting Commands | CTRLSETTEXTSELECTION]]