{"name":"menuAdd","title":"menuAdd","type":"command","url":"https://community.bistudio.com/wiki/menuAdd","revid":378324,"updated":"2026-04-02T16:28:30Z","groups":["GUI Control - Menu"],"status":"ok","games":{"arma3":"1.56"},"since":"arma3 1.56","arma3_since":"1.56","description":"Adds new submenu entry into item on given path.","syntaxes":[{"syntax":"menuAdd [idc, path, text]","params":[{"name":"idc","type":"Number","type_expr":"Number"},{"name":"path","type":"Tree View Path","type_expr":"Tree View Path"},{"name":"text","type":"String","type_expr":"String"}],"returns":{"type":"Number","type_expr":"Number"},"form":"unary","right":{"text":"[idc, path, text]"}},{"syntax":"control menuAdd [path, text]","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"path","type":"Tree View Path","description":"path where the items should be added","type_expr":"Tree View Path"},{"name":"text","type":"String","description":"displayed name for the entry","type_expr":"String"}],"returns":{"type":"Number","type_expr":"Number","description":"index of the item"},"form":"binary","left":{"text":"control"},"right":{"text":"[path, text]"}}],"examples":[{"code":["findDisplay 313 displayCtrl 120 menuAdd [[], \"Custom Tools\"]; // Add new entry at the top level to the menu strip in Eden Editor"]}],"see_also":["menuDelete"]}