Annotation of pmsdk/samples/petzold/chap14/head.rc, revision 1.1.1.1

1.1       root        1: /*------------------------------
                      2:    HEAD.RC resource script file
                      3:   ------------------------------*/
                      4: 
                      5: #include <os2.h>
                      6: #include "head.h"
                      7: 
                      8: MENU ID_RESOURCE
                      9:      {
                     10:      SUBMENU "~File",              IDM_FILE
                     11:           {
                     12:           MENUITEM "~Open...",          IDM_OPEN
                     13:           MENUITEM SEPARATOR
                     14:           MENUITEM "A~bout Head...",    IDM_ABOUT
                     15:           }
                     16:      }
                     17: 
                     18: DLGTEMPLATE IDD_ABOUT
                     19:   {
                     20:   DIALOG "", 0, 32, 32, 200, 88,, FCF_DLGBORDER
                     21:     {
                     22:     CTEXT "Head"                                -1,  10, 64, 180,  8
                     23:     CTEXT "File Head Display"                   -1,  10, 40, 180,  8
                     24:     CTEXT "Copyright (C) Charles Petzold, 1988" -1,  10, 32, 180,  8
                     25:     DEFPUSHBUTTON "OK"                      DID_OK,  80,  8,  40, 16, WS_GROUP
                     26:     }
                     27:   }
                     28: 
                     29: DLGTEMPLATE IDD_OPEN
                     30:   {
                     31:   DIALOG "", 0, 8, 8, 240, 170,, FCF_DLGBORDER
                     32:     {
                     33:     CTEXT "Open File"              -1,             8, 154, 224,  8
                     34:     LTEXT "Use mouse to choose file, or type filename." -1, 8, 138, 224, 8
                     35:     LTEXT "Current Directory:"     -1,             8, 126,  80,  8
                     36:     LTEXT ""                       IDD_PATH,      88, 126, 144,  8
                     37:     LTEXT "Filename:"              -1,             8, 110,  48,  8
                     38:     ENTRYFIELD ""                  IDD_FILEEDIT,  56, 110, 176,  8, ES_MARGIN
                     39:     CTEXT "Directories"            -1,            16,  96,  92,  8
                     40:     CTEXT "Files"                  -1,           134,  96,  92,  8
                     41:     LISTBOX                        IDD_DIRLIST,   16,  32,  92, 64
                     42:     LISTBOX                        IDD_FILELIST, 134,  32,  92, 64
                     43:     DEFPUSHBUTTON "Open"           DID_OK,        32,   8,  64, 16, WS_GROUP
                     44:     PUSHBUTTON "Esc=Cancel"        DID_CANCEL,   144,   8,  64, 16, WS_GROUP
                     45:     }
                     46:   }

unix.superglobalmegacorp.com

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