menuAction: Difference between revisions

From Bohemia Interactive Community
m (fix syntax 2 input type)
mNo edit summary
 
Line 12: Line 12:
|p1= idc: [[Number]]
|p1= idc: [[Number]]


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


|r1= [[String]] - action
|r1= [[String]] - action
Line 20: Line 20:
|p21= control: [[Control]]
|p21= control: [[Control]]


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


|r2= [[String]] - action
|r2= [[String]] - action

Latest revision as of 18:28, 2 April 2026

Hover & click on the images for description

Description

Description:
Returns action stored in item on given path in CT_MENU_STRIP control.
Groups:
GUI Control - Menu

Syntax

Syntax:
menuAction [idc, path]
Parameters:
idc: Number
path: Tree View Path
Return Value:
String - action

Alternative Syntax

Syntax:
control menuAction path
Parameters:
control: Control
path: Tree View Path
Return Value:
String - action

Examples

Example 1:
menuAction [120, [1, 0]];
Example 2:
findDisplay 313 displayCtrl 120 menuAction [1, 0];

Additional Information

See also:
menuSetAction

Notes

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