home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / tedevkit / ter.rc < prev    next >
Text File  |  1995-08-15  |  13KB  |  295 lines

  1. /****************************************************************************
  2.     When directly linking the TER routines, include this file at the end of 
  3.     your applications resource file.
  4.  
  5.     Instead, if you are using the TER DLL, you do not need to include 
  6.     this file into your application's resource file.
  7. *****************************************************************************/
  8. #include "windows.h"
  9. #include "ter_cmd.h"
  10. #include "ter_dlg.h"
  11. #include "ter_dlg.dlg"
  12.  
  13. /*****************************************************************************
  14.     Accelerator table to define keyboard commands
  15. ******************************************************************************/
  16.  
  17. TerAccTable  ACCELERATORS
  18. BEGIN
  19.    VK_PRIOR     ,ID_PGUP        ,VIRTKEY  ,NOINVERT
  20.    VK_PRIOR     ,ID_PGUP        ,VIRTKEY  ,NOINVERT     ,SHIFT
  21.    VK_NEXT      ,ID_PGDN        ,VIRTKEY  ,NOINVERT
  22.    VK_NEXT      ,ID_PGDN        ,VIRTKEY  ,NOINVERT     ,SHIFT
  23.    VK_UP        ,ID_UP          ,VIRTKEY  ,NOINVERT
  24.    VK_UP        ,ID_UP          ,VIRTKEY  ,NOINVERT     ,SHIFT
  25.    VK_DOWN      ,ID_DOWN        ,VIRTKEY  ,NOINVERT
  26.    VK_DOWN      ,ID_DOWN        ,VIRTKEY  ,NOINVERT     ,SHIFT
  27.    VK_LEFT      ,ID_LEFT        ,VIRTKEY  ,NOINVERT
  28.    VK_LEFT      ,ID_LEFT        ,VIRTKEY  ,NOINVERT     ,SHIFT
  29.    VK_RIGHT     ,ID_RIGHT       ,VIRTKEY  ,NOINVERT
  30.    VK_RIGHT     ,ID_RIGHT       ,VIRTKEY  ,NOINVERT     ,SHIFT
  31.    VK_HOME      ,ID_LINE_BEGIN  ,VIRTKEY  ,NOINVERT
  32.    VK_HOME      ,ID_LINE_BEGIN  ,VIRTKEY  ,NOINVERT     ,SHIFT
  33.    VK_END       ,ID_LINE_END    ,VIRTKEY  ,NOINVERT
  34.    VK_END       ,ID_LINE_END    ,VIRTKEY  ,NOINVERT     ,SHIFT
  35.  
  36.    VK_UP        ,ID_CTRL_UP     ,VIRTKEY  ,NOINVERT     ,CONTROL
  37.    VK_UP        ,ID_CTRL_UP     ,VIRTKEY  ,NOINVERT     ,CONTROL ,SHIFT
  38.    VK_DOWN      ,ID_CTRL_DOWN   ,VIRTKEY  ,NOINVERT     ,CONTROL
  39.    VK_DOWN      ,ID_CTRL_DOWN   ,VIRTKEY  ,NOINVERT     ,CONTROL ,SHIFT
  40.    VK_PRIOR     ,ID_FILE_BEGIN  ,VIRTKEY  ,NOINVERT     ,CONTROL
  41.    VK_PRIOR     ,ID_FILE_BEGIN  ,VIRTKEY  ,NOINVERT     ,CONTROL ,SHIFT
  42.    VK_HOME      ,ID_FILE_BEGIN  ,VIRTKEY  ,NOINVERT     ,CONTROL
  43.    VK_HOME      ,ID_FILE_BEGIN  ,VIRTKEY  ,NOINVERT     ,CONTROL ,SHIFT
  44.    VK_NEXT      ,ID_FILE_END    ,VIRTKEY  ,NOINVERT     ,CONTROL
  45.    VK_NEXT      ,ID_FILE_END    ,VIRTKEY  ,NOINVERT     ,CONTROL ,SHIFT
  46.    VK_END       ,ID_FILE_END    ,VIRTKEY  ,NOINVERT     ,CONTROL
  47.    VK_END       ,ID_FILE_END    ,VIRTKEY  ,NOINVERT     ,CONTROL ,SHIFT
  48.    VK_RIGHT     ,ID_NEXT_WORD   ,VIRTKEY  ,NOINVERT     ,CONTROL
  49.    VK_RIGHT     ,ID_NEXT_WORD   ,VIRTKEY  ,NOINVERT     ,CONTROL ,SHIFT
  50.    VK_LEFT      ,ID_PREV_WORD   ,VIRTKEY  ,NOINVERT     ,CONTROL
  51.    VK_LEFT      ,ID_PREV_WORD   ,VIRTKEY  ,NOINVERT     ,CONTROL ,SHIFT
  52.  
  53.    VK_DELETE    ,ID_DEL         ,VIRTKEY  ,NOINVERT
  54.    VK_TAB       ,ID_BACK_TAB    ,VIRTKEY  ,NOINVERT     ,SHIFT
  55.    VK_F9        ,ID_INS_AFT     ,VIRTKEY  ,NOINVERT             
  56.    VK_F5        ,ID_INS_BEF     ,VIRTKEY  ,NOINVERT     ,CONTROL
  57.    VK_F9        ,ID_DEL_LINE    ,VIRTKEY  ,NOINVERT     ,SHIFT
  58.    "J"          ,ID_JOIN_LINE   ,VIRTKEY  ,NOINVERT     ,ALT    
  59.    "S"          ,ID_SPLIT_LINE  ,VIRTKEY  ,NOINVERT     ,ALT
  60.  
  61.    VK_F8        ,ID_HILIGHT_LINE,VIRTKEY  ,NOINVERT   
  62.    "A"          ,ID_SELECT_ALL  ,VIRTKEY  ,NOINVERT     ,CONTROL
  63.    "X"          ,ID_CUT         ,VIRTKEY  ,NOINVERT     ,CONTROL
  64.    "C"          ,ID_COPY        ,VIRTKEY  ,NOINVERT     ,CONTROL
  65.    "V"          ,ID_PASTE       ,VIRTKEY  ,NOINVERT     ,CONTROL
  66.    VK_F8        ,ID_PICT_FROM_FILE,VIRTKEY,NOINVERT     ,ALT
  67.  
  68.    "C"          ,ID_BLOCK_COPY  ,VIRTKEY,NOINVERT       ,ALT
  69.    "M"          ,ID_BLOCK_MOVE  ,VIRTKEY,NOINVERT       ,ALT
  70.  
  71.  
  72.    VK_F5        ,ID_SEARCH      ,VIRTKEY  ,NOINVERT
  73.    "F"          ,ID_SEARCH_FOR  ,VIRTKEY  ,NOINVERT     ,CONTROL
  74.    "F"          ,ID_SEARCH_BACK ,VIRTKEY  ,NOINVERT     ,CONTROL , SHIFT
  75.    VK_F6        ,ID_REPLACE     ,VIRTKEY  ,NOINVERT     
  76.  
  77.    VK_F1        ,ID_TER_HELP    ,VIRTKEY  ,NOINVERT     
  78.    VK_F8        ,ID_UNDO        ,VIRTKEY  ,NOINVERT     ,SHIFT
  79.    VK_INSERT    ,ID_INSERT      ,VIRTKEY  ,NOINVERT
  80.    VK_F3        ,ID_SAVE        ,VIRTKEY  ,NOINVERT 
  81.    VK_F3        ,ID_SAVEAS      ,VIRTKEY  ,NOINVERT     ,SHIFT
  82.    VK_F3        ,ID_QUIT        ,VIRTKEY  ,NOINVERT     ,CONTROL
  83.    VK_F4        ,ID_PRINT       ,VIRTKEY  ,NOINVERT     
  84.    VK_F4        ,ID_PRINT_OPTIONS,VIRTKEY ,NOINVERT     ,SHIFT
  85.    VK_F10       ,ID_JUMP        ,VIRTKEY  ,NOINVERT   
  86.  
  87.    "0"          ,ID_CHAR_NORMAL ,VIRTKEY  ,NOINVERT     ,ALT
  88.    "B"          ,ID_BOLD_ON     ,VIRTKEY  ,NOINVERT     ,CONTROL
  89.    "U"          ,ID_ULINE_ON    ,VIRTKEY  ,NOINVERT     ,CONTROL
  90.    "D"          ,ID_ULINED_ON   ,VIRTKEY  ,NOINVERT     ,CONTROL
  91.    "I"          ,ID_ITALIC_ON   ,VIRTKEY  ,NOINVERT     ,CONTROL
  92.    "H"          ,ID_HIDDEN_ON   ,VIRTKEY  ,NOINVERT     ,CONTROL
  93.    "3"          ,ID_PROTECT_ON  ,VIRTKEY  ,NOINVERT     ,ALT
  94.    "4"          ,ID_SUPSCR_ON   ,VIRTKEY  ,NOINVERT     ,ALT
  95.    "5"          ,ID_SUBSCR_ON   ,VIRTKEY  ,NOINVERT     ,ALT
  96.    "6"          ,ID_STRIKE_ON   ,VIRTKEY  ,NOINVERT     ,ALT
  97.    
  98.    "7"          ,ID_COLOR       ,VIRTKEY  ,NOINVERT     ,ALT
  99.  
  100.    VK_F10       ,ID_FONTS       ,VIRTKEY  ,NOINVERT     ,ALT
  101.  
  102.    "P"          ,ID_PARA_NORMAL ,VIRTKEY  ,NOINVERT     ,ALT
  103.    "8"          ,ID_CENTER      ,VIRTKEY  ,NOINVERT     ,ALT
  104.    "9"          ,ID_RIGHT_JUSTIFY,VIRTKEY ,NOINVERT     ,ALT
  105.    "O"          ,ID_DOUBLE_SPACE,VIRTKEY  ,NOINVERT     ,ALT
  106.    "L"          ,ID_LEFT_INDENT ,VIRTKEY  ,NOINVERT     ,ALT
  107.    "R"          ,ID_RIGHT_INDENT,VIRTKEY  ,NOINVERT     ,ALT
  108.    "T"          ,ID_HANGING_INDENT,VIRTKEY,NOINVERT     ,ALT
  109.  
  110.    VK_RETURN    ,ID_PAGE_BREAK  ,VIRTKEY  ,NOINVERT     ,CONTROL
  111.  
  112. END
  113.  
  114. /*****************************************************************************
  115.     Menu table 
  116. ******************************************************************************/
  117. TerMenu MENU
  118. BEGIN
  119.    POPUP "&File"
  120.    BEGIN
  121.        MENUITEM "&Save\tF3"                    ,ID_SAVE
  122.        MENUITEM "Save&As...\tShift+F3"         ,ID_SAVEAS
  123.        MENUITEM SEPARATOR
  124.        MENUITEM "Page &Layout..."              ,ID_PAGE_OPTIONS
  125.        MENUITEM "Printer &Setup...\tShift+F4"  ,ID_PRINT_OPTIONS
  126.        MENUITEM "&Print...\tF4"                ,ID_PRINT
  127.        MENUITEM "&Print Preview"               ,ID_PRINT_PREVIEW
  128.        MENUITEM SEPARATOR
  129.        MENUITEM "&Exit\tCtrl+F3"               ,ID_QUIT
  130.    END
  131.  
  132.    POPUP "&Edit"
  133.    BEGIN
  134.        MENUITEM "Cut\tCtrl+X"                  ,ID_CUT
  135.        MENUITEM "Copy\tCtrl+C"                 ,ID_COPY
  136.        MENUITEM "Paste\tCtrl+V"                ,ID_PASTE
  137.        MENUITEM "Paste Special..."             ,ID_PASTE_SPEC
  138.        MENUITEM SEPARATOR
  139.        MENUITEM "Edit Picture..."              ,ID_EDIT_PICT
  140.        MENUITEM "&Undo...\tShift+F8"           ,ID_UNDO
  141.        MENUITEM SEPARATOR
  142.        MENUITEM "Select All\tCtrl+A"           ,ID_SELECT_ALL
  143.        MENUITEM SEPARATOR
  144.        MENUITEM "&Repaginate"                  ,ID_REPAGINATE
  145.        MENUITEM "&Edit Section..."             ,ID_SECT_OPTIONS
  146.        MENUITEM SEPARATOR
  147.  
  148.        POPUP "&Table"
  149.        BEGIN
  150.            MENUITEM "Insert &Table"                ,ID_TABLE_INSERT
  151.            MENUITEM SEPARATOR
  152.            MENUITEM "&Insert Row"                  ,ID_TABLE_INSERT_ROW
  153.            MENUITEM "&Merge Cells"                 ,ID_TABLE_MERGE_CELLS
  154.            MENUITEM "&Split Cell"                  ,ID_TABLE_SPLIT_CELL
  155.            MENUITEM "&Delete Cells..."             ,ID_TABLE_DEL_CELLS
  156.            MENUITEM SEPARATOR
  157.            MENUITEM "&Row Position..."             ,ID_TABLE_ROW_POS
  158.            MENUITEM "Cell &Border..."              ,ID_TABLE_CELL_BORDER
  159.            MENUITEM "Cell S&hading..."             ,ID_TABLE_CELL_SHADE
  160.            MENUITEM SEPARATOR
  161.            MENUITEM "Show &Gridlines"              ,ID_TABLE_SHOW_GRID
  162.        END
  163.  
  164.        MENUITEM SEPARATOR
  165.        MENUITEM "Copy Line Block\tAlt+C"           ,ID_BLOCK_COPY
  166.        MENUITEM "Move Line Block\tAlt+M"           ,ID_BLOCK_MOVE
  167.        MENUITEM SEPARATOR
  168.  
  169.        MENUITEM "Edit Page Header/Footer"          ,ID_EDIT_HDR_FTR
  170.        MENUITEM SEPARATOR
  171.  
  172.        POPUP "&Line Edit..."
  173.        BEGIN
  174.            MENUITEM "Insert Line &After\tF9"       ,ID_INS_AFT
  175.            MENUITEM "Insert Line &Before\tCtrl+F5" ,ID_INS_BEF
  176.            MENUITEM "&Delete Line\tShift+F9"       ,ID_DEL_LINE
  177.            MENUITEM SEPARATOR
  178.            MENUITEM "&Join Line\tAlt+J"            ,ID_JOIN_LINE
  179.            MENUITEM "&Split Line\tAlt+S"           ,ID_SPLIT_LINE
  180.        END
  181.    END
  182.  
  183.    POPUP "&View"
  184.    BEGIN
  185.        MENUITEM "&Page Mode"                   ,ID_PAGE_MODE
  186.        MENUITEM SEPARATOR
  187.        MENUITEM "&Ruler"                       ,ID_RULER
  188.        MENUITEM "&Tool Bar"                    ,ID_TOOL_BAR
  189.        MENUITEM "&Status Ribbon"               ,ID_STATUS_RIBBON
  190.        MENUITEM "Paragraph &Marker"            ,ID_SHOW_PARA_MARK
  191.        MENUITEM SEPARATOR
  192.        MENUITEM "&Hidden Text"                 ,ID_SHOW_HIDDEN
  193.        MENUITEM "Hyper&link Cursor"            ,ID_SHOW_HYPERLINK_CURSOR
  194.        MENUITEM SEPARATOR
  195.        MENUITEM "Page Header/&Footer"          ,ID_VIEW_HDR_FTR
  196.    END
  197.    
  198.    POPUP "&Insert"
  199.    BEGIN
  200.        POPUP "&Insert Break..."
  201.        BEGIN
  202.           MENUITEM "&Page Break\tCtrl+Enter"    ,ID_PAGE_BREAK
  203.           MENUITEM "&Section Break"             ,ID_SECT_BREAK
  204.           MENUITEM "&Column Break"              ,ID_COL_BREAK
  205.        END
  206.        MENUITEM SEPARATOR
  207.        MENUITEM "P&icture...\tAlt+F8"           ,ID_PICT_FROM_FILE
  208.        MENUITEM "Object..."                     ,ID_INSERT_OBJECT
  209.        MENUITEM "Frame"                         ,ID_INSERT_PARA_FRAME
  210.        MENUITEM SEPARATOR
  211.        MENUITEM "Page Number"                   ,ID_INSERT_PAGE_NUMBER
  212.    END
  213.  
  214.    POPUP "Fo&nt"
  215.    BEGIN
  216.        MENUITEM "Normal\tAlt+0"                ,ID_CHAR_NORMAL
  217.        MENUITEM SEPARATOR
  218.        MENUITEM "Bold\tCtrl+B"                 ,ID_BOLD_ON
  219.        MENUITEM "Underline\tCtrl+U"            ,ID_ULINE_ON
  220.        MENUITEM "Double Underline\tCtrl+D"     ,ID_ULINED_ON
  221.        MENUITEM "Italic\tCtrl+I"               ,ID_ITALIC_ON
  222.        MENUITEM "Superscript\tAlt+4"           ,ID_SUPSCR_ON
  223.        MENUITEM "Subscript\tAlt+5"             ,ID_SUBSCR_ON
  224.        MENUITEM "Strike\tAlt+6"                ,ID_STRIKE_ON
  225.        MENUITEM SEPARATOR
  226.        MENUITEM "Fonts...\tAlt+F10"            ,ID_FONTS
  227.        MENUITEM SEPARATOR
  228.        MENUITEM "Text Color..."                ,ID_COLOR
  229.        MENUITEM "Background Color..."          ,ID_BK_COLOR
  230.        MENUITEM "Hidden\tCtrl+H"               ,ID_HIDDEN_ON
  231.        MENUITEM "Protect"                      ,ID_PROTECT_ON
  232.    END
  233.  
  234.    POPUP "&Paragraph"
  235.    BEGIN
  236.        MENUITEM "Normal\tAlt+P"                ,ID_PARA_NORMAL
  237.        MENUITEM SEPARATOR
  238.        MENUITEM "Center\tAlt+8"                ,ID_CENTER
  239.        MENUITEM "Right Justify\tAlt+9"         ,ID_RIGHT_JUSTIFY
  240.        MENUITEM "Justify Both"                 ,ID_JUSTIFY
  241.        MENUITEM "Double Space\tAlt+O"          ,ID_DOUBLE_SPACE
  242.        MENUITEM SEPARATOR
  243.        MENUITEM "Indent Left\tAlt+L"           ,ID_LEFT_INDENT
  244.        MENUITEM "Indent Right\tAlt+R"          ,ID_RIGHT_INDENT
  245.        MENUITEM "Hanging Indent\tAlt+T"        ,ID_HANGING_INDENT
  246.        MENUITEM SEPARATOR
  247.        MENUITEM "Border and Shading..."        ,ID_PARA_BORDER
  248.        MENUITEM "Paragraph Spacing..."         ,ID_PARA_SPACING
  249.        MENUITEM SEPARATOR
  250.        MENUITEM "Clear Tab..."                 ,ID_TAB_CLEAR
  251.        MENUITEM "Clear All Tabs"               ,ID_TAB_CLEAR_ALL
  252.    END
  253.  
  254.    POPUP "&Other"
  255.    BEGIN
  256.        MENUITEM "&Search...\tF5"                 ,ID_SEARCH
  257.        MENUITEM "Search &Forward\tCtrl+F"        ,ID_SEARCH_FOR
  258.        MENUITEM "Search &Backward\tCtrl+Shift+F" ,ID_SEARCH_BACK
  259.        MENUITEM "&Replace...\tF6"                ,ID_REPLACE
  260.        MENUITEM SEPARATOR
  261.        MENUITEM "&Jump...\tF10"                  ,ID_JUMP
  262.        MENUITEM "&Protection Lock"               ,ID_PROTECTION_LOCK
  263.  
  264.    /*  MENUITEM SEPARATOR
  265.        MENUITEM "&Spell Check"                   ,ID_SPELL
  266.    */
  267.  
  268.    END
  269.    MENUITEM "&Help"                              ,ID_TER_HELP
  270. END
  271.  
  272. /*****************************************************************************
  273.     Tool bar bitmaps
  274. ******************************************************************************/
  275. BoldOnBM        BITMAP  TER_BON.BMP
  276. BoldOffBM       BITMAP  TER_BOFF.BMP
  277. ItalicOnBM      BITMAP  TER_ION.BMP
  278. ItalicOffBM     BITMAP  TER_IOFF.BMP
  279. UlineOnBM       BITMAP  TER_UON.BMP
  280. UlineOffBM      BITMAP  TER_UOFF.BMP
  281. JustRightBM     BITMAP  TER_JR.BMP
  282. JustCenterBM    BITMAP  TER_JC.BMP
  283. DoubleSpaceBM   BITMAP  TER_DS.BMP
  284. IndentLeftBM    BITMAP  TER_IL.BMP
  285. IndentRightBM   BITMAP  TER_IR.BMP
  286. IndentHangingBM BITMAP  TER_IH.BMP
  287.  
  288. /*****************************************************************************
  289.     Cursor shapes
  290. ******************************************************************************/
  291. Table1          CURSOR  TER_TBL1.CUR
  292. Tab1            CURSOR  TER_TAB1.CUR
  293. Hyperlink       CURSOR  TER_LINK.CUR
  294. Plus            CURSOR  TER_PLUS.CUR
  295.