home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OS2BAS.ZIP / CAPTURE.RC < prev    next >
Text File  |  1989-08-29  |  4KB  |  119 lines

  1. #include <os2.h>
  2.  
  3. #define IDRESOURCE              1
  4. #define IDICON                  1
  5. #define IDPOINTER               2
  6.  
  7. #define IDM_EDIT                10
  8. #define    IDM_LOADFILE         11
  9. #define    IDM_LOADCLIPBOARD    12
  10. #define    IDM_SAVE             13
  11. #define    IDM_COPY             14
  12. #define    IDM_PASTE            15
  13. #define    IDM_ERASEWINDOW      16
  14. #define    IDM_EXIT             17
  15. #define IDM_CAPTURE             20
  16. #define    IDM_CAPTURESCREEN    21
  17. #define    IDM_CAPTUREWINDOW    22
  18. #define    IDM_CAPTUREPORTION   23
  19. #define       IDM_USINGTRACK    24
  20. #define       IDM_USINGFRAME    25
  21. #define IDM_OPTIONS             30
  22. #define    IDM_HIDE             31
  23. #define    IDM_SHOW             32
  24. #define    IDM_ACTUAL           33
  25. #define    IDM_STRETCH          34
  26. #define    IDM_DELAY            40
  27. #define      IDM_1_SECOND       41
  28. #define      IDM_5_SECONDS      45
  29. #define      IDM_20_SECONDS     60
  30. #define      IDM_30_SECONDS     70
  31. #define      IDM_60_SECONDS     100
  32. #define IDM_WINDOWSIZE              120
  33. #define    IDM_SETFRAMEWINDOWSIZE   121
  34. #define    IDM_MAXIMIZEFRAMEWINDOW  122
  35. #define    IDM_RESTOREWINDOW        123
  36. #define    IDM_MAXIMIZECLIENTWINDOW 124
  37. #define    IDM_RESTORECLIENTWINDOW  125
  38.  
  39.  
  40. ICON    IDICON      capture.ico
  41. POINTER IDPOINTER   capture.ptr
  42.  
  43. MENU IDRESOURCE
  44. {
  45.   SUBMENU  "~Edit",                         IDM_EDIT
  46.   {
  47.     MENUITEM "~LOAD (from file)",           IDM_LOADFILE
  48.     MENUITEM "L~OAD (from Clipboard)",      IDM_LOADCLIPBOARD
  49.     MENUITEM "~SAVE (to file)",             IDM_SAVE,,MIA_DISABLED
  50.     MENUITEM SEPARATOR
  51.     MENUITEM "~COPY (to Clipboard)",        IDM_COPY,,MIA_DISABLED
  52.     MENUITEM "~PASTE (from Clipboard)",     IDM_PASTE,,MIA_DISABLED
  53.     MENUITEM SEPARATOR
  54.     MENUITEM "~Erase window",               IDM_ERASEWINDOW
  55.     MENUITEM SEPARATOR
  56.     MENUITEM "E~xit",                       IDM_EXIT
  57.   }
  58.  
  59.   SUBMENU  "~Capture",                      IDM_CAPTURE
  60.   {
  61.     MENUITEM "~Entire Screen",              IDM_CAPTURESCREEN
  62.     MENUITEM "~Viewing Window Contents",    IDM_CAPTUREWINDOW
  63.     SUBMENU  "~Portion of Screen",          IDM_CAPTUREPORTION
  64.     {
  65.       MENUITEM "Using ~Tracking Rectangle", IDM_USINGTRACK
  66.       MENUITEM "Using ~Viewing Window",     IDM_USINGFRAME
  67.     }
  68.   }
  69.   SUBMENU  "~Options",                      IDM_OPTIONS
  70.   {
  71.     MENUITEM "~Hide Window during capture",      IDM_HIDE,,MIA_CHECKED
  72.     MENUITEM "~Show Window during capture",      IDM_SHOW
  73.     MENUITEM SEPARATOR
  74.     MENUITEM "Display ~Actual size",             IDM_ACTUAL,,MIA_CHECKED
  75.     MENUITEM "Stretch/~Compress to fill window", IDM_STRETCH
  76.     MENUITEM SEPARATOR
  77.     SUBMENU  "~Delay",                           IDM_DELAY
  78.     {
  79.       MENUITEM "~1  seconds",                    IDM_1_SECOND,,MIA_CHECKED
  80.       MENUITEM "~5  seconds",                    IDM_5_SECONDS
  81.       MENUITEM "~20 seconds",                    IDM_20_SECONDS
  82.       MENUITEM "~30 seconds",                    IDM_30_SECONDS
  83.       MENUITEM "~60 seconds",                    IDM_60_SECONDS
  84.     }
  85.   }
  86.   SUBMENU "~Window",                          IDM_WINDOWSIZE
  87.   {
  88.     MENUITEM "~Set Frame Window Size",        IDM_SETFRAMEWINDOWSIZE
  89.     MENUITEM SEPARATOR
  90.     MENUITEM "Maximize ~Frame Window",        IDM_MAXIMIZEFRAMEWINDOW
  91.     MENUITEM "Restore F~rame Window",         IDM_RESTOREWINDOW
  92.     MENUITEM SEPARATOR
  93.     MENUITEM "Maximize ~Viewing Window",      IDM_MAXIMIZECLIENTWINDOW
  94.     MENUITEM "Restore V~iewing Window",       IDM_RESTORECLIENTWINDOW
  95.   }
  96. }
  97.  
  98. DLGTEMPLATE IDRESOURCE
  99. {
  100.   DIALOG "SET FRAME WINDOW SIZE", 1, 67, 20, 200, 103,
  101.                                   FS_NOBYTEALIGN | FS_DLGBORDER |
  102.                                   WS_VISIBLE     | WS_SAVEBITS,
  103.                                   FCF_TITLEBAR
  104.   {
  105.     ENTRYFIELD "", 2,  43, 50, 38, 8, ES_CENTER | SS_FGNDFRAME
  106.     ENTRYFIELD "", 3, 128, 51, 39, 8, ES_CENTER | SS_FGNDFRAME
  107.     DEFPUSHBUTTON "OK",       4,   3, 3, 39, 12
  108.     PUSHBUTTON    "CANCEL",   5,  45, 3, 42, 12
  109.     PUSHBUTTON    "MAXIMIZE", 6,  90, 3, 53, 12
  110.     PUSHBUTTON    "RESTORE",  7, 146, 3, 51, 12
  111.     CONTROL "", 8,   7, 34, 110, 11, WC_SCROLLBAR, SBS_HORZ | WS_VISIBLE
  112.     CONTROL "", 9, 174, 23,  14, 66, WC_SCROLLBAR, SBS_VERT | WS_VISIBLE
  113.     CTEXT "Width",  -1,  45, 64, 34, 9
  114.     CTEXT "Height", -1, 130, 65, 35, 8
  115.    }
  116. }
  117.  
  118.  
  119.