lnbSize: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
m (fixed return value for parsing)
 
Line 22: Line 22:


|r1= [[Array]] - in format [rows, columns]
|r1= [[Array]] - in format [rows, columns]
* rows: [[Number]] - Number of rows
* columns: [[Number]] - Number of columns


|x1= <sqf>lnbSize _control;</sqf>
|x1= <sqf>lnbSize _control;</sqf>

Latest revision as of 13:45, 4 January 2026

Hover & click on the images for description

Description

Description:
Returns size of CT_LISTNBOX. This command supports CT_TOOLBOX control since Arma 3 v2.06. For CT_COMBO or CT_LISTBOX see lbSize.
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]
  • rows: Number - Number of rows
  • columns: Number - Number of columns

Examples

Example 1:
lnbSize _control;
Example 2:
lnbSize _someIDC;

Additional Information

See also:
lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbText lnbValue

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note