home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
MAJ
/
1513
/
WEEXTSRC.ZI_
/
WE_EXT.RC
< prev
next >
Wrap
Text File
|
1993-07-13
|
6KB
|
165 lines
#include <windows.h>
#include "we_ext.h"
#include "private.h"
#include "we_ext.dlg"
/*
* JL Dove 12/9/92 Added Previous Files to short menu
* Added the Project menu item to allow loading or updating the Configuration
* Changed exit from Alt-X to Alt-F4 to conform to Windows.
* Added the Next window (Alt-N) to conform to default Winedit menu.
*/
/* short menu */
MyShortMenu MENU PRELOAD
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New", IDM_FILENEW
MENUITEM "&Open...\tF3", IDM_FILEOPEN
MENUITEM "&Previous Files...\tF4" IDM_FILELIST
MENUITEM SEPARATOR
MENUITEM "Pr&eferences..." IDM_FILESETPREF
MENUITEM SEPARATOR
MENUITEM "E&xit\tAlt+F4", IDM_FILEEXIT
MENUITEM "&Grep...\tF8" EXT_GREP
END
POPUP "&Help"
BEGIN
MENUITEM "&Index", IDM_HELPINDEX
MENUITEM "&Keyboard", IDM_HELPKEYBOARD
MENUITEM "&Commands", IDM_HELPCOMMANDS
MENUITEM "&Procedures", IDM_HELPPROCEDURES
MENUITEM "&Using Help", IDM_HELPHELP
MENUITEM SEPARATOR
MENUITEM "&About WinEdit..." IDM_HELPABOUT
END
POPUP "&Project"
BEGIN
MENUITEM "Con&figure...", IDM_MAKECONFIG
END
END
/* full menu */
MyMenu MENU PRELOAD
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New", IDM_FILENEW
MENUITEM "&Open...\tF3", IDM_FILEOPEN
MENUITEM "&Merge...\tCtrl+F3" IDM_FILEMERGE
MENUITEM "&Previous Files...\tF4", IDM_FILELIST
MENUITEM "&Close\tCtrl+F4", IDM_WINDOWCLOSE
MENUITEM SEPARATOR
MENUITEM "&Save\tF2", IDM_FILESAVE
MENUITEM "Save &As...\tCtrl+F2", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "&Print\tF9", IDM_FILEPRINT
MENUITEM "Page Se&tup..." IDM_FILEPAGESETUP
MENUITEM "P&rinter Setup...", IDM_FILEPRINTERSETUP
MENUITEM SEPARATOR
MENUITEM "Pr&eferences..." IDM_FILESETPREF
MENUITEM "&Key Assignments...\tAlt+K" IDM_FILEKEYS
MENUITEM SEPARATOR
MENUITEM "E&xit\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Undo\tCtrl+Z", IDM_EDITUNDO
MENUITEM "&Redo\tCtrl+BkSp", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", IDM_EDITCUT
MENUITEM "&Copy\tCtrl+C", IDM_EDITCOPY
MENUITEM "&Paste\tCtrl+V", IDM_EDITPASTE
MENUITEM "&Delete\tDel", IDM_EDITCLEAR
MENUITEM SEPARATOR
MENUITEM "&Insert Mode\tIns", IDM_EDITTOGGLEINS
MENUITEM "&Word Wrap", IDM_EDITTOGGLEWRAP
MENUITEM "Column &Block\tAlt+C", IDM_EDITSETCOLUMNBLOCK
MENUITEM "&Select All", IDM_EDITSELECTALL
END
POPUP "&Search"
BEGIN
MENUITEM "&Find...\tF5", IDM_SEARCHFIND
MENUITEM "&Repeat Last Find\tCtrl+F5|L", IDM_SEARCHNEXT
MENUITEM "&Change...\tF6", IDM_SEARCHCHANGE
MENUITEM SEPARATOR
MENUITEM "&Previous Error\tShift+F3", IDM_SEARCHPREVERR
MENUITEM "&Next Error\tShift+F4", IDM_SEARCHNEXTERR
MENUITEM "&View Compiler Output", IDM_SEARCHVIEWEDOUT
MENUITEM SEPARATOR
MENUITEM "&Go to line...\tAlt+G", IDM_EDITGOTOLINE
MENUITEM "Gr&ep...\tF8" EXT_GREP
END
POPUP "&Project"
BEGIN
MENUITEM "&Compile\tShift+F7", IDM_COMPILE
MENUITEM "&Make\tF7", IDM_MAKE
MENUITEM "&Rebuild\tCtrl+F7", IDM_REBUILD
MENUITEM "&Debug\tCtrl+Shift+F7", IDM_DEBUG
MENUITEM "&Execute\tAlt+F7", IDM_EXECUTE
MENUITEM SEPARATOR
MENUITEM "Con&figure...", IDM_MAKECONFIG
END
POPUP "&Window"
BEGIN
MENUITEM "&Tile", IDM_WINDOWTILE
MENUITEM "&Cascade", IDM_WINDOWCASCADE
MENUITEM "&Next\tAlt+N", IDM_WINDOWNEXT
MENUITEM "Arrange &Icons", IDM_WINDOWICONS
MENUITEM "Close &All", IDM_WINDOWCLOSEALL
END
POPUP "&Help"
BEGIN
MENUITEM "&Index\tF1", IDM_HELPINDEX
MENUITEM "&Keyboard", IDM_HELPKEYBOARD
MENUITEM "&Commands", IDM_HELPCOMMANDS
MENUITEM "&Procedures", IDM_HELPPROCEDURES
MENUITEM "&Key Word Help\tShift+F1", IDM_HELPKEYWORDS
MENUITEM "&Using Help", IDM_HELPHELP
MENUITEM SEPARATOR
MENUITEM "&About WinEdit..." IDM_HELPABOUT
END
END
/* frame menu accelerators */
#define VK_C 0x43
#define VK_G 0x47
#define VK_V 0x56
#define VK_X 0x58
#define VK_Z 0x5A
#define VK_P 0x50
#define VK_R 0x52
#define VK_M 0x4D
#define VK_N 0x4E
#define VK_D 0x44
#define VK_L 0x4C
#define VK_0 48
#define VK_1 49
#define VK_2 50
#define VK_3 51
#define VK_4 52
#define VK_5 53
#define VK_6 54
#define VK_7 55
#define VK_8 56
#define VK_9 57
MyAccels ACCELERATORS PRELOAD
BEGIN
/* new example commands */
VK_F8, EXT_GREP, VIRTKEY /* new command */
"^I", EXT_IF /* new command */
"^F", EXT_FOR /* new command */
"^S", EXT_SWITCH /* new command */
END