lnbSetColumnsPos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (LISTBOX > LISTNBOX)
m (Some wiki formatting)
 
(73 intermediate revisions by 5 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


| Sets the additional text (invisible) in the item with the given position of the 2D listbox. |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| [[lnbSetColumnsPos]] [idc([[Number]]) or [[Control]],[row([[Number]]),column([[Number]])],data([[Anything]])] |= Syntax
|game4= arma3
|version4= 0.50


|p1= [idc([[Number]]) or [[Control]],[row([[Number]]),column([[Number]])],data([[Anything]])]: [[Array]]  |= PARAMETER1
|gr1= GUI Control - ListNBox


| [[Nothing]] |= RETURNVALUE
|descr= Sets relative screen X for ListNBox control columns positions. Setter for [[lnbGetColumnsPosition]].
___________________________________________________________________________________________


|s1= [[lnbSetColumnsPos]] [idc, positions]


|x1= <code>[[lnbSetColumnsPos]] [101, [0,1], "#1"];</code>|= Example 1
|p1= idc: [[Number]] - idc of the control


____________________________________________________________________________________________
|p2= positions: [[Array]] - positions of the columns


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


| |= MPBEHAVIOUR
|s2= ctrl [[lnbSetColumnsPos]] positions
____________________________________________________________________________________________
 
|p21= ctrl: [[Control]] - lnb control
 
|p22= positions: [[Array]] - positions of the columns
 
|r2= [[Nothing]]
 
|x1= <sqf>lnbSetColumnsPos [101, [0.1,0.5,0.7]];</sqf>
 
|x2= <sqf>_ctrl lnbSetColumnsPos [0.1,0.5,0.7];</sqf>
 
|seealso= [[lnbAddArray]] [[lnbAddColumn]] [[lnbAddRow]] [[lnbClear]] [[lnbColor]] [[lnbCurSelRow]] [[lnbData]] [[lnbDeleteColumn]] [[lnbDeleteRow]] [[lnbGetColumnsPosition]] [[lnbPicture]] [[lnbSetColor]] [[lnbSetCurSelRow]] [[lnbSetData]] [[lnbSetPicture]] [[lnbSetText]] [[lnbSetValue]] [[lnbSize]] [[lnbText]] [[lnbValue]]
}}
}}


<h3 style='display:none'>Notes</h3>
{{Note
<dl class='command_description'>
|user= ffur2007slx2_5
<!-- Note Section BEGIN -->
|timestamp= 20140909165200
<dd class="notedate">Posted: Sep 9 2014</dd>
|text= See: [[List Box#LISTNBOX]]
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt>
}}
<dd class="note">See: [[List Box#LISTNBOX]]
<!-- Note Section END -->
</dl>
 
<h3 style='display:none'>Bottom Section</h3>
[[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}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:12, 14 May 2023

Hover & click on the images for description

Description

Description:
Sets relative screen X for ListNBox control columns positions. Setter for lnbGetColumnsPosition.
Groups:
GUI Control - ListNBox

Syntax

Syntax:
lnbSetColumnsPos [idc, positions]
Parameters:
idc: Number - idc of the control
positions: Array - positions of the columns
Return Value:
Nothing

Alternative Syntax

Syntax:
ctrl lnbSetColumnsPos positions
Parameters:
ctrl: Control - lnb control
positions: Array - positions of the columns
Return Value:
Nothing

Examples

Example 1:
lnbSetColumnsPos [101, [0.1,0.5,0.7]];
Example 2:
_ctrl lnbSetColumnsPos [0.1,0.5,0.7];

Additional Information

See also:
lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor 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
ffur2007slx2_5 - c
Posted on Sep 09, 2014 - 16:52 (UTC)
See: List Box#LISTNBOX