home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 4 Unleashed
/
Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso
/
tedevkit
/
ter.rc
< prev
next >
Wrap
Text File
|
1995-08-15
|
13KB
|
295 lines
/****************************************************************************
When directly linking the TER routines, include this file at the end of
your applications resource file.
Instead, if you are using the TER DLL, you do not need to include
this file into your application's resource file.
*****************************************************************************/
#include "windows.h"
#include "ter_cmd.h"
#include "ter_dlg.h"
#include "ter_dlg.dlg"
/*****************************************************************************
Accelerator table to define keyboard commands
******************************************************************************/
TerAccTable ACCELERATORS
BEGIN
VK_PRIOR ,ID_PGUP ,VIRTKEY ,NOINVERT
VK_PRIOR ,ID_PGUP ,VIRTKEY ,NOINVERT ,SHIFT
VK_NEXT ,ID_PGDN ,VIRTKEY ,NOINVERT
VK_NEXT ,ID_PGDN ,VIRTKEY ,NOINVERT ,SHIFT
VK_UP ,ID_UP ,VIRTKEY ,NOINVERT
VK_UP ,ID_UP ,VIRTKEY ,NOINVERT ,SHIFT
VK_DOWN ,ID_DOWN ,VIRTKEY ,NOINVERT
VK_DOWN ,ID_DOWN ,VIRTKEY ,NOINVERT ,SHIFT
VK_LEFT ,ID_LEFT ,VIRTKEY ,NOINVERT
VK_LEFT ,ID_LEFT ,VIRTKEY ,NOINVERT ,SHIFT
VK_RIGHT ,ID_RIGHT ,VIRTKEY ,NOINVERT
VK_RIGHT ,ID_RIGHT ,VIRTKEY ,NOINVERT ,SHIFT
VK_HOME ,ID_LINE_BEGIN ,VIRTKEY ,NOINVERT
VK_HOME ,ID_LINE_BEGIN ,VIRTKEY ,NOINVERT ,SHIFT
VK_END ,ID_LINE_END ,VIRTKEY ,NOINVERT
VK_END ,ID_LINE_END ,VIRTKEY ,NOINVERT ,SHIFT
VK_UP ,ID_CTRL_UP ,VIRTKEY ,NOINVERT ,CONTROL
VK_UP ,ID_CTRL_UP ,VIRTKEY ,NOINVERT ,CONTROL ,SHIFT
VK_DOWN ,ID_CTRL_DOWN ,VIRTKEY ,NOINVERT ,CONTROL
VK_DOWN ,ID_CTRL_DOWN ,VIRTKEY ,NOINVERT ,CONTROL ,SHIFT
VK_PRIOR ,ID_FILE_BEGIN ,VIRTKEY ,NOINVERT ,CONTROL
VK_PRIOR ,ID_FILE_BEGIN ,VIRTKEY ,NOINVERT ,CONTROL ,SHIFT
VK_HOME ,ID_FILE_BEGIN ,VIRTKEY ,NOINVERT ,CONTROL
VK_HOME ,ID_FILE_BEGIN ,VIRTKEY ,NOINVERT ,CONTROL ,SHIFT
VK_NEXT ,ID_FILE_END ,VIRTKEY ,NOINVERT ,CONTROL
VK_NEXT ,ID_FILE_END ,VIRTKEY ,NOINVERT ,CONTROL ,SHIFT
VK_END ,ID_FILE_END ,VIRTKEY ,NOINVERT ,CONTROL
VK_END ,ID_FILE_END ,VIRTKEY ,NOINVERT ,CONTROL ,SHIFT
VK_RIGHT ,ID_NEXT_WORD ,VIRTKEY ,NOINVERT ,CONTROL
VK_RIGHT ,ID_NEXT_WORD ,VIRTKEY ,NOINVERT ,CONTROL ,SHIFT
VK_LEFT ,ID_PREV_WORD ,VIRTKEY ,NOINVERT ,CONTROL
VK_LEFT ,ID_PREV_WORD ,VIRTKEY ,NOINVERT ,CONTROL ,SHIFT
VK_DELETE ,ID_DEL ,VIRTKEY ,NOINVERT
VK_TAB ,ID_BACK_TAB ,VIRTKEY ,NOINVERT ,SHIFT
VK_F9 ,ID_INS_AFT ,VIRTKEY ,NOINVERT
VK_F5 ,ID_INS_BEF ,VIRTKEY ,NOINVERT ,CONTROL
VK_F9 ,ID_DEL_LINE ,VIRTKEY ,NOINVERT ,SHIFT
"J" ,ID_JOIN_LINE ,VIRTKEY ,NOINVERT ,ALT
"S" ,ID_SPLIT_LINE ,VIRTKEY ,NOINVERT ,ALT
VK_F8 ,ID_HILIGHT_LINE,VIRTKEY ,NOINVERT
"A" ,ID_SELECT_ALL ,VIRTKEY ,NOINVERT ,CONTROL
"X" ,ID_CUT ,VI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VERT ,ALT
"5" ,ID_SUBSCR_ON ,VIRTKEY ,NOINVERT ,ALT
"6" ,ID_STRIKE_ON ,VIRTKEY ,NOINVERT ,ALT
"7" ,ID_COLOR ,VIRTKEY ,NOINVERT ,ALT
VK_F10 ,ID_FONTS ,VIRTKEY ,NOINVERT ,ALT
"P" ,ID_PARA_NORMAL ,VIRTKEY ,NOINVERT ,ALT
"8" ,ID_CENTER ,VIRTKEY ,NOINVERT ,ALT
"9" ,ID_RIGHT_JUSTIFY,VIRTKEY ,NOINVERT ,ALT
"O" ,ID_DOUBLE_SPACE,VIRTKEY ,NOINVERT ,ALT
"L" ,ID_LEFT_INDENT ,VIRTKEY ,NOINVERT ,ALT
"R" ,ID_RIGHT_INDENT,VIRTKEY ,NOINVERT ,ALT
"T" ,ID_HANGING_INDENT,VIRTKEY,NOINVERT ,ALT
VK_RETURN ,ID_PAGE_BREAK ,VIRTKEY ,NOINVERT ,CONTROL
END
/*****************************************************************************
Menu table
******************************************************************************/
TerMenu MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Save\tF3" ,ID_SAVE
MENUITEM "Save&As...\tShift+F3" ,ID_SAVEAS
MENUITEM SEPARATOR
MENUITEM "Page &Layout..." ,ID_PAGE_OPTIONS
MENUITEM "Printer &Setup...\tShift+F4" ,ID_PRINT_OPTIONS
MENUITEM "&Print...\tF4" ,ID_PRINT
MENUITEM "&Print Preview" ,ID_PRINT_PREVIEW
MENUITEM SEPARATOR
MENUITEM "&Exit\tCtrl+F3" ,ID_QUIT
END
POPUP "&Edit"
BEGIN
MENUITEM "Cut\tCtrl+X" ,ID_CUT
MENUITEM "Copy\tCtrl+C" ,ID_COPY
MENUITEM "Paste\tCtrl+V" ,ID_PASTE
MENUITEM "Paste Special..." ,ID_PASTE_SPEC
MENUITEM SEPARATOR
MENUITEM "Edit Picture..." ,ID_EDIT_PICT
MENUITEM "&Undo...\tShift+F8" ,ID_UNDO
MENUITEM SEPARATOR
MENUITEM "Select All\tCtrl+A" ,ID_SELECT_ALL
MENUITEM SEPARATOR
MENUITEM "&Repaginate" ,ID_REPAGINATE
MENUITEM "&Edit Section..." ,ID_SECT_OPTIONS
MENUITEM SEPARATOR
POPUP "&Table"
BEGIN
MENUITEM "Insert &Table" ,ID_TABLE_INSERT
MENUITEM SEPARATOR
MENUITEM "&Insert Row" ,ID_TABLE_INSERT_ROW
MENUITEM "&Merge Cells" ,ID_TABLE_MERGE_CELLS
MENUITEM "&Split Cell" ,ID_TABLE_SPLIT_CELL
MENUITEM "&Delete Cells..." ,ID_TABLE_DEL_CELLS
MENUITEM SEPARATOR
MENUITEM "&Row Position..." ,ID_TABLE_ROW_POS
MENUITEM "Cell &Border..." ,ID_TABLE_CELL_BORDER
MENUITEM "Cell S&hading..." ,ID_TABLE_CELL_SHADE
MENUITEM SEPARATOR
MENUITEM "Show &Gridlines" ,ID_TABLE_SHOW_GRID
END
MENUITEM SEPARATOR
MENUITEM "Copy Line Block\tAlt+C" ,ID_BLOCK_COPY
MENUITEM "Move Line Block\tAlt+M" ,ID_BLOCK_MOVE
MENUITEM SEPARATOR
MENUITEM "Edit Page Header/Footer" ,ID_EDIT_HDR_FTR
MENUITEM SEPARATOR
POPUP "&Line Edit..."
BEGIN
MENUITEM "Insert Line &After\tF9" ,ID_INS_AFT
MENUITEM "Insert Line &Before\tCtrl+F5" ,ID_INS_BEF
MENUITEM "&Delete Line\tShift+F9" ,ID_DEL_LINE
MENUITEM SEPARATOR
MENUITEM "&Join Line\tAlt+J" ,ID_JOIN_LINE
MENUITEM "&Split Line\tAlt+S" ,ID_SPLIT_LINE
END
END
POPUP "&View"
BEGIN
MENUITEM "&Page Mode" ,ID_PAGE_MODE
MENUITEM SEPARATOR
MENUITEM "&Ruler" ,ID_RULER
MENUITEM "&Tool Bar" ,ID_TOOL_BAR
MENUITEM "&Status Ribbon" ,ID_STATUS_RIBBON
MENUITEM "Paragraph &Marker" ,ID_SHOW_PARA_MARK
MENUITEM SEPARATOR
MENUITEM "&Hidden Text" ,ID_SHOW_HIDDEN
MENUITEM "Hyper&link Cursor" ,ID_SHOW_HYPERLINK_CURSOR
MENUITEM SEPARATOR
MENUITEM "Page Header/&Footer" ,ID_VIEW_HDR_FTR
END
POPUP "&Insert"
BEGIN
POPUP "&Insert Break..."
BEGIN
MENUITEM "&Page Break\tCtrl+Enter" ,ID_PAGE_BREAK
MENUITEM "&Section Break" ,ID_SECT_BREAK
MENUITEM "&Column Break" ,ID_COL_BREAK
END
MENUITEM SEPARATOR
MENUITEM "P&icture...\tAlt+F8" ,ID_PICT_FROM_FILE
MENUITEM "Object..." ,ID_INSERT_OBJECT
MENUITEM "Frame" ,ID_INSERT_PARA_FRAME
MENUITEM SEPARATOR
MENUITEM "Page Number" ,ID_INSERT_PAGE_NUMBER
END
POPUP "Fo&nt"
BEGIN
MENUITEM "Normal\tAlt+0" ,ID_CHAR_NORMAL
MENUITEM SEPARATOR
MENUITEM "Bold\tCtrl+B" ,ID_BOLD_ON
MENUITEM "Underline\tCtrl+U" ,ID_ULINE_ON
MENUITEM "Double Underline\tCtrl+D" ,ID_ULINED_ON
MENUITEM "Italic\tCtrl+I" ,ID_ITALIC_ON
MENUITEM "Superscript\tAlt+4" ,ID_SUPSCR_ON
MENUITEM "Subscript\tAlt+5" ,ID_SUBSCR_ON
MENUITEM "Strike\tAlt+6" ,ID_STRIKE_ON
MENUITEM SEPARATOR
MENUITEM "Fonts...\tAlt+F10" ,ID_FONTS
MENUITEM SEPARATOR
MENUITEM "Text Color..." ,ID_COLOR
MENUITEM "Background Color..." ,ID_BK_COLOR
MENUITEM "Hidden\tCtrl+H" ,ID_HIDDEN_ON
MENUITEM "Protect" ,ID_PROTECT_ON
END
POPUP "&Paragraph"
BEGIN
MENUITEM "Normal\tAlt+P" ,ID_PARA_NORMAL
MENUITEM SEPARATOR
MENUITEM "Center\tAlt+8" ,ID_CENTER
MENUITEM "Right Justify\tAlt+9" ,ID_RIGHT_JUSTIFY
MENUITEM "Justify Both" ,ID_JUSTIFY
MENUITEM "Double Space\tAlt+O" ,ID_DOUBLE_SPACE
MENUITEM SEPARATOR
MENUITEM "Indent Left\tAlt+L" ,ID_LEFT_INDENT
MENUITEM "Indent Right\tAlt+R" ,ID_RIGHT_INDENT
MENUITEM "Hanging Indent\tAlt+T" ,ID_HANGING_INDENT
MENUITEM SEPARATOR
MENUITEM "Border and Shading..." ,ID_PARA_BORDER
MENUITEM "Paragraph Spacing..." ,ID_PARA_SPACING
MENUITEM SEPARATOR
MENUITEM "Clear Tab..." ,ID_TAB_CLEAR
MENUITEM "Clear All Tabs" ,ID_TAB_CLEAR_ALL
END
POPUP "&Other"
BEGIN
MENUITEM "&Search...\tF5" ,ID_SEARCH
MENUITEM "Search &Forward\tCtrl+F" ,ID_SEARCH_FOR
MENUITEM "Search &Backward\tCtrl+Shift+F" ,ID_SEARCH_BACK
MENUITEM "&Replace...\tF6" ,ID_REPLACE
MENUITEM SEPARATOR
MENUITEM "&Jump...\tF10" ,ID_JUMP
MENUITEM "&Protection Lock" ,ID_PROTECTION_LOCK
/* MENUITEM SEPARATOR
MENUITEM "&Spell Check" ,ID_SPELL
*/
END
MENUITEM "&Help" ,ID_TER_HELP
END
/*****************************************************************************
Tool bar bitmaps
******************************************************************************/
BoldOnBM BITMAP TER_BON.BMP
BoldOffBM BITMAP TER_BOFF.BMP
ItalicOnBM BITMAP TER_ION.BMP
ItalicOffBM BITMAP TER_IOFF.BMP
UlineOnBM BITMAP TER_UON.BMP
UlineOffBM BITMAP TER_UOFF.BMP
JustRightBM BITMAP TER_JR.BMP
JustCenterBM BITMAP TER_JC.BMP
DoubleSpaceBM BITMAP TER_DS.BMP
IndentLeftBM BITMAP TER_IL.BMP
IndentRightBM BITMAP TER_IR.BMP
IndentHangingBM BITMAP TER_IH.BMP
/*****************************************************************************
Cursor shapes
******************************************************************************/
Table1 CURSOR TER_TBL1.CUR
Tab1 CURSOR TER_TAB1.CUR
Hyperlink CURSOR TER_LINK.CUR
Plus CURSOR TER_PLUS.CUR