Remove all menus

20% Command group 20% Flag affected 20% Reversible 20% Execute on client 20% Platform(s)
Menus NO YES NO All

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