tvSort: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|0.74 | |0.74 | ||
|gr1= GUI Control - Tree View | |gr1= GUI Control - Tree View | ||
| Sorts all children of given path. Text of [[CT_TREE|Tree View]] entries is used for sorting. | | Sorts all children of given path. Text of [[CT_TREE|Tree View]] entries is used for sorting. | ||
| control [[tvSort]] [path, reversed] | | control [[tvSort]] [path, reversed] | ||
| p1= control: [[Control]] | | p1= control: [[Control]] | ||
| p2= [path, reversed]: [[Array]] | | p2= [path, reversed]: [[Array]] | ||
| p3= path: [[Array]] - [[Tree View Path]] of the parent item to sort | | p3= path: [[Array]] - [[Tree View Path]] of the parent item to sort | ||
| p4= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it. Default: [[false]] | | p4= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it. Default: [[false]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|s2 =[[tvSort]] [idc, path, reversed] | |s2 =[[tvSort]] [idc, path, reversed] | ||
|p21= [idc, path, reversed]: [[Array]] |PARAMETER21= | |p21= [idc, path, reversed]: [[Array]] |PARAMETER21= | ||
Line 31: | Line 31: | ||
| p24= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it. Default: [[false]] |PARAMETER24= | | p24= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it. Default: [[false]] |PARAMETER24= | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= <code>control [[tvSort]] [<nowiki/>[0], [[true]]];</code> | |x1= <code>control [[tvSort]] [<nowiki/>[0], [[true]]];</code> | ||
|x2= <code>[[tvSort]] [102, [0], [[true]]];</code> | |x2= <code>[[tvSort]] [102, [0], [[true]]];</code> | ||
| [[tvSortAll]] [[tvSortByValue]] [[tvSortByValueAll]] | | [[tvSortAll]] [[tvSortByValue]] [[tvSortByValueAll]] | ||
}} | }} | ||
Revision as of 11:25, 18 January 2021
Description
- Description:
- Sorts all children of given path. Text of Tree View entries is used for sorting.
- Groups:
- GUI Control - Tree View
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. Default: false
- 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. Default: false
- Return Value:
- Nothing
Examples
Additional Information
- See also:
- tvSortAll tvSortByValue tvSortByValueAll
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
Notes
Bottom Section