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

  1. #include <os2.h>
  2.  
  3. #define ID_RESOURCE      1
  4. #define ID_POINTER       2
  5.  
  6. #define IDM_EXIT                 5
  7. #define IDM_ARC                  10
  8. #define IDM_LINE                 20
  9. #define IDM_AREA                 30
  10. #define IDM_MARK                 40
  11. #define IDM_BIT                  60
  12. #define IDB_BITMAP1              100
  13. #define IDB_BITMAP2              200
  14. #define IDB_BITMAP3              300
  15.  
  16. ICON    ID_RESOURCE  gpidemo.ico
  17. BITMAP  IDB_BITMAP1  gpidemo1.bmp
  18. BITMAP  IDB_BITMAP2  gpidemo2.bmp
  19. BITMAP  IDB_BITMAP3  gpidemo3.bmp
  20.  
  21. MENU ID_RESOURCE
  22. {
  23.   MENUITEM "E~xit",                       IDM_EXIT
  24.   SUBMENU  "~Arcs",                       IDM_ARC
  25.  {
  26.    MENUITEM "Gpi~PointArc",               IDM_ARC+1
  27.    MENUITEM "Gpi~FullArc",                IDM_ARC+2
  28.    MENUITEM "GpiPa~rtialArc",             IDM_ARC+3
  29.    MENUITEM "GpiPolyFilletS~harp",        IDM_ARC+4
  30.    MENUITEM "GpiPolySp~line",             IDM_ARC+5
  31.    MENUITEM "GpiPolyFille~t",             IDM_ARC+6
  32.    MENUITEM SEPARATOR
  33.    MENUITEM "~Demo All",                  IDM_ARC+7
  34.  }
  35.  MENUITEM "~Lines",                       IDM_LINE
  36.  SUBMENU  "A~rea/Colors",                 IDM_AREA
  37.  {
  38.    MENUITEM "Fill ~Patterns and Colors",  IDM_AREA+1
  39.    SUBMENU "~Begin/End Area",             IDM_AREA+2
  40.    {
  41.      MENUITEM "Using GpiPoly~Line",       IDM_AREA+3
  42.      MENUITEM "Using GpiPoly~Fillet",     IDM_AREA+4
  43.      MENUITEM "Using GpiPolyFillet~Sharp",IDM_AREA+5
  44.    }
  45.  }
  46.  SUBMENU "Graph~Markers",                 IDM_MARK
  47.  {
  48.    MENUITEM "~Cross",                     IDM_MARK+1
  49.    MENUITEM "~Plus",                      IDM_MARK+2
  50.    MENUITEM "~Diamond",                   IDM_MARK+3
  51.    MENUITEM "~Square",                    IDM_MARK+4
  52.    MENUITEM "Si~x Point Start",           IDM_MARK+5
  53.    MENUITEM "~Eight Point Star",          IDM_MARK+6
  54.    MENUITEM "Solid D~iamond",             IDM_MARK+7
  55.    MENUITEM "Solid S~quare",              IDM_MARK+8
  56.    MENUITEM "Do~t",                       IDM_MARK+9
  57.    MENUITEM "S~mall Circle",              IDM_MARK+10
  58.  }
  59.  SUBMENU "~Bitmaps",                      IDM_BIT
  60.  {
  61.    MENUITEM "~2  Color Bitmap",             IDM_BIT+1
  62.    MENUITEM "~16 Color Bitmap",             IDM_BIT+2
  63.    MENUITEM "~Resize Bitmap",               IDM_BIT+3
  64.    MENUITEM "~Capture Bitmap",              IDM_BIT+4
  65.    MENUITEM "Custom ~Fill with 8X8 Bitmap", IDM_BIT+5
  66.    SUBMENU  "~System Bitmaps",              IDM_BIT+6
  67.    {
  68.      MENUITEM "Show all bitmaps", IDM_BIT+10
  69.      MENUITEM "SBMP SYSMENU",   IDM_BIT+11
  70.      MENUITEM "SBMP SBUPARROW", IDM_BIT+12
  71.      MENUITEM "SBMP SBDNARROW", IDM_BIT+13
  72.      MENUITEM "SBMP SBRGARROW", IDM_BIT+14
  73.      MENUITEM "SBMP SBLFARROW", IDM_BIT+15
  74.      MENUITEM "SBMP MENUCHECK", IDM_BIT+16
  75.      MENUITEM "SBMP CHECKBOXES", IDM_BIT+17
  76.      MENUITEM "SBMP BTNCORNERS", IDM_BIT+18
  77.      MENUITEM "SBMP MINBUTTON", IDM_BIT+19
  78.      MENUITEM "SBMP MAXBUTTON", IDM_BIT+20
  79.      MENUITEM "SBMP RESTOREBUTTON", IDM_BIT+21
  80.      MENUITEM "SBMP CHILDSYSMENU", IDM_BIT+22
  81.      MENUITEM "SBMP DRIVE", IDM_BIT+25
  82.      MENUITEM "SBMP FILE", IDM_BIT+26
  83.      MENUITEM "SBMP FOLDER", IDM_BIT+27
  84.      MENUITEM "SBMP TREEPLUS", IDM_BIT+28
  85.      MENUITEM "SBMP TREEMINUS", IDM_BIT+29
  86.      MENUITEM "SBMP PROGRAM", IDM_BIT+32
  87.      MENUITEM "SBMP MENUATTACHED", IDM_BIT+33
  88.      MENUITEM "SBMP SIZEBOX", IDM_BIT+34
  89.    }
  90.  }
  91. }
  92.  
  93. DLGTEMPLATE ID_RESOURCE
  94.   {
  95.   DIALOG "", 0, 115, 73, 201, 66, FS_NOBYTEALIGN | FS_DLGBORDER |
  96.                                   WS_VISIBLE | WS_SAVEBITS
  97.     {
  98.     LTEXT "3"     -1, 43, 32, 20, 8
  99.     RTEXT "100"   -1, 135, 32, 20, 8
  100.     CTEXT "Use SCROLL Bar to select number of points" -1, 5, 53, 190, 8
  101.     CONTROL "" ID_RESOURCE+1, 26, 18, 146, 11, WC_SCROLLBAR, SBS_HORZ |
  102.                                                         WS_VISIBLE
  103.     CTEXT "" -1, 88, 33, 23, 10, SS_FGNDFRAME
  104.     CTEXT "" ID_RESOURCE+2, 89, 34, 21, 8
  105.     DEFPUSHBUTTON "OK" DID_OK, 80, 2, 38, 12, WS_GROUP
  106.     }
  107.   }
  108.  
  109.  
  110.