menuSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class='command_description'> <!-- BEGIN Note Section --> <!-- For example: <dd class='notedate'>Posted on Month Day, Year - Time (UTC)</dd> <dt class='note'>'''User Name'''</dt> <dd class='note'>This is an ex...)
m (Text replacement - "‎" to "")
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|arma3 |= Game
|game1= arma3
 
|version1= 1.56
|1.56


|gr1= GUI Control - Menu
|gr1= GUI Control - Menu


| Returns how many sub entries is in item on given path.
|descr= Returns how many sub entries is in item on given path.


| [[menuSize]] [idc, path]
|s1= [[menuSize]] [idc, path]


|p1= idc: [[Number]]
|p1= idc: [[Number]]
Line 15: Line 14:
|p2= path: [[Array]]
|p2= path: [[Array]]


| [[Number]]
|r1= [[Number]]


|s2= control [[menuSize]] path
|s2= control [[menuSize]] path
Line 23: Line 22:
|p22= path: [[Array]]
|p22= path: [[Array]]


|r2= [[Number]]
|r2= [[Number]]


|x1= <Code>[[findDisplay]] 313 [[displayCtrl]] 120 [[menuSize]] [];</code>
|x1= <sqf>findDisplay 313 displayCtrl 120 menuSize [];</sqf>


| [[menuEnable]], [[menuExpand]], [[menuCollapse]], [[menuSetData]], [[menuSetValue]], [[‎menuSetCheck]], [[menuSetAction]], [[menuDelete]], [[menuAdd]], [[‎menuHover]], [[menuValue]], [[menuURL]], [[‎menuText]], [[menuSort]], [[menuEnabled]], [[‎menuChecked]], [[menuAction]], [[menuShortcutText]], [[menuShortcut]], [[menuPicture]], [[menuData]], [[menuClear]], [[menuSetPicture]]
|seealso= [[menuEnable]] [[menuExpand]] [[menuCollapse]] [[menuSetData]] [[menuSetValue]] [[menuSetCheck]] [[menuSetAction]] [[menuDelete]] [[menuAdd]] [[menuHover]] [[menuValue]] [[menuURL]] [[menuText]] [[menuSort]] [[menuEnabled]] [[menuChecked]] [[menuAction]] [[menuShortcutText]] [[menuShortcut]] [[menuPicture]] [[menuData]] [[menuClear]] [[menuSetPicture]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12:54, 26 April 2023

Hover & click on the images for description

Description

Description:
Returns how many sub entries is in item on given path.
Groups:
GUI Control - Menu

Syntax

Syntax:
menuSize [idc, path]
Parameters:
idc: Number
path: Array
Return Value:
Number

Alternative Syntax

Syntax:
control menuSize path
Parameters:
control: Control
path: Array
Return Value:
Number

Examples

Example 1:
findDisplay 313 displayCtrl 120 menuSize [];

Additional Information

See also:
menuEnable menuExpand menuCollapse menuSetData menuSetValue menuSetCheck menuSetAction menuDelete menuAdd menuHover menuValue menuURL menuText menuSort menuEnabled menuChecked menuAction menuShortcutText menuShortcut menuPicture menuData menuClear menuSetPicture

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