home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / PROGRAM / DFLT18.ZIP / MENUS.C < prev    next >
Text File  |  1994-03-01  |  5KB  |  124 lines

  1. /* -------------- menus.c ------------- */
  2.  
  3. #include "dflat.h"
  4.  
  5. /* --------------------- the main menu --------------------- */
  6. DEFMENU(MainMenu)
  7.     /* --------------- the File popdown menu ----------------*/
  8.     POPDOWN( "~File",  PrepFileMenu, "Read/write/print files. Go to DOS" )
  9.         SELECTION( "~New",        ID_NEW,          0, 0 )
  10.         SELECTION( "~Open...",    ID_OPEN,         0, 0 )
  11.         SEPARATOR
  12.         SELECTION( "~Save",       ID_SAVE,         0, INACTIVE)
  13.         SELECTION( "Save ~as...", ID_SAVEAS,       0, INACTIVE)
  14.         SELECTION( "D~elete",     ID_DELETEFILE,   0, INACTIVE)
  15.         SEPARATOR
  16.         SELECTION( "~Print",      ID_PRINT,        0, INACTIVE)
  17.         SELECTION( "P~rinter setup...", ID_PRINTSETUP, 0, 0   )
  18.         SEPARATOR
  19.         SELECTION( "~DOS",        ID_DOS,          0, 0 )
  20.         SELECTION( "E~xit",       ID_EXIT,     ALT_X, 0 )
  21.     ENDPOPDOWN
  22.  
  23.     /* --------------- the Edit popdown menu ----------------*/
  24.     POPDOWN( "~Edit", PrepEditMenu, "Clipboard, delete text, paragraph" )
  25.         SELECTION( "~Undo",      ID_UNDO,  ALT_BS,    INACTIVE)
  26.         SEPARATOR
  27.         SELECTION( "Cu~t",       ID_CUT,   SHIFT_DEL, INACTIVE)
  28.         SELECTION( "~Copy",      ID_COPY,  CTRL_INS,  INACTIVE)
  29.         SELECTION( "~Paste",     ID_PASTE, SHIFT_INS, INACTIVE)
  30.         SEPARATOR
  31.         SELECTION( "Cl~ear",     ID_CLEAR, 0,         INACTIVE)
  32.         SELECTION( "~Delete",    ID_DELETETEXT, DEL,  INACTIVE)
  33.         SEPARATOR
  34.         SELECTION( "Pa~ragraph", ID_PARAGRAPH,  ALT_P,INACTIVE)
  35.     ENDPOPDOWN
  36.  
  37.     /* --------------- the Search popdown menu ----------------*/
  38.     POPDOWN( "~Search", PrepSearchMenu, "Search and replace" )
  39.         SELECTION( "~Search...", ID_SEARCH,      0,    INACTIVE)
  40.         SELECTION( "~Replace...",ID_REPLACE,     0,    INACTIVE)
  41.         SELECTION( "~Next",      ID_SEARCHNEXT,  F3,   INACTIVE)
  42.     ENDPOPDOWN
  43.  
  44.     /* ------------ the Utilities popdown menu --------------- */
  45.     POPDOWN( "~Utilities", NULL, "Utility programs" )
  46.         SELECTION( "~Calendar",   ID_CALENDAR,     0,   0)
  47.         SELECTION( "~Bar chart",  ID_BARCHART,     0,   0)
  48.     ENDPOPDOWN
  49.  
  50.     /* ------------- the Options popdown menu ---------------*/
  51.     POPDOWN( "~Options", NULL, "Editor and display options" )
  52.         SELECTION( "~Display...",   ID_DISPLAY,     0,      0 )
  53.         SEPARATOR
  54. #ifdef INCLUDE_LOGGING
  55.         SELECTION( "~Log messages", ID_LOG,     ALT_L,      0 )
  56.         SEPARATOR
  57. #endif
  58.         SELECTION( "~Insert",       ID_INSERT,     INS, TOGGLE)
  59.         SELECTION( "~Word wrap",    ID_WRAP,        0,  TOGGLE)
  60.         SELECTION( "~Tabs ( )",     ID_TABS,        0,  CASCADED)
  61.         SEPARATOR
  62.         SELECTION( "~Save options", ID_SAVEOPTIONS, 0,      0 )
  63.     ENDPOPDOWN
  64.  
  65.     /* --------------- the Window popdown menu --------------*/
  66.     POPDOWN( "~Window", PrepWindowMenu, "Select/close document windows" )
  67.         SELECTION(  NULL,  ID_CLOSEALL, 0, 0)
  68.         SEPARATOR
  69.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  70.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  71.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  72.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  73.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  74.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  75.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  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(  "~More Windows...", ID_MOREWINDOWS, 0, 0)
  81.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  82.     ENDPOPDOWN
  83.  
  84.     /* --------------- the Help popdown menu ----------------*/
  85.     POPDOWN( "~Help", NULL, "Get help" )
  86.         SELECTION(  "~Help for help...",  ID_HELPHELP,  0, 0 )
  87.         SELECTION(  "~Extended help...",  ID_EXTHELP,   0, 0 )
  88.         SELECTION(  "~Keys help...",      ID_KEYSHELP,  0, 0 )
  89.         SELECTION(  "Help ~index...",     ID_HELPINDEX, 0, 0 )
  90.         SEPARATOR
  91.         SELECTION(  "~About...",          ID_ABOUT,     0, 0 )
  92.     ENDPOPDOWN
  93.  
  94.     /* ----- cascaded pulldown from Tabs... above ----- */
  95.     CASCADED_POPDOWN( ID_TABS, NULL )
  96.         SELECTION( "~2 tab stops", ID_TAB2, 0, 0)
  97.         SELECTION( "~4 tab stops", ID_TAB4, 0, 0)
  98.         SELECTION( "~6 tab stops", ID_TAB6, 0, 0)
  99.         SELECTION( "~8 tab stops", ID_TAB8, 0, 0)
  100.     ENDPOPDOWN
  101.  
  102. ENDMENU
  103.  
  104. /* ------------- the System Menu --------------------- */
  105. DEFMENU(SystemMenu)
  106.     POPDOWN("System Menu", NULL, NULL)
  107. #ifdef INCLUDE_RESTORE
  108.         SELECTION("~Restore",  ID_SYSRESTORE,  0,         0 )
  109. #endif
  110.         SELECTION("~Move",     ID_SYSMOVE,     0,         0 )
  111.         SELECTION("~Size",     ID_SYSSIZE,     0,         0 )
  112. #ifdef INCLUDE_MINIMIZE
  113.         SELECTION("Mi~nimize", ID_SYSMINIMIZE, 0,         0 )
  114. #endif
  115. #ifdef INCLUDE_MAXIMIZE
  116.         SELECTION("Ma~ximize", ID_SYSMAXIMIZE, 0,         0 )
  117. #endif
  118.         SEPARATOR
  119.         SELECTION("~Close",    ID_SYSCLOSE,    CTRL_F4,   0 )
  120.     ENDPOPDOWN
  121. ENDMENU
  122.  
  123. 
  124.