home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / drdobbs / 1991 / 06 / dflat3 / menus.c < prev    next >
Text File  |  1991-05-12  |  3KB  |  102 lines

  1. /* -------------- menus.c ------------- */
  2.  
  3. #include <stdio.h>
  4. #include "dflat.h"
  5.  
  6. #ifdef INCLUDE_SYSTEM_MENUS
  7.  
  8. DEFMENU(SystemMenu)
  9.     POPDOWN("System Menu", NULL)
  10.         SELECTION("~Restore",     ID_SYSRESTORE,     0,         0 )
  11.         SELECTION("~Move",         ID_SYSMOVE,     0,         0 )
  12.         SELECTION("~Size",         ID_SYSSIZE,     0,         0 )
  13.         SELECTION("Mi~nimize",     ID_SYSMINIMIZE, 0,         0 )
  14.         SELECTION("Ma~ximize",     ID_SYSMAXIMIZE, 0,         0 )
  15.         SEPARATOR
  16.         SELECTION("~Close",     ID_SYSCLOSE,     ALT_F4, 0 )
  17.     ENDPOPDOWN
  18. ENDMENU
  19.  
  20. #endif
  21.  
  22. DEFMENU(MainMenu)
  23.  
  24.     POPDOWN(       "~File",  NULL    )
  25.         SELECTION( "~New",            ID_NEW,          0, 0 )
  26. #ifdef INCLUDE_DIALOG_BOXES
  27.         SELECTION( "~Open...",        ID_OPEN,         0, 0 )
  28.         SEPARATOR
  29. #endif
  30.         SELECTION( "~Save",          ID_SAVE,      ALT_S, 0 )
  31. #ifdef INCLUDE_DIALOG_BOXES
  32.         SELECTION( "Save ~as...",      ID_SAVEAS,       0, 0 )
  33. #endif
  34.         SEPARATOR
  35.         SELECTION( "~Print",          ID_PRINT,        0, 0 )
  36.         SEPARATOR
  37.         SELECTION( "E~xit",           ID_EXIT,     ALT_X, 0 )
  38.     ENDPOPDOWN
  39.  
  40.     POPDOWN(       "~Edit", PrepEditMenu    )
  41.         SELECTION( "~Undo",            ID_UNDO,        ALT_BS,    INACTIVE )
  42. #ifdef INCLUDE_CLIPBOARD
  43.         SEPARATOR
  44.         SELECTION( "Cu~t",            ID_CUT,            SHIFT_DEL,     INACTIVE )
  45.         SELECTION( "~Copy",            ID_COPY,        CTRL_INS,    INACTIVE )
  46.         SELECTION( "~Paste",        ID_PASTE,        SHIFT_INS,    INACTIVE )
  47.         SEPARATOR
  48.         SELECTION( "Cl~ear",        ID_CLEAR,        0,    INACTIVE )
  49. #endif
  50.         SELECTION( "~Delete",        ID_DELETETEXT, DEL,    INACTIVE )
  51.         SEPARATOR
  52.         SELECTION( "Pa~ragraph",    ID_PARAGRAPH,    ALT_P,    INACTIVE )
  53.     ENDPOPDOWN
  54.  
  55.     POPDOWN(       "~Options", NULL     )
  56.         SELECTION( "~Insert",          ID_INSERT,     INS,   TOGGLE)
  57.         SELECTION( "~Word wrap",    ID_WRAP,        0,      TOGGLE)
  58. #ifdef INCLUDE_DIALOG_BOXES
  59.         SELECTION( "~Tabs...",        ID_TABS,        0,        0 )
  60.         SEPARATOR
  61.         SELECTION( "~Display...",    ID_DISPLAY,        0,         0 )
  62. #ifdef INCLUDE_LOGGING
  63.         SEPARATOR
  64.         SELECTION( "~Log Messages       ",ID_LOG,   0,      0 )
  65. #endif
  66. #endif
  67.         SEPARATOR
  68.         SELECTION( "~Save Options",    ID_SAVEOPTIONS,    0,        0 )
  69.     ENDPOPDOWN
  70.  
  71. #ifdef INCLUDE_MULTIDOCS
  72.  
  73.     POPDOWN( "~Window", PrepWindowMenu        )
  74.         SELECTION(  NULL,  ID_CLOSEALL, 0, 0)
  75.         SEPARATOR
  76.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  77.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  78.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  79.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  80.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  81.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  82.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  83.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  84.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  85.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  86.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  87.         SELECTION(  "~More Windows...", ID_WINDOW, 0, 0)
  88.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  89.     ENDPOPDOWN
  90. #endif
  91.  
  92.     POPDOWN( "~Help", NULL  )
  93.         SELECTION(  "~Help for help...",     ID_HELPHELP,  0, 0 )
  94.         SELECTION(    "~Extended help...",    ID_EXTHELP,   0, 0 )
  95.         SELECTION(  "~Keys help...",        ID_KEYSHELP,  0, 0 )
  96.         SELECTION(  "Help ~index...",        ID_HELPINDEX, 0, 0 )
  97.         SEPARATOR
  98.         SELECTION(  "~About...",            ID_ABOUT,     0, 0 )
  99.     ENDPOPDOWN
  100.  
  101. ENDMENU
  102.