lnbPicture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
m (Text replacement - "\] +\[" to "] [")
 
(66 intermediate revisions by 4 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 |= Arguments in MP
|game3= tkoh
|version3= 1.00


|eff= local |= Effects in MP
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


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


| '''lnbPicture''' [IDC, [row, column]] |= Syntax
|eff= local
|p1= [IDC, [row, column]]: [[Array]] |= PARAMETER1
|p2= IDC: [[Number]] - Number of [[Control]] |= PARAMETER2
|p3= row: [[Number]] - Index of Row |= PARAMETER3
|p4= column: [[Number]] - Index of Column |= PARAMETER4
| [[String]] |= RETURNVALUE


|s2= control '''lnbPicture''' [row, column] |= Syntax
|gr1= GUI Control - ListNBox
|p21= Control: [[Control]] |= PARAMETER1
|p22= [row, column]: [[Array]] |= PARAMETER2
|p23= row: [[Number]] - Index of Row in given Control |= PARAMETER3
|p24= column: [[Number]] - Index of Column in given Control |= PARAMETER4
|r2= [[String]] |= RETURNVALUE


|descr= Returns the picture name or path of the item with the given position of the 2D listbox.


|x1= <code>[[lnbPicture]] [200, [1, 1]];</code>|= Example 1
|s1= [[lnbPicture]] [idc, [row, column]]


|x2= <code>_control [[lnbPicture]] [1, 1]; //"a3\ui_f\data\gui\cfg\ranks\corporal_gs.paa"</code>|= Example 2
|p1= idc: [[Number]] - number of [[Control]]
____________________________________________________________________________________________


| [[lnbAddArray]], [[lnbAddColumn]], [[lnbAddRow]], [[lnbClear]], [[lnbColor]], [[lnbCurSelRow]], [[lnbData]], [[lnbDeleteColumn]], [[lnbDeleteRow]], [[lnbGetColumnsPosition]], [[lnbSetColor]], [[lnbSetColumnsPos]], [[lnbSetCurSelRow]], [[lnbSetData]], [[lnbSetPicture]], [[lnbSetText]], [[lnbSetValue]], [[lnbSize]], [[lnbText]], [[lnbValue]] |= SEEALSO
|p2= row: [[Number]] - index of Row


| |= MPBEHAVIOUR
|p3= column: [[Number]] - index of Column
____________________________________________________________________________________________
 
}}
|r1= [[String]]
 
|s2= control [[lnbPicture]] [row, column]
 
|p21= control: [[Control]]
 
|p22= row: [[Number]] - index of Row in given Control
 
|p23= column: [[Number]] - index of Column in given Control
 
|r2= [[String]]
 
|x1= <sqf>lnbPicture [200, [1, 1]];</sqf>


<h3 style='display:none'>Notes</h3>
|x2= <sqf>_control lnbPicture [1, 1]; // "a3\ui_f\data\gui\cfg\ranks\corporal_gs.paa"</sqf>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[lnbAddArray]] [[lnbAddColumn]] [[lnbAddRow]] [[lnbClear]] [[lnbColor]] [[lnbCurSelRow]] [[lnbData]] [[lnbDeleteColumn]] [[lnbDeleteRow]] [[lnbGetColumnsPosition]] [[lnbSetColor]] [[lnbSetColumnsPos]] [[lnbSetCurSelRow]] [[lnbSetData]] [[lnbSetPicture]] [[lnbSetText]] [[lnbSetValue]] [[lnbSize]] [[lnbText]] [[lnbValue]]
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:46, 5 May 2024

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