lnbSetCurSelRow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(65 intermediate revisions by 9 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


| Selects the row with the given index of the 2D listbox. |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''lnbSetCurSelRow''' [idc,index] |= Syntax
|game4= arma3
|version4= 0.50


|p1= [idc,index]: Array - |= PARAMETER1
|gr1= GUI Control - ListNBox


|p2= |= PARAMETER2
|descr= Selects the row with the given index of the 2D listbox.


|p3= |= PARAMETER3
|s1= [[lnbSetCurSelRow]] [idc, index]


| Nothing |= RETURNVALUE
|p1= idc: [[Number]]


|p2= index: [[Number]]


|x1= <code>(example)</code>|= EXAMPLE1
|r1= [[Nothing]]


____________________________________________________________________________________________
|s2= ctrl [[lnbSetCurSelRow]] index


| |= SEEALSO
|p21= ctrl: [[Control]]


| |= MPBEHAVIOUR
|p22= index: [[Number]]
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|r2= [[Nothing]]
<dl class='command_description'>
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>
</dl>
disableSerialization;
_ctrl = (findDisplay 300) displayCtrl 304;
_ctrl lnbSetCurSelRow 1;
</sqf>


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[lnbAddArray]] [[lnbAddColumn]] [[lnbAddRow]] [[lnbClear]] [[lnbColor]] [[lnbCurSelRow]] [[lnbData]] [[lnbDeleteColumn]] [[lnbDeleteRow]] [[lnbGetColumnsPosition]] [[lnbPicture]] [[lnbSetColor]] [[lnbSetColumnsPos]] [[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:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:34, 3 September 2024

Hover & click on the images for description

Description

Description:
Selects the row with the given index of the 2D listbox.
Groups:
GUI Control - ListNBox

Syntax

Syntax:
lnbSetCurSelRow [idc, index]
Parameters:
idc: Number
index: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
ctrl lnbSetCurSelRow index
Parameters:
ctrl: Control
index: Number
Return Value:
Nothing

Examples

Example 1:
disableSerialization; _ctrl = (findDisplay 300) displayCtrl 304; _ctrl lnbSetCurSelRow 1;

Additional Information

See also:
lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos 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