lnbSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (formatting)
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=
____________________________________________________________________________________________


| Returns size of 2D listbox or combobox as [rows, columns]. |DESCRIPTION=
| Returns size of 2D listbox or combobox as [rows, columns]. |DESCRIPTION=
____________________________________________________________________________________________


| [[lnbSize]] ctrl |SYNTAX=
| [[lnbSize]] controlOrIDC|SYNTAX=


|p1= ctrl: [[Control]] or [[Number]] - If this is a number it is considered an IDC as in the following code snippet <code>lnbSize (<active display> displayCtrl <idc>)</code>  |PARAMETER1=  
|p1= controlOrIDC: [[Control]] or [[Number]] - Control or control's IDC |PARAMETER1=  


| [[Array]] - in format [rows, columns] |RETURNVALUE=  
| [[Array]] - in format [rows, columns] |RETURNVALUE=  


____________________________________________________________________________________________
|x1= <code>[[lnbSize]] _ctrl;//[8,2]</code>|EXAMPLE1=
|x1= <code>[[lnbSize]] _ctrl;//[8,2]</code>|EXAMPLE1=
____________________________________________________________________________________________
 
|x2= <code>[[lnbSize]] ([[findDisplay]] _display [[displayCtrl]] 1337);</code>|EXAMPLE2=


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


|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>


[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]

Revision as of 18:48, 16 November 2020

Hover & click on the images for description

Description

Description:
Returns size of 2D listbox or combobox as [rows, columns].
Groups:
GUI Control - ListNBox

Syntax

Syntax:
lnbSize controlOrIDC
Parameters:
controlOrIDC: Control or Number - Control or control's IDC
Return Value:
Array - in format [rows, columns]

Examples

Example 1:
lnbSize _ctrl;//[8,2]
Example 2:
lnbSize (findDisplay _display displayCtrl 1337);

Additional Information

See also:
lnbAddArraylnbAddColumnlnbAddRowlnbClearlnbColorlnbCurSelRowlnbDatalnbDeleteColumnlnbDeleteRowlnbGetColumnsPositionlnbPicturelnbSetColorlnbSetColumnsPoslnbSetCurSelRowlnbSetDatalnbSetPicturelnbSetTextlnbSetValuelnbTextlnbValue

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