Detached menus are created using the GUIPANEL /DETACH command. Once created, buttons and pulldown menus can be defined within the detached menu using respectively the GUIBUTTON and GUIMENU commands respectively. There are no associated variables to the detached menus. Help is available through a Help button. The menu is mapped when the GUIGO command is typed.
The following procedure illustrates how to create a detach menu; it creates a menu bar with 3 pulldown menus and a help button.
! GUI\PANEL "GRAPHIC X-Window interface" PR:GRAPHIC_SIC.HLP /DETACH ! GUI\MENU "SIC" GUI\BUTTON "SIC\PAUSE" PAUSE GUI\BUTTON "SIC\CONTINUE" CONTINUE GUI\BUTTON "SIC\QUIT" QUIT GUI\BUTTON "SIC\NEXT" NEXT GUI\BUTTON "SIC\BREAK" BREAK GUI\BUTTON "SIC\EXIT" "Exit" ! GUI\MENU "Graphic" GUI\BUTTON "DEVICE IMAGE WHITE" DEVICE GUI\BUTTON "CLEAR PLOT" CLEAR GUI\BUTTON "ZOOM" ZOOM GUI\BUTTON "HARDCOPY /PRINT" HARDCOPY GUI\MENU /CLOSE ! GUI\MENU "Program(s)" GUI\BUTTON "@ PR:X_WHOLE.GRAPHIC" "Interfero" GUI\BUTTON "@ PR:X_DISPLAY.GRAPHIC" "Display" ! GUI\GO
Several detached menus can be activated at once.