home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Frameworks / Argus Frameworks 2.1 / Argus Starter 2.1 / Dialogs / SampleDialog.r < prev    next >
Encoding:
Text File  |  1996-01-04  |  1.8 KB  |  122 lines  |  [TEXT/KAHL]

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