global proc myMenu() { global string $showMyMenuCtrl; if (`menu -exists $showMyMenuCtrl`) deleteUI $showMyMenuCtrl; string $name = "My Menu"; global string $gMainWindow; $showMyMenuCtrl = `menu -p $gMainWindow -to true -l $name`; menuItem -p $showMyMenuCtrl -l "Alpha" -c ("source \"alpha.mel\"; "); menuItem -p $showMyMenuCtrl -l "Bravo" -c ("source \"bravo.mel\"; "); menuItem -p $showMyMenuCtrl -l "Charlie" -c ("source \"charlie.mel\"; "); }; myMenu;