lnbPicture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2")
 
(47 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
|version2= 1.50


|arg= local |Multiplayer Arguments=
|game3= tkoh
|version3= 1.00


|eff= local |Multiplayer Effects=
|game4= arma3
|version4= 0.50


|gr1= GUI Control - ListNBox |GROUP1=
|arg= local
____________________________________________________________________________________________


| Returns the picture name or path of the item with the given position of the 2D listbox. |DESCRIPTION=
|eff= local
____________________________________________________________________________________________


| '''lnbPicture''' [idc, [row, column]] |SYNTAX=
|gr1= GUI Control - ListNBox


|p1= idc: [[Number]] - Number of [[Control]] |PARAMETER1=
|descr= Returns the picture name or path of the item with the given position of the 2D listbox.


|p2= row: [[Number]] - Index of Row |PARAMETER2=
|s1= [[lnbPicture]] [idc, [row, column]]


|p3= column: [[Number]] - Index of Column |PARAMETER3=
|p1= idc: [[Number]] - number of [[Control]]


| [[String]] |RETURNVALUE=
|p2= row: [[Number]] - index of Row


|s2= control '''lnbPicture''' [row, column] |SYNTAX2=
|p3= column: [[Number]] - index of Column


|p21= Control: [[Control]] |PARAMETER21=
|r1= [[String]]


|p22= row: [[Number]] - Index of Row in given Control |PARAMETER22=
|s2= control [[lnbPicture]] [row, column]


|p23= column: [[Number]] - Index of Column in given Control |PARAMETER23=
|p21= control: [[Control]]


|r2= [[String]] |RETURNVALUE2=
|p22= row: [[Number]] - index of Row in given Control


|x1= <code>[[lnbPicture]] [200, [1, 1]];</code> |EXAMPLE1=
|p23= column: [[Number]] - index of Column in given Control


|x2= <code>_control [[lnbPicture]] [1, 1]; {{cc|"a3\ui_f\data\gui\cfg\ranks\corporal_gs.paa"</code>}} |EXAMPLE2=
|r2= [[String]]
____________________________________________________________________________________________


| [[lnbAddArray]], [[lnbAddColumn]], [[lnbAddRow]], [[lnbClear]], [[lnbColor]], [[lnbCurSelRow]], [[lnbData]], [[lnbDeleteColumn]], [[lnbDeleteRow]], [[lnbGetColumnsPosition]], [[lnbSetColor]], [[lnbSetColumnsPos]], [[lnbSetCurSelRow]], [[lnbSetData]], [[lnbSetPicture]], [[lnbSetText]], [[lnbSetValue]], [[lnbSize]], [[lnbText]], [[lnbValue]] |SEEALSO=
|x1= <sqf>lnbPicture [200, [1, 1]];</sqf>


| |MPBEHAVIOUR=
|x2= <sqf>_control lnbPicture [1, 1]; // "a3\ui_f\data\gui\cfg\ranks\corporal_gs.paa"</sqf>
 
|seealso= [[lnbAddArray]] [[lnbAddColumn]] [[lnbAddRow]] [[lnbClear]] [[lnbColor]] [[lnbCurSelRow]] [[lnbData]] [[lnbDeleteColumn]] [[lnbDeleteRow]] [[lnbGetColumnsPosition]] [[lnbSetColor]] [[lnbSetColumnsPos]] [[lnbSetCurSelRow]] [[lnbSetData]] [[lnbSetPicture]] [[lnbSetText]] [[lnbSetValue]] [[lnbSize]] [[lnbText]] [[lnbValue]]
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:39, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns the picture name or path of the item with the given position of the 2D listbox.
Groups:
GUI Control - ListNBox

Syntax

Syntax:
lnbPicture [idc, [row, column]]
Parameters:
idc: Number - number of Control
row: Number - index of Row
column: Number - index of Column
Return Value:
String

Alternative Syntax

Syntax:
control lnbPicture [row, column]
Parameters:
control: Control
row: Number - index of Row in given Control
column: Number - index of Column in given Control
Return Value:
String

Examples

Example 1:
lnbPicture [200, [1, 1]];
Example 2:
_control lnbPicture [1, 1]; // "a3\ui_f\data\gui\cfg\ranks\corporal_gs.paa"

Additional Information

See also:
lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbText lnbValue

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