BIS fnc initListNBoxSorting: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (fixed some typos)
Line 11: Line 11:
* '''controlFilter'''
* '''controlFilter'''
** x, y, w and h define where the buttons for sorting are created
** x, y, w and h define where the buttons for sorting are created
** It should be placed above the <tt>controlFilter</tt>
** It should be placed above the <tt>controlContent</tt>
** The amount of columns and their size should be identical with the onces of <tt>controlFilter</tt>.
** The amount of columns and their size should be identical with the ones of <tt>controlContent</tt>.
** The text set in the columns is displayed as text for the buttons (The buttons are transparent actually). Icons which indicate how the list is currently sorted are also adjusted when the button is pressed.
** The text set in the columns is displayed as text for the buttons (The buttons are transparent actually). Icons which indicate how the list is currently sorted are also adjusted when the button is pressed.
** If a column of <tt>controlContent</tt> is supposed to be sorted by '''value''' instead of '''data''' (default), then something needs to be set in the data of corresponding <tt>controlFilter</tt> column
** If a column of <tt>controlContent</tt> is supposed to be sorted by '''value''' instead of '''data''' (default), then something needs to be set in the data of corresponding <tt>controlFilter</tt> column

Revision as of 01:23, 6 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
GUI

Syntax

Syntax:
Syntax needed
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:
Return value needed

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