BIS fnc initListNBoxSorting: Difference between revisions
Jump to navigation
Jump to search
m (typo) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= GUI |GROUP1= | |gr1= GUI |GROUP1= | ||
| Automatically creates buttons and sets them up so they can be used to sort a [[CT_LISTNBOX]]. The buttons will automatically be resized to the column width of given <tt>controlFilter</tt>. | | Automatically creates buttons and sets them up so they can be used to sort a [[CT_LISTNBOX]]. The buttons will automatically be resized to the column width of given <tt>controlFilter</tt>. | ||
Line 21: | Line 19: | ||
[[Image:A3_BIS_fnc_initListNBoxSorting_example.jpg|400px|thumb|center|Example GUI using this function]] | [[Image:A3_BIS_fnc_initListNBoxSorting_example.jpg|400px|thumb|center|Example GUI using this function]] | ||
|Description= | |Description= | ||
| [controlFilter, controlContent, columnIndexes, idc] call [[BIS_fnc_initListNBoxSorting]] |Syntax= | | [controlFilter, controlContent, columnIndexes, idc] call [[BIS_fnc_initListNBoxSorting]] |Syntax= | ||
Line 34: | Line 31: | ||
| [[Boolean]] - [[true]] on success, otherwise [[false]] |Return value= | | [[Boolean]] - [[true]] on success, otherwise [[false]] |Return value= | ||
|x1= <code>[_lnbFilter, _lnbContent, [0,1,2,3]] [[call]] [[BIS_fnc_initListNBoxSorting]];</code> |Example 1= | |x1= <code>[_lnbFilter, _lnbContent, [0,1,2,3]] [[call]] [[BIS_fnc_initListNBoxSorting]];</code> |Example 1= | ||
| [[BIS_fnc_initSliderValue]] |See also= | | [[BIS_fnc_initSliderValue]] |See also= |
Revision as of 23:30, 16 January 2021
Description
- Description:
- Automatically creates buttons and sets them up so they can be used to sort a CT_LISTNBOX. The buttons will automatically be resized to the column width of given controlFilter.
- Execution:
- call
- Groups:
- GUI
Syntax
- Syntax:
- [controlFilter, controlContent, columnIndexes, idc] call BIS_fnc_initListNBoxSorting
- Parameters:
- controlFilter: Control - Dummy CT_LISTNBOX control used for setting up the filter. If parameter is controlNull function will show an error message.
- controlContent: Control - The CT_LISTNBOX which actually contains the content. If parameter is controlNull function will show an error message.
- columnIndexes: Array - Array of numbers. These are the indexes of the controlContent which should be filterable/sortable
- idc: Number - (Optional, default 200) Will be used to assign idcs to the buttons which are automatically created. First button has idc, second button idc + 1 and so on
- Return Value:
- Boolean - true on success, otherwise false
Examples
- Example 1:
[_lnbFilter, _lnbContent, [0,1,2,3]] call BIS_fnc_initListNBoxSorting;
Additional Information
- See also:
- BIS_fnc_initSliderValue
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