summaryrefslogtreecommitdiff
path: root/cord/tests/de_win.rc
blob: 746a73dd22319f64f22b2135ac9e027df49cffdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
 *
 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
 * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
 *
 * Permission is hereby granted to use or copy this program
 * for any purpose,  provided the above notices are retained on all copies.
 * Permission to modify the code and to distribute modified code is granted,
 * provided the above notices are retained, and a notice that the code was
 * modified is included with the above copyright notice.
 */

#include "windows.h"
#include "de_cmds.h"
#include "de_win.h"

ABOUTBOX DIALOG 19, 21, 163, 47
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Demonstration Text Editor"
BEGIN
    LTEXT "Demonstration Text Editor", -1, 44, 8, 118, 8, WS_CHILD | WS_VISIBLE | WS_GROUP
    PUSHBUTTON "OK", IDOK, 118, 27, 24, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
END

DE MENU
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Save\t^W", IDM_FILESAVE
        MENUITEM "E&xit\t^D", IDM_FILEEXIT
    END

    POPUP "&Edit"
    BEGIN
        MENUITEM "Page &Down\t^R^N", IDM_EDITPDOWN
        MENUITEM "Page &Up\t^R^P", IDM_EDITPUP
        MENUITEM "U&ndo\t^U", IDM_EDITUNDO
        MENUITEM "&Locate\t^L ... ^L", IDM_EDITLOCATE
        MENUITEM "D&own\t^N", IDM_EDITDOWN
        MENUITEM "U&p\t^P", IDM_EDITUP
        MENUITEM "Le&ft\t^B", IDM_EDITLEFT
        MENUITEM "&Right\t^F", IDM_EDITRIGHT
        MENUITEM "Delete &Backward\tBS", IDM_EDITBS
        MENUITEM "Delete F&orward\tDEL", IDM_EDITDEL
        MENUITEM "&Top\t^T", IDM_EDITTOP
    END

    POPUP "&Help"
    BEGIN
        MENUITEM "&Contents", IDM_HELPCONTENTS
        MENUITEM "&About...", IDM_HELPABOUT
    END

    MENUITEM "Page_&Down", IDM_EDITPDOWN
    MENUITEM "Page_&Up", IDM_EDITPUP
END

DE ACCELERATORS
BEGIN
    "^R", IDM_EDITREPEAT
    "^N", IDM_EDITDOWN
    "^P", IDM_EDITUP
    "^L", IDM_EDITLOCATE
    "^B", IDM_EDITLEFT
    "^F", IDM_EDITRIGHT
    "^T", IDM_EDITTOP
    VK_DELETE, IDM_EDITDEL, VIRTKEY
    VK_BACK, IDM_EDITBS, VIRTKEY
END