tvSort: Difference between revisions
Jump to navigation
Jump to search
m (formatted example) |
Killzone Kid (talk | contribs) (format alt syntax) |
||
Line 16: | Line 16: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | control [[tvSort]] [path, reversed] |= Syntax | ||
| p1= | | p1= control: [[Control]] |= PARAMETER1 | ||
| p2= | | p2= [path, reversed]: [[Array]] |= PARAMETER2 | ||
| p3= path: [[Array]] - [[Tree View Path]] of the parent item to sort |= PARAMETER2 | |||
| p4= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it |= PARAMETER2 | |||
| [[Nothing]] |= RETURNVALUE | | [[Nothing]] |= RETURNVALUE | ||
|s2 =[[tvSort]] [idc, path, reversed] |= Syntax | |||
|x1= <code> | | p21= [idc, path, reversed]: [[Array]] |= PARAMETER2 | ||
| p22= idc: [[Number]] - control idc |= PARAMETER2 | |||
| p23= path: [[Array]] - [[Tree View Path]] of the parent item to sort |= PARAMETER2 | |||
| p24= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it |= PARAMETER2 | |||
|r2= [[Nothing]] |= RETURNVALUE | |||
|x1= <code>control [[tvSort]] <nowiki>[</nowiki>[0], [[false]]];</code> |= Example 1 | |||
|x2= <code>[[tvSort]] [102, [0], [[false]]];</code> |= Example 1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSetValue | | [[lbSort]], [[lnbSort]], [[tvSortByValue]], [[lbSortByValue]], [[lnbSortByValue]], [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSetValue]], [[tvText]], [[tvValue]] |= See Also | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR | ||
Line 36: | Line 47: | ||
<h3 style='display:none'>Notes</h3> | <h3 style='display:none'>Notes</h3> | ||
<dl class='command_description'> | <dl class='command_description'> | ||
</dl> | </dl> | ||
Revision as of 13:01, 27 January 2017
Description
- Description:
- Sorts childrens of given item by item name (tvText). IDC means id of parent Tree View.
Param reversed is optional. - Groups:
- Uncategorised
Syntax
- Syntax:
- control tvSort [path, reversed]
- Parameters:
- control: Control
- [path, reversed]: Array
- path: Array - Tree View Path of the parent item to sort
- reversed (Optional): Boolean - true to reverse sort it
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- tvSort [idc, path, reversed]
- Parameters:
- [idc, path, reversed]: Array
- idc: Number - control idc
- path: Array - Tree View Path of the parent item to sort
- reversed (Optional): Boolean - true to reverse sort it
- Return Value:
- Nothing
Examples
Additional Information
- See also:
- lbSortlnbSorttvSortByValuelbSortByValuelnbSortByValuetvAddtvCleartvCollapsetvCounttvCurSeltvDatatvDeletetvExpandtvPicturetvSetCurSeltvSetDatatvSetPicturetvSetValuetvTexttvValue
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