lbSortByValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (<pre> to <code> + "see also")
Line 8: Line 8:


| Sorts the Listbox Entries by their assigned Values.
| Sorts the Listbox Entries by their assigned Values.
 
<br>
The Entries getting listed by their Negativity (most negative Value on Top).
The Entries getting listed by their Negativity (most negative Value on Top).
 
<br>
Also note that this Command will mix up the Entries randomly if multiple Entries have the same Value. |= Description
Also note that this Command will mix up the Entries randomly if multiple Entries have the same Value. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 19: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>lbSortByValue _control</code>|= Example 1
|x1= <code>[[lbSortByValue]] _control;</code>|= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[lbSetValue]], [[lbValue]], [[lbSort]] |= See also
| [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbText]], [[lbValue]] |= See also


}}
}}

Revision as of 03:35, 11 April 2014

-wrong parameter ("Arma") defined!-1.08
Hover & click on the images for description

Description

Description:
Sorts the Listbox Entries by their assigned Values.
The Entries getting listed by their Negativity (most negative Value on Top).
Also note that this Command will mix up the Entries randomly if multiple Entries have the same Value.
Groups:
Uncategorised

Syntax

Syntax:
lbSortByValue control
Parameters:
control: Given Control
Return Value:
Nothing

Examples

Example 1:
lbSortByValue _control;

Additional Information

See also:
lbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortlbTextlbValue

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

January 1st, 2011 - 22:54
Roehre
A good way to avoid that this Command will mix your Listbox up is, to assign your Value summed up with the Index ID returned by lbAdd to your Listbox Entries.

Bottom Section