#include "smartpad.hpp"


IDB_NEWUP   BITMAP "newup.bmp"
IDB_NEWDOWN BITMAP "newdown.bmp"
IDB_NEWGR   BITMAP "newgr.bmp"

IDB_OPENUP BITMAP "openup.bmp"
IDB_OPENDOWN BITMAP "opendown.bmp"
IDB_OPENGR BITMAP "opengr.bmp"

IDB_SAVEUP BITMAP "saveup.bmp"
IDB_SAVEDOWN BITMAP "savedown.bmp"
IDB_SAVEGR BITMAP "savegr.bmp"

IDB_EXITUP BITMAP "exitup.bmp"
IDB_EXITDOWN BITMAP "exitdown.bmp"
IDB_EXITGR BITMAP "exitgr.bmp"

IDB_COPYUP BITMAP "copyup.bmp"
IDB_COPYDOWN BITMAP "copydown.bmp"
IDB_COPYGR BITMAP "copygr.bmp"

IDB_PASTUP BITMAP "pastup.bmp"
IDB_PASTDOWN BITMAP "pastdown.bmp"
IDB_PASTGR BITMAP "pastgr.bmp"

IDB_CUTUP BITMAP "cutup.bmp"
IDB_CUTDOWN BITMAP "cutdown.bmp"
IDB_CUTGR BITMAP "cutgr.bmp"

IDB_UNDOUP BITMAP "undoup.bmp"
IDB_UNDODOWN BITMAP "undodown.bmp"
IDB_UNDOGR BITMAP "undogr.bmp"

IDB_HELPUP BITMAP "helpup.bmp"
IDB_HELPDOWN BITMAP "helpdown.bmp"
IDB_HELPGR BITMAP "helpgr.bmp"

APP_MENU MENU
BEGIN
	POPUP "&File"
	BEGIN
		MENUITEM "&New\tCtrl+N",      CM_FILENEW
		MENUITEM "&Open...\tCtrl+O",  CM_FILEOPEN
		MENUITEM "&Save\tCtrl+S",     CM_FILESAVE
		MENUITEM "Save &as...",       CM_FILESAVEAS
		MENUITEM SEPARATOR
		MENUITEM "&Print...",         CM_FILEPRINT,         GRAYED
		MENUITEM "Page se&tup...",    CM_FILEPAGE_SETUP,    GRAYED
		MENUITEM "P&rinter setup...", CM_FILEPRINTER_SETUP, GRAYED
		MENUITEM SEPARATOR
		MENUITEM "E&xit",             CM_FILEEXIT
	END

	POPUP "&Edit"
	BEGIN
		MENUITEM "&Undo\tCtrl+Z",     CM_EDITUNDO
		MENUITEM SEPARATOR
		MENUITEM "&Cut\tCtrl+X",      CM_EDITCUT
		MENUITEM "&Copy\tCtrl+C",     CM_EDITCOPY
		MENUITEM "&Paste\tCtrl+V",    CM_EDITPASTE
		MENUITEM "C&lear\tCtrl+Del",  CM_EDITCLEAR
		MENUITEM SEPARATOR
		MENUITEM "Select &All",       CM_EDITSELALL
	END

        POPUP "&Options"
        BEGIN
		MENUITEM "&Read-only",         CM_EDITSETREADONLY
		MENUITEM SEPARATOR
		MENUITEM "&Set Font...",       CM_FONT, GRAYED
        END

	POPUP "&Help"
	BEGIN
		MENUITEM "&Index\tF1",  CM_HELPINDEX,      GRAYED
		MENUITEM "&Keyboard",   CM_HELPKEYBOARD,   GRAYED
		MENUITEM "&Commands",   CM_HELPCOMMANDS,   GRAYED
		MENUITEM "&Procedures", CM_HELPPROCEDURES, GRAYED
		MENUITEM "&Using help", CM_HELPUSING_HELP, GRAYED
		MENUITEM SEPARATOR
		MENUITEM "&About...",   CM_HELPABOUT
	END
END

APPICON ICON "appicon.ico"

ABOUT DIALOG 25, 34, 118, 67
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About"
BEGIN
	CTEXT "Редактор текста\nSmart Pad\nVersion 1.0\n(C) Frolov A.V., 1994", -1, 34, 6, 79, 36, WS_CHILD | WS_VISIBLE | WS_GROUP
	ICON "APPICON", -1, 14, 16, 16, 16, WS_CHILD | WS_VISIBLE
	DEFPUSHBUTTON "OK", IDOK, 42, 47, 33, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
END

APP_ACCELERATORS ACCELERATORS 
BEGIN
        "N", CM_FILENEW, VIRTKEY, CONTROL
        "S", CM_FILESAVE, VIRTKEY, CONTROL
        "O", CM_FILEOPEN, VIRTKEY, CONTROL
	"Z", CM_EDITUNDO, VIRTKEY, CONTROL
	"X", CM_EDITCUT, VIRTKEY, CONTROL
	"C", CM_EDITCOPY, VIRTKEY, CONTROL
	"V", CM_EDITPASTE, VIRTKEY, CONTROL
	VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
	VK_F1, CM_HELPINDEX, VIRTKEY
END

