Remove all menus

Command groupFlag affectedReversibleExecute on clientPlatform(s)
MenusNOYESNOAll

Syntax

Remove all menus

Description

This command removes all menu instances from the menu bar, excluding the standard Omnis menus such as File and Edit. If you use Remove all menus in a reversible block, the menu instances are reinstalled when the method containing the block finishes.

Example

# Remove all user defined menus from the main

# omnis menubar

Begin reversible block
  
Remove all menus

End reversible block
OK message
 
{
Menus are now removed
}

 
# now all menu instances are reinstalled