lbIsSelected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 8: Line 7:
|gr1= GUI Control - ListBox |GROUP1=
|gr1= GUI Control - ListBox |GROUP1=


____________________________________________________________________________________________


| Checks whether or not given row of the given listbox is selected. |DESCRIPTION=
| Checks whether or not given row of the given listbox is selected. |DESCRIPTION=
____________________________________________________________________________________________


| control '''lbIsSelected''' index |SYNTAX=
| control '''lbIsSelected''' index |SYNTAX=
Line 20: Line 17:


| [[Boolean]] |RETURNVALUE=
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_selected = _control [[lbIsSelected]] 0;</code> |EXAMPLE1=
|x1= <code>_selected = _control [[lbIsSelected]] 0;</code> |EXAMPLE1=
____________________________________________________________________________________________


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

Revision as of 02:58, 17 January 2021

Hover & click on the images for description

Description

Description:
Checks whether or not given row of the given listbox is selected.
Groups:
GUI Control - ListBox

Syntax

Syntax:
control lbIsSelected index
Parameters:
control: Control
index: Number
Return Value:
Boolean

Examples

Example 1:
_selected = _control lbIsSelected 0;

Additional Information

See also:
lbAddlbClearlbColorlbCurSellbDatalbDeletelbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortlbSortByValuelbTextlbValue

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

Posted: Sep 10 2014
ffur2007slx2_5
More information on the LB command family can be found here

Bottom Section