lnbPicture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2")
(72 intermediate revisions by 8 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


| Returns the picture name of the item with the given position of the 2D listbox. |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''lnbPicture''' [idc, [row, column]] |= Syntax
|game4= arma3
|p1= [idc, [row, column]]: [[Array]] |= PARAMETER1
|version4= 0.50
|p2= IDC: Identifier [[Number]] of [[Control]] |= PARAMETER2
|p3= Row: Index [[Number]] of Row |= PARAMETER3
|p4= Column: Index [[Number]] of Column |= PARAMETER4
| [[String]] |= RETURNVALUE


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


|eff= local


|x1= <code>lnbPicture [200, [1, 1]]</code>|= EXAMPLE1
|gr1= GUI Control - ListNBox
|x2= <code>_control lnbPicture [1, 1]</code>|= EXAMPLE2


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


| [[lnbSetPicture]] |= SEEALSO
|s1= [[lnbPicture]] [idc, [row, column]]


|  |= MPBEHAVIOUR
|p1= idc: [[Number]] - number of [[Control]]
____________________________________________________________________________________________
 
}}
|p2= row: [[Number]] - index of Row
 
|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]]


<h3 style='display:none'>Notes</h3>
|x1= <sqf>lnbPicture [200, [1, 1]];</sqf>
<dl class='command_description'>
<!-- Note Section BEGIN -->
Arma style syntax:
_ctrlTable lnbPicture [_row, _col] // _ctrlTable of '''Control''' type
Example:
private "_dspl";
disableSerialization;
waitUntil {
    _dspl = findDisplay 106;
    ! isNull _dspl;
};
_ctrlTable = _dspl displayCtrl 105;
hint str (_ctrlTable lnbPicture [0, 1]);


<!-- Note Section END -->
|x2= <sqf>_control lnbPicture [1, 1]; // "a3\ui_f\data\gui\cfg\ranks\corporal_gs.paa"</sqf>
</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_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

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