Xojo

GETTING STARTED

  • Introduction
  • QuickStarts
  • Tutorials
  • Using the IDE
    • Introduction
    • Code Editor
    • Constant Editor
    • Enumeration Editor
    • File Type Group Editor
    • Find, Errors, Messages Panels
    • Image Set Editor
    • Included Plugins
    • Inspector
    • Keyboard Shortcuts
    • Layout Editor
    • Library
    • Menu Editor
      • Command bar
      • Inspector
    • Navigator
    • Picture Editor
    • Project File Information
    • Report Layout Editor
    • Running the Project
    • Settings
    • Structure Editor
    • Toolbar Editor
  • Using the Xojo Language
  • Object-Oriented Programming
  • Examples
  • Debugging

TOPICS

  • Advanced features
  • Android
  • API design
  • Application deployment
  • Application structure
  • Build automation
  • Code management
  • Communication
  • Custom controls
  • Data processing
  • Databases
  • Debugging
  • Declares
  • File management
  • Graphics
  • iOS
  • Linux
  • Localizing your apps
  • macOS
  • Migrating from other development tools
  • Office Automation
  • OS information
  • Printing
  • Raspberry Pi
  • Text handling
  • Threading
  • User interface
  • Web
  • Windows
  • Xojo Cloud
  • XojoScript

API

  • Android
  • Compiler directives
  • Console
  • Cryptography
  • Data types
  • Databases
  • Deprecated
  • Exceptions
  • Files
  • Graphics
  • Hardware
  • iOS
  • Language
  • macOS
  • Math
  • Mobile
  • Networking
  • OS
  • PDF
  • Printing
  • Text
  • User interface
  • Web
  • Windows
  • Xojo Cloud

RESOURCES

  • Deprecations
  • Learn object-oriented programming
  • Previous releases
  • Programming the Raspberry Pi with Xojo
  • Xojo 2025r1.1 Release Notes
  • Reporting bugs and making feature requests
  • Roadmap
  • System requirements
  • Extras
  • Updating older projects
  • Videos
  • XojoTalk podcast

ESPAÑOL

  • Guía Rápida
  • Iniciación
  • Tutorial

FINE PRINT

  • Copyrights and trademarks
  • End User License Agreement
Xojo
  • »
  • Using the IDE »
  • Menu Editor

Menu Editor

Menu Editor - Editing Menu Item

The Menu editor makes adding menu bars, menus, and menu items to your desktop projects easy. The standard Desktop app template includes a menu bar that is used as the default menu bar for the entire app (MainMenuBar). You can use the default or create additional menu bars (using Insert on the toolbar or menu) for use with specific windows by assigning the menu bar to the Menu Bar property using the Inspector for the Window.

The Menu Editor can only be used with Desktop projects.

The default menubar for a Desktop app, MainMenuBar, includes File, Edit, Window and Help menus and the standard File and Edit menu items. The File menu has one menu item, Exit (on Windows) or Quit (on macOS and Linux). The properties of the Quit/Exit menu item are supplied, so that the menu item works automatically. You don't need to modify or add to the menu item's properties in order to enable it.

The Edit menu is populated with Undo, Cut, Copy, Paste, Delete, and Select All menu items.

On macOS the Window menu is automatically populated at runtime with macOS-provided menu items that will make the front most window fill the screen, center the window in the screen, move and resize the window, allow you to move it to another connected device, keep track of all open windows and more. The name of this menu item is WindowMenu by default and it must be named this for the automatic menu features to work.

On macOS the Help menu provides a functional search menu item.

On Linux and Windows, the Window and Help menus have no built-in functionality. You can add your own menu items to them or delete them.

Tip

If you wish to have the Window and Help menus only for the macOS version of your app and not for versions for Linux or Windows, you can remove them at runtime in the App.Opening event using the DesktopMenuBar.MenuAt and DesktopMenuBar.RemoveMenuAt methods.

You can drag menus around to rearrange them or move them to entirely new menus. The toolbar has functions for adding new menus and menu items. You can also use Cut/Copy/Paste to move and copy menu items to other areas of the menu. Click on the menu in the Menu Editor and then use the keyboard commands to cut/copy/paste or delete menus. Refer to Desktop Menus for more information on how to create and design menus.

Command bar

The command bar provides these commands:

Item

Description

Platform Display

The platform icons on the toolbar allow you to see how the menu looks on Windows, MacOS and Linux.

Create New Top-Level Menu

Adds a top-level menu to the menu bar.

Create New Menu Item

Creates a new menu item under a selected top-level menu.

Create Separator

Creates a separator item below the selected menu item.

Create Submenu

Creates a submenu below the selected menu item.

Convert Select Menu to a Top-Level Menu

Use this command to convert the selected menu item to a top-level menu.

Inspector

The Inspector displays the properties for the selected menu or menu item.

Previous Next

© Copyright 2025, Xojo, Inc.

Built with Sphinx using a theme provided by Read the Docs.

Have a suggestion about the docs? Let us know.

Docs for the Xojo programming language and IDE