home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Frameworks / Argus Starter 2.0 / Dialogs / SampleDialog.r < prev    next >
Encoding:
Text File  |  1995-06-23  |  1.8 KB  |  123 lines  |  [TEXT/KAHL]

  1. /**********************************************************************
  2.  
  3.     SampleDialog.r
  4.  
  5. ***********************************************************************/
  6.  
  7. /* THINK Rez resource format */
  8. #include <Types.r>
  9. #include <BalloonTypes.r>
  10.  
  11. resource 'CNTL' (500, "Popup", purgeable) {
  12.     {90, 40, 109, 282},
  13.     popupTitleLeftJust,
  14.     visible,
  15.     80,  /* pixel width of title */
  16.     500, /* MENU resource ID */
  17.     popupMenuCDEFProc,
  18.     0,   /* reference value */
  19.     "Database:"
  20. };
  21.  
  22. resource 'MENU' (500, "Popup Items") {
  23.     500,  /* menu ID */
  24.     textMenuProc,
  25.     allEnabled,
  26.     enabled,
  27.     "Popup",
  28.     {
  29.         "Yellow Pages", noIcon, nokey, noMark, plain,
  30.         "White Pages", noIcon, nokey, noMark, plain,
  31.         "Personal Database", noIcon, nokey, noMark, plain
  32.     }
  33. };
  34.  
  35. resource 'DLOG' (500, "Sample Dialog", purgeable) {
  36.     {46, 10, 195, 460},
  37.     movableDBoxProc,
  38.     invisible,
  39.     noGoAway,
  40.     0x0,
  41.     500,
  42.     "Sample Dialog"
  43. };
  44.  
  45. resource 'DITL' (500, "Sample Dialog", purgeable) {
  46.     {    /* array DITLarray: 11 elements */
  47.         /* [1] */
  48.         {119, 382, 139, 440},
  49.         Button {
  50.             enabled,
  51.             "OK"
  52.         },
  53.         /* [2] */
  54.         {119, 311, 139, 369},
  55.         Button {
  56.             enabled,
  57.             "Cancel"
  58.         },
  59.         /* [3] */
  60.         {20, 30, 36, 86},
  61.         StaticText {
  62.             disabled,
  63.             "Name"
  64.         },
  65.         /* [4] */
  66.         {50, 30, 66, 86},
  67.         StaticText {
  68.             disabled,
  69.             "Phone"
  70.         },
  71.         /* [5] */
  72.         {20, 90, 36, 288},
  73.         EditText {
  74.             enabled,
  75.             ""
  76.         },
  77.         /* [6] */
  78.         {50, 90, 66, 288},
  79.         EditText {
  80.             enabled,
  81.             ""
  82.         },
  83.         /* [7] */
  84.         {20, 340, 38, 446},
  85.         RadioButton {
  86.             enabled,
  87.             "Male"
  88.         },
  89.         /* [8] */
  90.         {40, 340, 58, 446},
  91.         RadioButton {
  92.             enabled,
  93.             "Female"
  94.         },
  95.         /* [9] */
  96.         {60, 350, 76, 425},
  97.         StaticText {
  98.             disabled,
  99.             "_______"
  100.         },
  101.         /* [10] */
  102.         {80, 340, 98, 446},
  103.         CheckBox {
  104.             enabled,
  105.             "Married"
  106.         },
  107.         /* [11] */
  108.         {90, 40, 109, 282},
  109.         Control {
  110.             enabled,
  111.             500
  112.         },
  113.         
  114.         {0, 0, 0, 0},
  115.         HelpItem {
  116.           disabled,
  117.           HMScanhdlg
  118.           {500}
  119.         }
  120.     }
  121. };
  122.  
  123. // End of File