menuEnable: Difference between revisions

From Bohemia Interactive Community
m (Some wiki formatting)
mNo edit summary
 
Line 12: Line 12:
|p1= idc: [[Number]]
|p1= idc: [[Number]]


|p2= path: [[Array]]
|p2= path: [[Tree View Path]]


|p3= enable: [[Boolean]] - (Optional, default [[true]]) disabled if [[false]]
|p3= enable: [[Boolean]] - (Optional, default [[true]]) disabled if [[false]]
Line 23: Line 23:
|p21= control: [[Control]]
|p21= control: [[Control]]


|p22= path: [[Array]]
|p22= path: [[Tree View Path]]


|p23= enable: [[Boolean]] - (Optional, default [[true]]) disabled if [[false]]
|p23= enable: [[Boolean]] - (Optional, default [[true]]) disabled if [[false]]
Line 34: Line 34:
|p41= control: [[Control]]
|p41= control: [[Control]]


|p42= path: [[Array]]
|p42= path: [[Tree View Path]]


|r3= [[Nothing]]
|r3= [[Nothing]]

Latest revision as of 18:30, 2 April 2026

Hover & click on the images for description

Description

Description:
Enables or disables menu entry on given path.
Groups:
GUI Control - Menu

Syntax 1

Syntax:
menuEnable [idc, path, enable]
Parameters:
idc: Number
path: Tree View Path
since Arma 3 logo black.png 2.06
enable: Boolean - (Optional, default true) disabled if false
Return Value:
Nothing

Syntax 2

Syntax:
control menuEnable [path, enable]
Parameters:
control: Control
path: Tree View Path
since Arma 3 logo black.png 2.06
enable: Boolean - (Optional, default true) disabled if false
Return Value:
Nothing

Syntax 3

Syntax:
control menuEnable path
🕖
This information is obsolete as of Arma 3 v2.06. Reason: This old syntax is kept only for backward compatibility.
Parameters:
control: Control
path: Tree View Path
Return Value:
Nothing

Examples

Example 1:
findDisplay 313 displayCtrl 120 menuEnable [0]; // old syntax, do not use
Example 2:
findDisplay 313 displayCtrl 120 menuEnable [[0, 0, 1], false]; // since Arma 3 v2.06

Additional Information

See also:
menuEnabled

Notes

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