Home › Forums › General XMetaL Discussion › How to control where a new top level menu item lands › Reply To: How to control where a new top level menu item lands
Reply to: How to control where a new top level menu item lands
March 27, 2010 at 7:42 pmNevermind. I found that if I add any number as the second param, then it works:
[code]
var newTopMenu = menuBar.Controls.Add(5,1,8);
[/code]
The docs say “variantCmdId is an integer that specifies a built-in command to clone; if this argument is omitted, a blank custom control of the specified type is added to the command bar. “
It appears that you cannot omit this param. I'm not clear on what it does if I make the second param a 1 versus a 3.
Thanks,
David