tvSortByValue: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" 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. Value of [[CT_TREE|Tree View]] entries is used for sorting. | | Sorts all children of given path. Value of [[CT_TREE|Tree View]] entries is used for sorting. | ||
| control [[tvSortByValue]] [path, reversed] | | control [[tvSortByValue]] [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 =[[tvSortByValue]] [idc, path, reversed] | | s2 =[[tvSortByValue]] [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 [[tvSortByValue]] [<nowiki/>[0], [[false]]];</code> | |x1= <code>control [[tvSortByValue]] [<nowiki/>[0], [[false]]];</code> | ||
|x2= <code>[[tvSortByValue]] [102, [0], [[false]]];</code> | |x2= <code>[[tvSortByValue]] [102, [0], [[false]]];</code> | ||
| [[tvSortAll]] [[tvSort]] [[tvSortByValueAll]] | | [[tvSortAll]] [[tvSort]] [[tvSortByValueAll]] | ||
}} | }} | ||
Revision as of 11:24, 18 January 2021
Description
- Description:
- Sorts all children of given path. Value of Tree View entries is used for sorting.
- Groups:
- GUI Control - Tree View
Syntax
- Syntax:
- control tvSortByValue [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:
- tvSortByValue [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
- Example 1:
control tvSortByValue [[0], false];
- Example 2:
tvSortByValue [102, [0], false];
Additional Information
- See also:
- tvSortAll tvSort 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