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

dcramer

Reply to: How to control where a new top level menu item lands

Nevermind. 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

Reply

Products
Downloads
Support