home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / mm / capsamp / capsamp.dlg < prev    next >
Text File  |  1996-11-19  |  6KB  |  139 lines

  1. /*************************************************************************
  2. *
  3. *  File Name   : CAPSAMP.DLG
  4. *                 The WS_ANIMATE frame style allows this window to
  5. *                 respond to system sounds.
  6. *
  7. *  Copyright (C) IBM 1993
  8. *************************************************************************/
  9. #define  INCL_CIRCULARSLIDER  /* need this for the circular slider control */
  10. #define  INCL_GRAPHICBUTTON   /* need this for the graphic buttons control */
  11.  
  12. #include <sw.h>
  13.  
  14. DLGTEMPLATE IDD_MAIN_WINDOW LOADONCALL MOVEABLE DISCARDABLE
  15. BEGIN
  16.    DIALOG  "", IDD_MAIN_WINDOW, 25, 40, 250, 125,
  17.            FS_NOBYTEALIGN | WS_SYNCPAINT | WS_SAVEBITS | WS_ANIMATE,  FCF_SYSMENU |
  18.            FCF_TITLEBAR | FCF_MINBUTTON | FCF_MENU | FCF_SIZEBORDER |
  19.            FCF_VERTSCROLL | FCF_HORZSCROLL | FCF_TASKLIST | FCF_ICON
  20.    BEGIN
  21.       CONTROL "", IDC_GPB_PLAY, 145, 103, 50, 20, WC_GRAPHICBUTTON,
  22.                   GBS_ANIMATION | GBS_3D_TEXTRAISED | WS_GROUP |
  23.                   WS_TABSTOP | WS_VISIBLE
  24.               CTLDATA GB_RESOURCE, "", 5,          /* Number of bitmaps */
  25.                                            ID_BMP_PLAY0,
  26.                                            ID_BMP_PLAY1,
  27.                                            ID_BMP_PLAY2,
  28.                                            ID_BMP_PLAY3,
  29.                                            ID_BMP_PLAY4
  30.  
  31.       CONTROL "", IDC_GPB_REWIND, 55, 103, 25, 20, WC_GRAPHICBUTTON,
  32.                   GBS_3D_TEXTRAISED | WS_VISIBLE
  33.               CTLDATA GB_RESOURCE, "", 1, ID_BMP_REWIND
  34.  
  35.       CONTROL "", IDC_GPB_STOP, 85, 103, 25, 20, WC_GRAPHICBUTTON,
  36.                   GBS_3D_TEXTRAISED | WS_VISIBLE
  37.               CTLDATA GB_RESOURCE, "", 1, ID_BMP_STOP
  38.  
  39.       CONTROL "", IDC_GPB_PAUSE, 115, 103, 25, 20, WC_GRAPHICBUTTON,
  40.                   GBS_3D_TEXTRAISED | WS_VISIBLE
  41.               CTLDATA GB_RESOURCE, "", 1, ID_BMP_PAUSE
  42.  
  43.       CONTROL "Audio position :", IDC_AUDIO_POSITION, 57, 93, 120, 8, WC_STATIC,
  44.                   SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  45.                   PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  46.  
  47.       CONTROL "", IDC_AUDIO_SLIDER, 54, 80, 140, 13,
  48.                   WC_SLIDER, SLS_HORIZONTAL | SLS_TOP | SLS_HOMELEFT |
  49.                   SLS_PRIMARYSCALE1 | SLS_PRIMARYSCALE2 | WS_GROUP | WS_TABSTOP |
  50.                   SLS_BUTTONSLEFT | WS_VISIBLE | WS_DISABLED | SLS_RIBBONSTRIP
  51.                   CTLDATA 12, 0, 10, 0, AUDIO_SLIDER_TICKS, 0
  52.  
  53.       CONTROL "", IDC_SL_VOLUME, 95, 38, 55, 43, WC_CIRCULARSLIDER,
  54.                   WS_TABSTOP | WS_VISIBLE | CSS_NOTEXT | WS_GROUP |
  55.                   CSS_MIDPOINT
  56.    END
  57. END
  58.  
  59. DLGTEMPLATE IDD_SETTINGS_DLG LOADONCALL MOVEABLE DISCARDABLE
  60. BEGIN
  61.     DIALOG  "Caption Sample Settings Fields", IDD_SETTINGS_DLG,
  62.             120, 4, 185, 110,
  63.             FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE | WS_SAVEBITS,
  64.             FCF_SYSMENU | FCF_TITLEBAR
  65.     BEGIN
  66.  
  67.         CONTROL  "Set the following attributes for the caption window :",
  68.                      IDC_TEXT_COLUMNS, 5, 100, 180, 8,
  69.                      WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  70.                      PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  71.  
  72.         CONTROL  "Text columns:", IDC_TEXT_COLUMNS, 10, 85, 80, 8,
  73.                      WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  74.  
  75.  
  76.         CONTROL  "", IDC_TEXT_COLUMNS_SB, 100, 85, 75, 15, WC_SPINBUTTON,
  77.                      SPBS_MASTER | SPBS_JUSTLEFT | SPBS_READONLY | WS_TABSTOP |
  78.                      WS_VISIBLE | WS_GROUP
  79.  
  80.         CONTROL  "Text rows:", IDC_TEXT_ROWS, 10, 70, 80, 8,
  81.                      WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  82.  
  83.  
  84.         CONTROL  "", IDC_TEXT_ROWS_SB, 100, 70, 75, 15, WC_SPINBUTTON,
  85.                      SPBS_MASTER | SPBS_JUSTLEFT | SPBS_READONLY | WS_VISIBLE |
  86.                      WS_TABSTOP
  87.  
  88.         CONTROL  "Background color:", IDC_BACKGROUND_COLOR, 10, 55, 80, 8,
  89.                      WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  90.  
  91.  
  92.         CONTROL  "", IDC_BACKGROUND_COLOR_SB, 100, 55, 75, 15, WC_SPINBUTTON,
  93.                      SPBS_MASTER | SPBS_JUSTLEFT | SPBS_READONLY | WS_VISIBLE |
  94.                      WS_TABSTOP
  95.  
  96.         CONTROL  "Text color:", IDC_TEXT_COLOR, 10, 40, 80, 8,
  97.                      WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  98.  
  99.  
  100.         CONTROL  "", IDC_TEXT_COLOR_SB, 100, 40, 75, 15, WC_SPINBUTTON,
  101.                      SPBS_MASTER | SPBS_JUSTLEFT | SPBS_READONLY | WS_VISIBLE |
  102.                      WS_TABSTOP
  103.  
  104.         CONTROL  "Window position:", IDC_WINDOW_POSITION, 10, 25, 80, 8,
  105.                      WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  106.  
  107.  
  108.         CONTROL  "", IDC_WINDOW_POSITION_SB, 100, 25, 75, 15, WC_SPINBUTTON,
  109.                      SPBS_MASTER | SPBS_JUSTLEFT | SPBS_READONLY | WS_VISIBLE |
  110.                      WS_TABSTOP
  111.  
  112.         CONTROL  "~OK", IDC_OK_PB, 10, 3, 43, 15, WC_BUTTON, BS_DEFAULT |
  113.                      WS_TABSTOP | WS_VISIBLE | WS_GROUP
  114.         CONTROL  "Cancel", IDC_CANCEL_PB, 65, 3, 43, 15, WC_BUTTON,
  115.                      BS_PUSHBUTTON | WS_VISIBLE
  116.         CONTROL  "Help", IDC_HELP_PB, 115, 3, 43, 15, WC_BUTTON, BS_HELP |
  117.                      WS_VISIBLE
  118.     END
  119. END
  120.  
  121.  
  122. DLGTEMPLATE IDD_PRODUCTINFO_DLG LOADONCALL MOVEABLE DISCARDABLE
  123. BEGIN
  124.     DIALOG "Header - Product Information", IDD_PRODUCTINFO_DLG,
  125.        62, 62, 250, 90,
  126.        FS_NOBYTEALIGN | FS_SIZEBORDER | WS_VISIBLE | WS_SAVEBITS,
  127.        FCF_SYSMENU | FCF_TITLEBAR | FCF_MINBUTTON | FCF_VERTSCROLL |
  128.        FCF_HORZSCROLL
  129.     BEGIN
  130.         CTEXT "MMPM/2 Caption sample program"  -1, 5, 72, 235, 8
  131.         CTEXT "1.10"                                  -1, 5, 64, 235, 8
  132.         CTEXT "(C) Copyright IBM Corporation 1993."   -1, 5, 56, 235, 8
  133.         CTEXT "All Rights Reserved."                  -1, 5, 48, 235, 8
  134.         CTEXT "IBM is a registered Trademark of"      -1, 5, 40, 235, 8
  135.         CTEXT "International Business Machine Corp."  -1, 5, 32, 235, 8
  136.         DEFPUSHBUTTON "OK"          DID_OK,            100, 8, 40, 16
  137.     END
  138. END
  139.