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

  1. /*************************************************************************
  2.  * File Name    : MCISTRNG.DLG
  3.  *
  4.  * Description  : This file holds the dialog box which is the main window
  5.  *                for the sample program as well the Include and Display
  6.  *                Messages dialog boxes.
  7.  *
  8.  * Concepts     : See this sample program's C source file.
  9.  *                The WS_ANIMATE frame style allows this window to
  10.  *                respond to system sounds.
  11.  *
  12.  * MMPM/2 API's : None.
  13.  *
  14.  * Required
  15.  *    Files     : See this sample program's C source file.
  16.  *
  17.  * Copyright (C) IBM 1991, 1992, 1993
  18.  *************************************************************************/
  19.  
  20. #define INCL_NLS                      /* allows use of FCF_DBE_APPSTAT        */
  21. #include <pmwin.h>                    /* FCF_DBE_APPSTAT gives kbd status     */
  22.                                       /* field for DBCS countries.            */
  23. DLGINCLUDE 1 "MCISTRNG.H"
  24.  
  25. DLGTEMPLATE ID_MAIN_DIALOG_BOX LOADONCALL MOVEABLE DISCARDABLE
  26. BEGIN
  27.     DIALOG "", ID_MAIN_DIALOG_BOX,
  28.        MAIN_DIALOG_X_POSITION,
  29.        MAIN_DIALOG_Y_POSITION,
  30.        MAIN_DIALOG_X_SIZE,
  31.        MAIN_DIALOG_Y_SIZE,
  32.        FS_NOBYTEALIGN | FS_SIZEBORDER | WS_CLIPSIBLINGS |
  33.        WS_SAVEBITS    | WS_SYNCPAINT | WS_ANIMATE,
  34.        FCF_SYSMENU    | FCF_TITLEBAR | FCF_MINBUTTON | FCF_TASKLIST |
  35.        FCF_VERTSCROLL | FCF_HORZSCROLL | FCF_DBE_APPSTAT | FCF_ICON
  36.     BEGIN
  37.         CONTROL "", ID_STRING_COMBO_BOX,
  38.            COMBO_BOX_X_POSITION,
  39.            COMBO_BOX_Y_POSITION,
  40.            COMBO_BOX_X_SIZE,
  41.            COMBO_BOX_Y_SIZE,
  42.            WC_COMBOBOX,
  43.            CBS_SIMPLE | WS_GROUP | WS_TABSTOP | WS_VISIBLE
  44.         CONTROL "~Send", ID_MAIN_SEND_PB,
  45.            MAIN_SEND_PB_X_POSITION,
  46.            MAIN_PUSHBUTTONS_Y_POSITION,
  47.            MAIN_SEND_PUSHBUTTON_X_SIZE,
  48.            MAIN_PUSHBUTTONS_Y_SIZE,
  49.            WC_BUTTON,
  50.            BS_DEFAULT | WS_TABSTOP | WS_VISIBLE | WS_GROUP
  51.         CONTROL "~Display messages...", ID_DISPLAY_MESSAGES_PB,
  52.            MAIN_DISPLAY_PB_X_POSITION,
  53.            MAIN_PUSHBUTTONS_Y_POSITION,
  54.            MAIN_DISPLAY_PUSHBUTTON_X_SIZE,
  55.            MAIN_PUSHBUTTONS_Y_SIZE,
  56.            WC_BUTTON,
  57.            BS_PUSHBUTTON | WS_VISIBLE
  58.         CONTROL "~Batch file...", ID_BATCH_FILE_PB,
  59.            MAIN_BATCH_FILE_PB_X_POSITION,
  60.            MAIN_PUSHBUTTONS_Y_POSITION,
  61.            MAIN_BATCH_PUSHBUTTON_X_SIZE,
  62.            MAIN_PUSHBUTTONS_Y_SIZE,
  63.            WC_BUTTON,
  64.            BS_PUSHBUTTON | WS_VISIBLE
  65.  
  66.         CONTROL "Cancel", ID_MAIN_CANCEL_PB,
  67.            MAIN_CANCEL_PB_X_POSITION ,
  68.            MAIN_PUSHBUTTONS_Y_POSITION,
  69.            MAIN_CANCEL_PUSHBUTTON_X_SIZE,
  70.            MAIN_PUSHBUTTONS_Y_SIZE,
  71.            WC_BUTTON,
  72.            BS_PUSHBUTTON | WS_VISIBLE
  73.         CONTROL "Help", ID_MAIN_HELP_PB,
  74.            MAIN_HELP_PB_X_POSITION,
  75.            MAIN_PUSHBUTTONS_Y_POSITION,
  76.            MAIN_HELP_PUSHBUTTON_X_SIZE,
  77.            MAIN_PUSHBUTTONS_Y_SIZE,
  78.            WC_BUTTON,
  79.            BS_HELP | WS_VISIBLE
  80.         CONTROL "String command", ID_STRING_TITLE_TEXT,
  81.            MAIN_STRING_TEXT_X_POSITION,
  82.            MAIN_STRING_TEXT_Y_POSITION,
  83.            MAIN_STRING_TEXT_X_SIZE,
  84.            MAIN_STRING_TEXT_Y_SIZE,
  85.            WC_STATIC,
  86.            SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  87.     END
  88. END
  89.  
  90.  
  91. DLGTEMPLATE ID_INCLUDE_DIALOG_BOX LOADONCALL MOVEABLE DISCARDABLE
  92. BEGIN
  93.     DIALOG "String Test - Include Messages",
  94.        ID_INCLUDE_DIALOG_BOX,
  95.        INCLUDE_DIALOG_X_POSITION,
  96.        INCLUDE_DIALOG_Y_POSITION,
  97.        INCLUDE_DIALOG_X_SIZE,
  98.        INCLUDE_DIALOG_Y_SIZE,
  99.        FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE |
  100.        WS_SAVEBITS,
  101.        FCF_SYSMENU | FCF_TITLEBAR
  102.     BEGIN
  103.         CONTROL "MM_MCINOTIFY", ID_NOTIFY_CB,
  104.            CB_FIRST_COLUMN_X_POSITION,
  105.            CB_COLUMN_Y_POSITION + CB_OFFSET_Y_POSITION + CB_OFFSET_Y_POSITION,
  106.            CB_X_SIZE,
  107.            CB_Y_SIZE,
  108.            WC_BUTTON,
  109.            BS_AUTOCHECKBOX | WS_TABSTOP | WS_VISIBLE | WS_GROUP
  110.         CONTROL "MM_MCIPASSDEVICE", ID_PASSDEVICE_CB,
  111.            CB_FIRST_COLUMN_X_POSITION,
  112.            CB_COLUMN_Y_POSITION + CB_OFFSET_Y_POSITION,
  113.            CB_X_SIZE,
  114.            CB_Y_SIZE,
  115.            WC_BUTTON,
  116.            BS_AUTOCHECKBOX | WS_VISIBLE
  117.         CONTROL "MM_MCIPOSITIONCHANGE", ID_POSITION_CHANGE_PB,
  118.            CB_FIRST_COLUMN_X_POSITION,
  119.            CB_COLUMN_Y_POSITION,
  120.            CB_X_SIZE,
  121.            CB_Y_SIZE,
  122.            WC_BUTTON,
  123.            BS_AUTOCHECKBOX | WS_VISIBLE
  124.         CONTROL "MM_MCIEVENT", ID_EVENT_CB,
  125.            CB_SECOND_COLUMN_X_POSITION,
  126.            CB_COLUMN_Y_POSITION + CB_OFFSET_Y_POSITION + CB_OFFSET_Y_POSITION,
  127.            CB_RIGHT_COLUMN_X_SIZE,
  128.            CB_Y_SIZE,
  129.            WC_BUTTON,
  130.            BS_AUTOCHECKBOX | WS_VISIBLE
  131.         CONTROL "MM_MCICUEPOINT", ID_CUEPOINT_CB,
  132.            CB_SECOND_COLUMN_X_POSITION,
  133.            CB_COLUMN_Y_POSITION + CB_OFFSET_Y_POSITION,
  134.            CB_RIGHT_COLUMN_X_SIZE,
  135.            CB_Y_SIZE,
  136.            WC_BUTTON,
  137.            BS_AUTOCHECKBOX | WS_VISIBLE
  138.         CONTROL "MM_MCIPLAYLISTMESSAGE", ID_PLAYLIST_CB,
  139.            CB_SECOND_COLUMN_X_POSITION,
  140.            CB_COLUMN_Y_POSITION,
  141.            CB_RIGHT_COLUMN_X_SIZE,
  142.            CB_Y_SIZE,
  143.            WC_BUTTON,
  144.            BS_AUTOCHECKBOX | WS_VISIBLE
  145.         CONTROL "~Include", ID_INCLUDE_PB,
  146.            INCLUDE_PB_X_POSITION,
  147.            INCLUDE_PUSHBUTTONS_Y_POSITION,
  148.            INCLUDE_PUSHBUTTONS_X_SIZE,
  149.            INCLUDE_PUSHBUTTONS_Y_SIZE,
  150.            WC_BUTTON,
  151.            BS_DEFAULT | WS_VISIBLE | WS_GROUP | WS_TABSTOP
  152.         CONTROL "Cancel", ID_INCLUDE_CANCEL_PB,
  153.            INCLUDE_CANCEL_PB_X_POSITION,
  154.            INCLUDE_PUSHBUTTONS_Y_POSITION,
  155.            INCLUDE_PUSHBUTTONS_X_SIZE,
  156.            INCLUDE_PUSHBUTTONS_Y_SIZE,
  157.            WC_BUTTON,
  158.            BS_PUSHBUTTON | WS_VISIBLE
  159.         CONTROL "Help", ID_INCLUDE_HELP_PB,
  160.            INCLUDE_HELP_PB_X_POSITION,
  161.            INCLUDE_PUSHBUTTONS_Y_POSITION,
  162.            INCLUDE_PUSHBUTTONS_X_SIZE,
  163.            INCLUDE_PUSHBUTTONS_Y_SIZE,
  164.            WC_BUTTON,
  165.            BS_HELP | WS_VISIBLE
  166.         CONTROL "Select the type of MCI Notification messages you wish to",
  167.            ID_INSTRUCTION_TEXT_LINE_1,
  168.            INCLUDE_TEXT_X_POSITION,
  169.            INCLUDE_TEXT_1_Y_POSITION,
  170.            INCLUDE_TEXT_X_SIZE,
  171.            INCLUDE_TEXT_Y_SIZE,
  172.            WC_STATIC,
  173.            SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
  174.         CONTROL "appear in the Display Messages window.",
  175.            ID_INSTRUCTION_TEXT_LINE_2,
  176.            INCLUDE_TEXT_X_POSITION,
  177.            INCLUDE_TEXT_2_Y_POSITION,
  178.            INCLUDE_TEXT_X_SIZE,
  179.            INCLUDE_TEXT_Y_SIZE,
  180.            WC_STATIC,
  181.            SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
  182.     END
  183. END
  184.  
  185.  
  186. DLGTEMPLATE ID_DISPLAY_DIALOG_BOX LOADONCALL MOVEABLE DISCARDABLE
  187. BEGIN
  188.     DIALOG "String Test - Display Messages",
  189.        ID_DISPLAY_DIALOG_BOX,
  190.        DISPLAY_DIALOG_X_POSITION,
  191.        DISPLAY_DIALOG_Y_POSITION,
  192.        DISPLAY_DIALOG_X_SIZE,
  193.        DISPLAY_DIALOG_Y_SIZE,
  194.        FS_NOBYTEALIGN | FS_DLGBORDER |
  195.        WS_SAVEBITS,
  196.        FCF_SYSMENU    | FCF_TITLEBAR
  197.     BEGIN
  198.         CONTROL "", ID_DISPLAY_CONTROL,
  199.            DISPLAY_CONTROL_X_POSITION,
  200.            DISPLAY_CONTROL_Y_POSITION,
  201.            DISPLAY_CONTROL_X_SIZE,
  202.            DISPLAY_CONTROL_Y_SIZE,
  203.            WC_LISTBOX,
  204.            LS_NOADJUSTPOS | WS_TABSTOP | WS_VISIBLE
  205.         CONTROL "~Include...", ID_DISPLAY_INCLUDE_PB,
  206.            DISPLAY_INCLUDE_PB_X_POSITION,
  207.            DISPLAY_PUSHBUTTONS_Y_POSITION,
  208.            DISPLAY_PUSHBUTTONS_X_SIZE,
  209.            DISPLAY_PUSHBUTTONS_Y_SIZE,
  210.            WC_BUTTON,
  211.            BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
  212.         CONTROL "Cancel", ID_DISPLAY_CANCEL_PB,
  213.            DISPLAY_CANCEL_PB_X_POSITION,
  214.            DISPLAY_PUSHBUTTONS_Y_POSITION,
  215.            DISPLAY_PUSHBUTTONS_X_SIZE,
  216.            DISPLAY_PUSHBUTTONS_Y_SIZE,
  217.            WC_BUTTON,
  218.            BS_PUSHBUTTON | WS_VISIBLE
  219.         CONTROL "Help", ID_DISPLAY_HELP_PB,
  220.            DISPLAY_HELP_PB_X_POSITION,
  221.            DISPLAY_PUSHBUTTONS_Y_POSITION,
  222.            DISPLAY_PUSHBUTTONS_X_SIZE,
  223.            DISPLAY_PUSHBUTTONS_Y_SIZE,
  224.            WC_BUTTON,
  225.            BS_HELP | WS_VISIBLE
  226.         CONTROL "Notification messages", ID_MESSAGES_TEXT,
  227.            DISPLAY_TEXT_X_POSITION,
  228.            DISPLAY_TEXT_Y_POSITION,
  229.            DISPLAY_TEXT_X_SIZE,
  230.            DISPLAY_TEXT_Y_SIZE,
  231.            WC_STATIC,
  232.            SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  233.     END
  234. END
  235.  
  236.