lnbAddColumn: 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 - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 11: Line 10:


|gr1= GUI Control - ListNBox |GROUP1=
|gr1= GUI Control - ListNBox |GROUP1=
____________________________________________________________________________________________


| Adds an column at given position. It returns the index of the newly added column. |DESCRIPTION=
| Adds an column at given position. It returns the index of the newly added column. |DESCRIPTION=
____________________________________________________________________________________________


| _ctrl [[lnbAddColumn]] position |SYNTAX=
| _ctrl [[lnbAddColumn]] position |SYNTAX=
Line 20: Line 17:
|p2= position: [[Number]]  |PARAMETER2=  
|p2= position: [[Number]]  |PARAMETER2=  
| [[Number]] or [[nil]] |RETURNVALUE=  
| [[Number]] or [[nil]] |RETURNVALUE=  
____________________________________________________________________________________________


| s2= [[lnbAddColumn]] [idc([[Number]]) or [[Control]],position([[Number]])] |SYNTAX2=
| s2= [[lnbAddColumn]] [idc([[Number]]) or [[Control]],position([[Number]])] |SYNTAX2=
Line 28: Line 24:
| r2= [[Number]] or [[nil]] |RETURNVALUE2=  
| r2= [[Number]] or [[nil]] |RETURNVALUE2=  


____________________________________________________________________________________________


|x1= <code>_ctrl [[lnbAddColumn]] 0.8;</code>|EXAMPLE1=
|x1= <code>_ctrl [[lnbAddColumn]] 0.8;</code>|EXAMPLE1=


|x2= <code>[[lnbAddColumn]] [105,0.8];</code>|EXAMPLE2=
|x2= <code>[[lnbAddColumn]] [105,0.8];</code>|EXAMPLE2=
____________________________________________________________________________________________


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


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 01:52, 17 January 2021

Hover & click on the images for description

Description

Description:
Adds an column at given position. It returns the index of the newly added column.
Groups:
GUI Control - ListNBox

Syntax

Syntax:
_ctrl lnbAddColumn position
Parameters:
_ctrl: Control
position: Number
Return Value:
Number or nil

Alternative Syntax

Syntax:
lnbAddColumn [idc(Number) or Control,position(Number)]
Parameters:
[idc(Number) or Control,position(Number)]: Array
Return Value:
Number or nil

Examples

Example 1:
_ctrl lnbAddColumn 0.8;
Example 2:
lnbAddColumn [105,0.8];

Additional Information

See also:
lnbAddArraylnbAddRowlnbClearlnbColorlnbCurSelRowlnbDatalnbDeleteColumnlnbDeleteRowlnbGetColumnsPositionlnbPicturelnbSetColorlnbSetColumnsPoslnbSetCurSelRowlnbSetDatalnbSetPicturelnbSetTextlnbSetValuelnbSizelnbTextlnbValue

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

Notes

Posted: Sep 9 2014
ffur2007slx2_5
(A3 1.28) Horizontal coordinates of columns were added relative to list width, in range from 0 to 1.

Bottom Section