home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / MM / CAPTION / CAPTION.DLG < prev    next >
Text File  |  1994-11-17  |  7KB  |  122 lines

  1. /*---------------------------------------------------------------------------*/
  2. /* File Name    :  caption.dlg                                               */
  3. /*                                                                           */
  4. /* Description  :  This file holds the dialog window used by the             */
  5. /*                 Caption Creation Utility sample program.                  */
  6. /*                                                                           */
  7. /* Concepts     :  See this sample program's C source file.                  */
  8. /*                 The WS_ANIMATE frame style allows this window to          */
  9. /*                 respond to system sounds.                                 */
  10. /*                                                                           */
  11. /* Required                                                                  */
  12. /*    Files     :  See this sample program's C source file.                  */
  13. /*                                                                           */
  14. /* Copyright (C) IBM 1993                                              */
  15. /*---------------------------------------------------------------------------*/
  16. DLGTEMPLATE ID_MAIN_DLG LOADONCALL MOVEABLE DISCARDABLE
  17. BEGIN
  18.     DIALOG  "", ID_MAIN_DLG, 10, 55, 255, 120,
  19.             FS_NOBYTEALIGN | FS_SIZEBORDER | WS_SAVEBITS | WS_ANIMATE,
  20.             FCF_SYSMENU | FCF_TITLEBAR | FCF_MINBUTTON | FCF_NOBYTEALIGN |
  21.             FCF_MENU | FCF_TASKLIST | FCF_VERTSCROLL | FCF_HORZSCROLL |
  22.             FCF_ICON | FCF_ACCELTABLE
  23.     BEGIN
  24.         CONTROL  "Synchronize audio and text", -1, 5, 55, 130, 38, WC_STATIC,
  25.                  SS_GROUPBOX | WS_VISIBLE
  26.                  PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  27.  
  28.         CONTROL  "", ID_SET_TIMING, 10, 57, 60, 14, WC_GRAPHICBUTTON,
  29.                  GBS_ANIMATION |  WS_VISIBLE | WS_DISABLED | WS_GROUP |
  30.                  WS_TABSTOP
  31.                  CTLDATA GB_RESOURCE, "Start timing", 5, ID_BMP_PLAY0,
  32.                                                          ID_BMP_PLAY1,
  33.                                                          ID_BMP_PLAY2,
  34.                                                          ID_BMP_PLAY3,
  35.                                                          ID_BMP_PLAY4
  36.                  PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  37.  
  38.         CONTROL  "", ID_NEXTLINE, 70, 57, 60, 14, WC_GRAPHICBUTTON,
  39.                  GBS_HILITEBITMAP | WS_VISIBLE | WS_DISABLED
  40.                  CTLDATA GB_RESOURCE, "Advance line", 2, ID_BMP_NEXTLINE,
  41.                                                       ID_BMP_NEXTBUSY
  42.                  PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  43.  
  44.         CONTROL  "Files", -1, 140, 55, 110, 38, WC_STATIC,
  45.                  SS_GROUPBOX | WS_VISIBLE
  46.                  PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  47.  
  48.         CONTROL  "", ID_AUDIOTXT, 145, 77, 90, 8, WC_STATIC, SS_TEXT |
  49.                  DT_LEFT | DT_TOP | WS_VISIBLE
  50.                  PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
  51.  
  52.         CONTROL  "", ID_TEXTTXT, 145, 67, 90, 8, WC_STATIC, SS_TEXT |
  53.                  DT_LEFT | DT_TOP | WS_VISIBLE
  54.                  PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
  55.  
  56.         CONTROL  "", ID_CAPTIONTXT, 145, 57, 90, 8, WC_STATIC, SS_TEXT |
  57.                   DT_LEFT | DT_TOP | WS_VISIBLE
  58.                  PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
  59.  
  60.         CONTROL  "", ID_PLAY, 88, 15, 48, 10, WC_GRAPHICBUTTON,
  61.                  GBS_ANIMATION | WS_VISIBLE | WS_DISABLED | WS_GROUP |
  62.                  WS_TABSTOP
  63.                  CTLDATA GB_RESOURCE, "", 5, ID_BMP_PLAY0,
  64.                                                     ID_BMP_PLAY1,
  65.                                                     ID_BMP_PLAY2,
  66.                                                     ID_BMP_PLAY3,
  67.                                                     ID_BMP_PLAY4
  68.  
  69.         CONTROL  "", ID_PAUSE, 60, 15, 25, 10, WC_GRAPHICBUTTON,
  70.                  GBS_HILITEBITMAP | GBS_3D_TEXTRAISED | WS_VISIBLE | WS_DISABLED
  71.                  CTLDATA GB_RESOURCE, "", 2, ID_BMP_PAUSE, ID_BMP_PAUSED
  72.  
  73.         CONTROL  "", ID_STOP, 33, 15, 25, 10, WC_GRAPHICBUTTON,
  74.                  GBS_3D_TEXTRAISED | WS_VISIBLE | WS_DISABLED |
  75.                  CTLDATA GB_RESOURCE, "", 1, ID_BMP_STOP
  76.  
  77.         CONTROL  "", ID_REWIND, 5, 15, 25, 10, WC_GRAPHICBUTTON,
  78.                  GBS_3D_TEXTRAISED | WS_VISIBLE | WS_DISABLED
  79.                  CTLDATA GB_RESOURCE, "", 1, ID_BMP_REWIND
  80.  
  81.         CONTROL  "", ID_AUDIO_POSITION, 153, 45, 115, 8, WC_STATIC , SS_TEXT |
  82.                  DT_LEFT | DT_TOP | WS_VISIBLE
  83.                  PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  84.  
  85.         CONTROL  "", ID_AUDIO_SLIDER, 144, 32, 94, 13,
  86.                  WC_SLIDER, SLS_HORIZONTAL | SLS_TOP | SLS_HOMELEFT |
  87.                  SLS_PRIMARYSCALE1 | SLS_PRIMARYSCALE2 | WS_GROUP | WS_TABSTOP |
  88.                  SLS_BUTTONSLEFT | WS_VISIBLE | SLS_RIBBONSTRIP | WS_DISABLED
  89.                  CTLDATA 12, 0, 10, 0, AUDIO_SLIDER_TICKS, 0
  90.                  PRESPARAMS PP_FOREGROUNDCOLOR, 0x00000000L
  91.                  PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  92.  
  93.         CONTROL  "Volume:", -1, 153, 22, 30, 8, WC_STATIC, SS_TEXT | DT_LEFT |
  94.                  DT_TOP | WS_VISIBLE |
  95.                  PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  96.  
  97.         CONTROL  "", ID_VOLUME, 135, -7, 115, 30, WC_SLIDER, SLS_HORIZONTAL |
  98.                  SLS_PRIMARYSCALE1 | SLS_PRIMARYSCALE2 | WS_GROUP | WS_TABSTOP
  99.                  SLS_TOP | SLS_BUTTONSLEFT | WS_VISIBLE | SLS_RIBBONSTRIP
  100.                  CTLDATA 12, 0, 100, 0, 100, 0
  101.                  PRESPARAMS PP_FOREGROUNDCOLOR, 0x00000000L
  102.                  PRESPARAMS PP_FONTNAMESIZE, 0x65482E38L, 0x0000766CL
  103.     END
  104. END
  105.  
  106. DLGTEMPLATE ID_DLG_PRODUCTINFO LOADONCALL MOVEABLE DISCARDABLE
  107. BEGIN
  108.     DIALOG "Caption Creation Utility - Product Information", ID_DLG_PRODUCTINFO,
  109.        62, 62, 250, 90,
  110.        FS_NOBYTEALIGN | FS_SIZEBORDER | WS_VISIBLE | WS_SAVEBITS, FCF_SYSMENU |
  111.        FCF_TITLEBAR | FCF_MINBUTTON | FCF_VERTSCROLL | FCF_HORZSCROLL
  112.     BEGIN
  113.         CTEXT "MMPM/2 Caption Creation Utility"       -1, 5, 72, 235, 8
  114.         CTEXT "1.10"                                  -1, 5, 64, 235, 8
  115.         CTEXT "(C) Copyright IBM Corporation 1993."   -1, 5, 56, 235, 8
  116.         CTEXT "All Rights Reserved."                  -1, 5, 48, 235, 8
  117.         CTEXT "IBM is a registered Trademark of"      -1, 5, 40, 235, 8
  118.         CTEXT "International Business Machine Corp."  -1, 5, 32, 235, 8
  119.         DEFPUSHBUTTON "OK"          DID_OK,            100, 8, 40, 16
  120.     END
  121. END
  122.