next up previous contents index
Next: Assigning variables in ``Window'' Up: The GUI (``Graphics-User-Interface'') Mode Previous: The GUI (``Graphics-User-Interface'') Mode   Contents   Index

Detached menus

Detached menus are created using the GUI$\backslash$PANEL /DETACH command. Once created, buttons and pulldown menus can be defined within the detached menu using respectively the GUI$\backslash$BUTTON and GUI$\backslash$MENU commands respectively. There are no associated variables to the detached menus. Help is available through a Help button. The menu is mapped when the GUI$\backslash$GO 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.



Gildas manager 2024-04-18