tvSetCurSel: Difference between revisions
Jump to navigation
Jump to search
m (al & el) |
(syntax & example) |
||
Line 14: | Line 14: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[tvSetCurSel]] [idc, [path]] |= Syntax | ||
|p1= [idc, [path]]: [[Array]] |= PARAMETER1 | |p1= [idc, [path]]: [[Array]] |= PARAMETER1 | ||
Line 23: | Line 23: | ||
| [[Nothing]] |= RETURNVALUE | | [[Nothing]] |= RETURNVALUE | ||
____________________________________________________________________________________________ | |||
| s2= _ctrl [[tvSetCurSel]] [path] |= Syntax | |||
| p21= _ctrl: [[Control]] |= PARAMETER1 | |||
| p22= [path]: [[Array]] of [[Number]] |= PARAMETER2 | |||
| r2= [[Nothing]] |= RETURNVALUE | |||
____________________________________________________________________________________________ | |||
|x1= <code>[[tvSetCurSel]] [101, [0]];</code> |= Example 1 | |x1= <code>[[tvSetCurSel]] [101, [0]];</code> |= Example 1 | ||
|x2= <code>_ctrl [[tvSetCurSel]] [0,0,0];</code> |= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 08:40, 11 September 2014
Description
- Description:
- Sets cursor to given item on given path. IDC means id of parent Tree View.
- Groups:
- Uncategorised
Syntax
- Syntax:
- tvSetCurSel [idc, [path]]
- Parameters:
- [idc, [path]]: Array
- idc: Number
- [path]: Array - Array containing numbers.
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- _ctrl tvSetCurSel [path]
- Parameters:
- _ctrl: Control
- [path]: Array of Number
- Return Value:
- Nothing
Examples
- Example 1:
tvSetCurSel [101, [0]];
- Example 2:
_ctrl tvSetCurSel [0,0,0];
Additional Information
- See also:
- tvAddtvCleartvCollapsetvCounttvCurSeltvDatatvDeletetvExpandtvPicturetvSetDatatvSetPicturetvSetValuetvSorttvSortByValuetvTexttvValue
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