To assign a menu bar to a window, you set the MENUBAR attribute of the window to the menu bar’s handle:

window-name-or-handle:MENUBAR = MENU menu-name:HANDLE.

Typically, you have to identify a menu name by preceding it with the MENU keyword as in this example. You identify a submenu using the MENU or SUB-MENU keyword. You identify a menu item by preceding it with the MENU-ITEM keyword.