Annotation of pmsdk/samples/newcard/wincard/cardfile.rc, revision 1.1.1.1

1.1       root        1: #define IN_WINDOWS      1
                      2: #include "cardfile.h"
                      3: 
                      4: /*********************************************************************/
                      5: /*                                                                   */
                      6: /*  Windows Cardfile                                                */
                      7: /*  (c) Copyright Microsoft Corp. 1985,1986 - All Rights Reserved    */
                      8: /*                                                                   */
                      9: /*********************************************************************/
                     10: 
                     11: CFICON icon    CARDFILE.ICO
                     12: 
                     13: STRINGTABLE
                     14: BEGIN
                     15: /* prompts and such */
                     16:     IDS_DELCURCARD,     "Delete ""%%""?"
                     17:     IDS_CREATEFILE,     "Ok to create the file?"
                     18:     IDS_OKTOSAVE,       "Save current changes: %%"
                     19:     IDS_ABOUT,          "About..."
                     20:     IDS_CARDS,          " Cards"
                     21:     IDS_CARD,           " Card"
                     22:     IDS_UNTITLED,       "(untitled)"
                     23:     IDS_CARDDATA,       "Cardfile data"
                     24:     IDS_PICKUPPHONE,    "Please pick up the phone.  Ok to continue?"
                     25:     IDS_CARDFILE,       "Cardfile"
                     26: /* errors */
                     27:     IDS_ECANTPRINTPICT, "Not enough memory to print picture."
                     28:     IDS_EINSMEMORY,     "Not enough memory."
                     29:     IDS_EFILEEXISTS,    "Replace existing %%"
                     30:     IDS_EINVALIDFILE,   "Not a valid filename."
                     31:     IDS_ECLIPEMPTYTEXT, "There is no text in the clipboard."
                     32:     IDS_ENOTEXTSEL,     "No text is selected."
                     33:     IDS_EDISKFULLFILE,  "Not enough disk space to save file."
                     34:     IDS_ECANTMAKETEMP,  "Cannot create temp file.  You cannot make changes."
                     35:     IDS_EINSMEMSAVE,    "Not enough memory.  Card not saved."
                     36:     IDS_EDISKFULLSAVE,  "Not enough disk space to save current card."
                     37:     IDS_EOPENTEMPSAVE,  "Cannot open temp file.  Card not saved."
                     38:     IDS_ECANTREADPICT,  "Not enough memory to read picture."
                     39:     IDS_EINSMEMRUN,     "Not enough memory to run Cardfile."
                     40:     IDS_ENOTVALIDFILE,  "Not a valid card file."
                     41:     IDS_ECANTFIND,      "Cannot find %%"
                     42:     IDS_EINSMEMREAD,    "Not enough memory to read card."
                     43:     IDS_ECANTPRINT,     "Cannot print."
                     44:     IDS_ECLIPEMPTYPICT, "There is no picture in the clipboard."
                     45:     IDS_ENOMODEM,       "There is no modem connected."
                     46:     IDS_ENOPICTURES,    "Not able to print pictures."
                     47:     IDS_ECANTMAKEFILE,  "Cannot create %%"
                     48:     IDS_EMEMPRINT,      "Not enough memory to print."
                     49:     IDS_EDISKPRINT,     "Not enough disk space to print."
                     50:     IDS_NOBITMAP,       "Can't read in file with a bitmap."
                     51:     IDS_STRINGINSERT,   "%%"
                     52: END
                     53: 
                     54: DTOPEN dialog  10, 10, 150, 86
                     55: STYLE  WS_POPUP | WS_DLGFRAME | WS_VISIBLE
                     56: BEGIN
                     57:     EDITTEXT                    IDD_EDIT,    46,  2, 100, 12, WS_GROUP | ES_AUTOHSCROLL
                     58:     LISTBOX                     IDD_LISTBOX,  4, 20,  70, 56, LBS_STANDARD | WS_GROUP | WS_TABSTOP
                     59:     DEFPUSHBUTTON  "Open",      IDOK,        87, 40,  50, 14, WS_GROUP
                     60:     PUSHBUTTON     "Cancel"     IDCANCEL,    87, 58,  50, 14, WS_GROUP
                     61:     LTEXT          "",          IDD_PATH,    78, 20,  60, 12, WS_GROUP
                     62:     RTEXT          "Filename:", -1,           2,  2,  40, 12
                     63: END
                     64: 
                     65: DTSAVE  DIALOG 25, 25, 166, 47
                     66: STYLE  WS_POPUP | WS_DLGFRAME WS_VISIBLE
                     67: BEGIN
                     68:     EDITTEXT                     IDD_EDIT,   12, 15, 104, 12, WS_GROUP | ES_AUTOHSCROLL
                     69:     LTEXT       "Save file as:", -1          12,  2,  60, 12
                     70:     RTEXT       "",              IDD_PATH,   80,  2,  72, 12
                     71:     DEFPUSHBUTTON  "Save",       IDOK,      120, 14,  35, 14, WS_GROUP
                     72:     PUSHBUTTON  "Cancel"         IDCANCEL,  120, 32,  35, 14, WS_GROUP
                     73: END
                     74: 
                     75: DTHEADER DIALOG 25, 25, 220, 44
                     76: STYLE  WS_POPUP | WS_DLGFRAME | WS_VISIBLE
                     77: BEGIN
                     78:     RTEXT       "Index Line:"   -1,          4,  8,  44,  8
                     79:     EDITTEXT                    IDD_EDIT,   52,  6, 164, 12, WS_GROUP | WS_TABSTOP
                     80:     DEFPUSHBUTTON  "Ok",        IDOK,       60, 24,  40, 14, WS_GROUP | WS_TABSTOP
                     81:     PUSHBUTTON  "Cancel",       IDCANCEL,  120, 24,  40, 14, WS_GROUP | WS_TABSTOP
                     82: END
                     83: 
                     84: DTADD DIALOG 25, 25, 192, 44
                     85: STYLE  WS_POPUP | WS_DLGFRAME | WS_VISIBLE
                     86: BEGIN
                     87:     RTEXT       "Add:"      -1,          4,  8,  16,  8
                     88:     EDITTEXT                IDD_EDIT,   24,  6, 164, 12, WS_GROUP | WS_TABSTOP
                     89:     DEFPUSHBUTTON  "Ok",    IDOK,       46, 24,  40, 14, WS_GROUP | WS_TABSTOP
                     90:     PUSHBUTTON  "Cancel",   IDCANCEL,  106, 24,  40, 14, WS_GROUP | WS_TABSTOP
                     91: END
                     92: 
                     93: DTMERGE dialog  10, 10, 148, 86
                     94: STYLE  WS_POPUP | WS_DLGFRAME | WS_VISIBLE
                     95: BEGIN
                     96:     EDITTEXT                    IDD_EDIT,    46,  2, 100, 12, WS_GROUP | ES_AUTOHSCROLL
                     97:     LISTBOX                     IDD_LISTBOX,  4, 20,  70, 56, LBS_STANDARD | WS_GROUP | WS_TABSTOP
                     98:     DEFPUSHBUTTON  "Merge",     IDOK,        87, 40,  50, 14, WS_GROUP
                     99:     PUSHBUTTON     "Cancel"     IDCANCEL,    87, 58,  50, 14, WS_GROUP
                    100:     LTEXT          "",          IDD_PATH,    78, 20,  60, 12, WS_GROUP
                    101:     RTEXT          "Filename:", -1,           2,  2,  40, 12
                    102: END
                    103: 
                    104: DTGOTO DIALOG 25, 25, 104, 44
                    105: STYLE  WS_POPUP | WS_DLGFRAME | WS_VISIBLE
                    106: BEGIN
                    107:     RTEXT       "Go To:"    -1,         4,  8, 24,  8
                    108:     EDITTEXT                IDD_EDIT,  32,  6, 68, 12, WS_GROUP | WS_TABSTOP
                    109:     DEFPUSHBUTTON  "Ok",    IDOK,       7, 24, 40, 14, WS_GROUP | WS_TABSTOP
                    110:     PUSHBUTTON  "Cancel",   IDCANCEL,  57, 24, 40, 14, WS_GROUP | WS_TABSTOP
                    111: END
                    112: 
                    113: DTFIND DIALOG 25, 25, 104, 44
                    114: STYLE  WS_POPUP | WS_DLGFRAME | WS_VISIBLE
                    115: BEGIN
                    116:     RTEXT       "Find:"    -1,          4,  8, 20,  8
                    117:     EDITTEXT               IDD_EDIT,   28,  6, 72, 12, WS_GROUP | WS_TABSTOP
                    118:     DEFPUSHBUTTON  "Ok",   IDOK,        7, 24, 40, 14, WS_GROUP | WS_TABSTOP
                    119:     PUSHBUTTON  "Cancel",  IDCANCEL,   57, 24, 40, 14, WS_GROUP | WS_TABSTOP
                    120: END
                    121: 
                    122: DTABOUT DIALOG 20,20,154, 102
                    123: STYLE  WS_POPUP | WS_DLGFRAME | WS_VISIBLE
                    124: BEGIN
                    125:     CTEXT "Microsoft Windows"                       -1,        0,   5, 154, 8
                    126:     ICON  CFICON                                    -1,        9,  23,   0, 0
                    127:     CTEXT "Cardfile"                                -1,        0,  14, 154, 8
                    128:     CTEXT "Version 1.0x"                            -1,       30,  34,  94, 8
                    129:     CTEXT "Copyright � 1985,1986, Microsoft Corp."  -1,        0,  47, 154, 9
                    130:     CONTROL "", 1, STATIC, SS_BLACKRECT | WS_GROUP ,           0,  76, 154, 2
                    131:     CTEXT "",                                       IDD_EDIT,  0,  86, 154, 8
                    132:     DEFPUSHBUTTON "Ok"                        IDOK, 61, 59, 32, 14, WS_GROUP
                    133: END
                    134: 
                    135: DTABORTDLG DIALOG 20,20,90, 64
                    136: STYLE WS_POPUPWINDOW | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
                    137: CAPTION "Cardfile"
                    138: BEGIN
                    139:    DEFPUSHBUTTON "Cancel"               IDCANCEL, 29, 44, 32, 14, WS_GROUP
                    140:    CTEXT         "Sending",             -1,        0,  8, 90, 8
                    141:    CTEXT         "",                    IDD_EDIT,  0, 18, 90, 8
                    142:    CTEXT         "to print spooler.",   -1,        0, 28, 90, 8
                    143: END
                    144: 
                    145: CFMENU MENU
                    146: BEGIN
                    147:     POPUP   "File"
                    148:     BEGIN
                    149:         MENUITEM    "New",              IDM_NEW
                    150:         MENUITEM    "Open...",          IDM_OPEN
                    151:         MENUITEM    "Save",             IDM_SAVE
                    152:         MENUITEM    "Save As...",       IDM_SAVEAS
                    153:         MENUITEM    "Merge...",         IDM_MERGE
                    154:     END
                    155:     POPUP   "Edit"
                    156:     BEGIN
                    157:         MENUITEM    "Index...\tF6",     IDM_HEADER
                    158:         MENUITEM    "Cut\tDel",         IDM_CUT
                    159:         MENUITEM    "Copy\tF2",         IDM_COPY
                    160:         MENUITEM    "Paste\tIns",       IDM_PASTE
                    161:         MENUITEM    "Restore",          IDM_RESTORE
                    162:     END
                    163:     POPUP   "View"
                    164:     BEGIN
                    165:         MENUITEM    "Cards\tF9",        IDM_CARDFILE
                    166:         MENUITEM    "List\tF10",        IDM_PHONEBOOK
                    167:     END
                    168:     POPUP   "Card"
                    169:     BEGIN
                    170:         MENUITEM    "Add...\tF7",       IDM_ADD
                    171:         MENUITEM    "Delete\tF8",       IDM_DELETE
                    172:         MENUITEM    "Duplicate",        IDM_DUPLICATE
                    173:     END
                    174:     POPUP "Search"
                    175:     BEGIN
                    176:         MENUITEM    "Go To...\tF4",     IDM_GOTO
                    177:         MENUITEM    "Find...",          IDM_FIND
                    178:         MENUITEM    "Find Next\tF3",    IDM_FINDNEXT
                    179:     END
                    180: END
                    181: 
                    182: CFACCEL ACCELERATORS
                    183: BEGIN
                    184:     VK_DELETE, IDM_CUT,         VIRTKEY
                    185:     VK_INSERT, IDM_PASTE,       VIRTKEY
                    186:     VK_F2,     IDM_COPY,        VIRTKEY
                    187:     VK_F3,     IDM_FINDNEXT,    VIRTKEY
                    188:     VK_F4,     IDM_GOTO,        VIRTKEY
                    189:     VK_F6,     IDM_HEADER,      VIRTKEY
                    190:     VK_F7,     IDM_ADD,         VIRTKEY
                    191:     VK_F8,     IDM_DELETE,      VIRTKEY
                    192:     VK_F9,     IDM_CARDFILE,    VIRTKEY
                    193:     VK_F10,    IDM_PHONEBOOK,   VIRTKEY
                    194: END
                    195: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.