lnbSetCurSelRow: 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 - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(39 intermediate revisions by the same user 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


|gr1= GUI Control - ListNBox |GROUP1=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| Selects the row with the given index of the 2D listbox. |DESCRIPTION=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| [[lnbSetCurSelRow]] [idc, index] |SYNTAX=
|gr1= GUI Control - ListNBox


|p1= idc: [[Number]]|PARAMETER1=
|descr= Selects the row with the given index of the 2D listbox.


|p2= index: [[Number]]|PARAMETER2=
|s1= [[lnbSetCurSelRow]] [idc, index]


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


| s2= ctrl [[lnbSetCurSelRow]] index |SYNTAX2=
|p2= index: [[Number]]


|p21= ctrl: [[Control]]|PARAMETER21=
|r1= [[Nothing]]


|p22= index: [[Number]]|PARAMETER22=
|s2= ctrl [[lnbSetCurSelRow]] index


|r2= [[Nothing]] |RETURNVALUE2=
|p21= ctrl: [[Control]]


|x1= <code>[[disableSerialization]];
|p22= index: [[Number]]
_ctrl = ([[findDisplay]] 300) [[displayCtrl]] 304;
_ctrl [[lnbSetCurSelRow]] 1;</code>|EXAMPLE1=
____________________________________________________________________________________________


| [[lnbAddArray]], [[lnbAddColumn]], [[lnbAddRow]], [[lnbClear]], [[lnbColor]], [[lnbCurSelRow]], [[lnbData]], [[lnbDeleteColumn]], [[lnbDeleteRow]], [[lnbGetColumnsPosition]], [[lnbPicture]], [[lnbSetColor]], [[lnbSetColumnsPos]], [[lnbSetData]], [[lnbSetPicture]], [[lnbSetText]], [[lnbSetValue]], [[lnbSize]], [[lnbText]], [[lnbValue]] |SEEALSO=
|r2= [[Nothing]]


| |MPBEHAVIOUR=  
|x1= <sqf>
____________________________________________________________________________________________
disableSerialization;
_ctrl = (findDisplay 300) displayCtrl 304;
_ctrl lnbSetCurSelRow 1;
</sqf>
 
|seealso= [[lnbAddArray]] [[lnbAddColumn]] [[lnbAddRow]] [[lnbClear]] [[lnbColor]] [[lnbCurSelRow]] [[lnbData]] [[lnbDeleteColumn]] [[lnbDeleteRow]] [[lnbGetColumnsPosition]] [[lnbPicture]] [[lnbSetColor]] [[lnbSetColumnsPos]] [[lnbSetData]] [[lnbSetPicture]] [[lnbSetText]] [[lnbSetValue]] [[lnbSize]] [[lnbText]] [[lnbValue]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

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