home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Tools - Objects / MacApp / MacApp CD Release / MacApp 2.0.1 (Many Libraries) / Examples / CPlusExamples / DemoDialogs / DemoDialogs.r < prev    next >
Encoding:
Text File  |  1990-10-25  |  44.2 KB  |  1,449 lines  |  [TEXT/MPS ]

  1. /* Copyright © 1988-1990 Apple Computer, Inc.  All rights reserved. */
  2.  
  3. /* • Auto-Include the requirements for this source */
  4. #ifndef __TYPES.R__
  5. #include "Types.r"
  6. #endif
  7.  
  8. #ifndef __MacAppTypes__
  9. #include "MacAppTypes.r"
  10. #endif
  11.  
  12. #if qTemplateViews
  13. #ifndef __ViewTypes__
  14. #include "ViewTypes.r"
  15. #endif
  16. #endif
  17.  
  18. #if qDebug
  19. include "Debug.rsrc";
  20. #endif
  21. include "MacApp.rsrc";
  22. include "Dialog.rsrc";
  23.  
  24. include $$Shell("ObjApp")"DemoDialogs" 'CODE';
  25.  
  26. /* Resource IDs */
  27.  
  28. #define kTestIcon            1000
  29. #define kTestPopup             235
  30. #define kBaudPopup             236
  31. #define kParityPopup         237
  32. #define kTestPicture        1000
  33. #define kTestStrings        1000
  34. #define kCalcPicture        1009
  35.  
  36. /* Command numbers */
  37.  
  38. #define cProcedureViews        1001
  39. #define cTemplateViews        1002
  40. #define cMonthlyDialog        1003
  41. #define cSaveDialog            1004
  42. #define    cMarkDialog            1005
  43. #define cPageSetupDialog    1006
  44. #define cHomeBrewControls    1007
  45. #define cTabbingTest        1008
  46. #define cCalculator            1009
  47. #define cScrollingTest        1011
  48. #define cFormatDialog        1012
  49. #define cModelessMarkDialog    1013
  50. #define cPopupExample        1100
  51. #define cCluster            1101
  52.  
  53.  
  54. resource 'mem!' (1001,
  55. #if qNames
  56.     "BaseDemoDialogs",
  57. #endif
  58.     purgeable) {
  59.     0,                // Add to temporary reserve
  60.     0,                // Add to permanent reserve
  61.     $1000                // Add to stack space (actually this first one sets the base stack requirement
  62.                         // to be the same as for a Macintosh® Plus.
  63. };
  64.  
  65. resource 'seg!' (256, purgeable) {
  66.     {
  67.         "GOpen";
  68.         "GClose";
  69.         "GNonRes";
  70.         "GSelCommand";
  71.         "GDoCommand"
  72.     }
  73. };
  74.  
  75. resource 'SIZE' (-1) {
  76.     dontSaveScreen,
  77.     acceptSuspendResumeEvents,
  78.     enableOptionSwitch,
  79.     canBackground,
  80.     MultiFinderAware,
  81.     backgroundAndForeground,
  82.     dontGetFrontClicks,
  83.     ignoreChildDiedEvents,
  84.     is32BitCompatible,
  85.     reserved,
  86.     reserved,
  87.     reserved,
  88.     reserved,
  89.     reserved,
  90.     reserved,
  91.     reserved,
  92. #if qDebug
  93.     500 * 1024,
  94.     400 * 1024
  95. #else
  96.     290 * 1024,
  97.     218 * 1024
  98. #endif
  99. };
  100.  
  101. resource 'DITL' (phAboutApp, purgeable) {
  102.      {
  103. /* [1] */    {160, 182, 180, 262}, Button { enabled, "OK" };
  104. /* [2] */    {8, 70, 152, 316}, StaticText { disabled, 
  105.     "This program has several examples of MacApp dialogs." 
  106.     "\n\nThis program was written "
  107.     "with MacApp® © 1985-1990 Apple Computer, Inc."};
  108. /* [3] */    {10, 20, 42, 52}, Icon { disabled, 1 }
  109.     }
  110. };
  111.  
  112. resource 'ALRT' (1000, purgeable) {
  113.     {44, 48, 130, 358},
  114.     1000,
  115.     {
  116.         OK, visible, sound1,
  117.         OK, visible, sound1,
  118.         OK, visible, sound1,
  119.         OK, visible, sound1
  120.     }
  121. };
  122.  
  123. include "Defaults.rsrc"  'ALRT' (phAboutApp);    // Grab the default about box
  124.  
  125. include "Defaults.rsrc" 'cmnu' (mApple);        // Grab the default Apple menu
  126.  
  127. resource 'cmnu' (mFile) {
  128.     mFile,
  129.     textMenuProc,
  130.     0x7FFFFBBB,
  131.     enabled,
  132.     "File",
  133.      {
  134. /* [1] */    "Quit",        noIcon, "Q",    noMark, plain, cQuit
  135.     }
  136. };
  137.  
  138. include "Defaults.rsrc" 'cmnu' (mEdit);        // Grab the default Edit menus
  139.  
  140. resource 'cmnu' (4) {
  141.     4,
  142.     textMenuProc,
  143.     0x7FFFFFBD,
  144.     enabled,
  145.     "Dialogs",
  146.      {
  147. /* [1] */    "Views by Procedures",        noIcon, noKey, noMark, plain, cProcedureViews;
  148. /* [2] */    "Views by Templates",        noIcon, noKey, noMark, plain, cTemplateViews;
  149. /* [3] */    "Side-by-Side Scrolling",    noIcon, noKey, noMark, plain, cScrollingTest;
  150. /* [4] */    "Monthly Values Dialog",    noIcon, noKey, noMark, plain, cMonthlyDialog;
  151. /* [5] */    "Save Dialog",                noIcon, noKey, noMark, plain, cSaveDialog;
  152. /* [6] */    "Mark Dialog",                noIcon, noKey, nomark, plain, cMarkDialog;
  153. /* [6] */    "Modeless Mark Dialog",        noIcon, noKey, nomark, plain, cModelessMarkDialog;
  154. /* [7] */    "Page Setup Dialog",        noIcon, noKey, nomark, plain, cPageSetupDialog;
  155. /* [8] */    "Format Dialog",            noIcon, noKey, nomark, plain, cFormatDialog;
  156. /* [9] */    "Home Brew Controls",        noIcon, noKey, nomark, plain, cHomeBrewControls;
  157. /* [10] */    "Tabbing Test",                noIcon, noKey, nomark, plain, cTabbingTest;
  158. /* [11] */    "Calculator Test",            noIcon, noKey, noMark, plain, cCalculator
  159.     }
  160. };
  161.  
  162. include "Defaults.rsrc" 'cmnu' (mBuzzwords);    // Get the default buzzwords menu
  163.  
  164. resource 'cmnu' (kTestPopup) {
  165.     kTestPopup,
  166.     textMenuProc,
  167.     allEnabled,
  168.     enabled,
  169.     "Popup:",
  170.     {
  171. /* [1] */    "Item 1",     noIcon, "", "", plain, nocommand;
  172. /* [2] */    "Item 2",     noIcon, "", "", plain, nocommand;
  173. /* [3] */    "Item 3",     noIcon, "", "", plain, nocommand;
  174. /* [4] */    "Item 4",     noIcon, "", "", plain, nocommand;
  175. /* [5] */    "Item 5",     noIcon, "", "", plain, nocommand;
  176. /* [6] */    "Item 6",     noIcon, "", "", plain, nocommand;
  177. /* [7] */    "Item 7",     noIcon, "", "", plain, nocommand;
  178. /* [8] */    "Item 8",     noIcon, "", "", plain, nocommand
  179.     }
  180. };
  181.  
  182. resource 'mctb' (kTestPopup) { {
  183.         kTestPopup, 0,
  184.         {
  185.         0x9999, 0x0000, 0x9999;            /* title color */
  186.         0xFFFF, 0x6666, 0x0000;            /* "menu bar" color */
  187.         0x0000, 0x6666, 0xFFFF;            /* default item color */
  188.         0xFFFF, 0xFFFF, 0x0000            /* default menu background color */
  189.         };
  190.  
  191.         kTestPopup, 3,
  192.         {
  193.         0xFFFF, 0x0000, 0x0000;            /* mark color */
  194.         0xFFFF, 0x0000, 0x0000;            /* name color */
  195.         0xFFFF, 0x0000, 0x0000;            /* command Key color */
  196.         0xFFFF, 0xFFFF, 0xFFFF            /* NFG!!! */
  197.         }
  198. } };
  199.  
  200. resource 'cmnu' (kBaudPopup) {
  201.     kBaudPopup,
  202.     textMenuProc,
  203.     allEnabled,
  204.     enabled,
  205.     "Baud:",
  206.     {
  207. /* [1] */    "110",     noIcon, "", "", plain, nocommand;
  208. /* [2] */    "300",     noIcon, "", "", plain, nocommand;
  209. /* [3] */    "600",     noIcon, "", "", plain, nocommand;
  210. /* [4] */    "1200",     noIcon, "", "", plain, nocommand
  211.     }
  212. };
  213.  
  214. resource 'cmnu' (kParityPopup) {
  215.     kParityPopup,
  216.     textMenuProc,
  217.     allEnabled,
  218.     enabled,
  219.     "Parity:",
  220.     {
  221. /* [1] */    "Even",     noIcon, "", "", plain, nocommand;
  222. /* [2] */    "Odd",     noIcon, "", "", plain, nocommand;
  223. /* [3] */    "No",     noIcon, "", "", plain, nocommand
  224.     }
  225. };
  226.  
  227. resource 'MBAR' (kMBarDisplayed) { {mApple; mFile; mEdit; 4} };
  228.  
  229. resource 'MBAR' (kMBarNotDisplayed) { {kTestPopup; kBaudPopup; kParityPopup} };
  230.  
  231. resource 'STR#' (kTestStrings, purgeable) { {
  232.     "Scroll me vertically…\n\n(P.S. This should read 'PARAM0': ^0\nThis should read 'PARAM1': ^1\nThis should read 'PARAM0': ^0)";
  233.     "A static string"
  234. } };
  235.  
  236. /************************************************************************************/
  237. /*    Views by procedure                                                                */
  238. /************************************************************************************/
  239. resource 'WIND' (cProcedureViews, purgeable) {
  240.     {50, 20, 310, 450}, zoomDocProc, invisible, goAway, 0x0, "Views by Procedure"
  241. };
  242.  
  243. /************************************************************************************/
  244. /*    Views by template                                                                */
  245. /************************************************************************************/
  246. resource 'view' (cCluster, purgeable) {
  247.     {
  248.         root, 'TCls', {0, 0}, { 190, 150 }, sizeFixed, sizeFixed, shown, disabled,
  249.         Cluster {
  250.             "",
  251.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  252.                 noInset, systemFont,
  253.             "A Cluster!" };
  254.  
  255.         'TCls', 'PRad', { 20, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  256.         Radio {
  257.             "",
  258.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  259.                 noInset, systemFont,
  260.             on, "Plain" };
  261.  
  262.         'TCls', 'BRad', { 40, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  263.         Radio {
  264.             "",
  265.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  266.                 noInset, bold, 12, black, "",
  267.             off, "Bold" };
  268.  
  269.         'TCls', 'IRad', { 60, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  270.         Radio {
  271.             "",
  272.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  273.                 noInset, italic, 12, black, "",
  274.             off, "Italic" };
  275.  
  276.         'TCls', 'URad', { 80, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  277.         Radio {
  278.             "",
  279.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  280.                 noInset, underline, 12, black, "",
  281.             off, "Underline" };
  282.  
  283.         'TCls', 'ORad', { 100, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  284.         Radio {
  285.             "",
  286.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  287.                 noInset, outline, 12, black, "",
  288.             off, "Outline" };
  289.  
  290.         'TCls', 'SRad', { 120, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  291.         Radio {
  292.             "",
  293.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  294.                 noInset, shadow, 12, black, "",
  295.             off, "Shadow" };
  296.  
  297.         'TCls', 'CRad', { 140, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  298.         Radio {
  299.             "",
  300.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  301.                 noInset, condense, 12, black, "",
  302.             off, "Condense" };
  303.  
  304.         'TCls', 'ERad', { 160, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  305.         Radio {
  306.             "",
  307.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  308.                 noInset, extend, 12, black, "",
  309.             off, "Extend" };
  310.     }
  311. };
  312.  
  313.  
  314. resource 'view' (cTemplateViews, purgeable) {
  315.     {
  316.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  317.         Window {
  318.             "",
  319.                 zoomDocProc, goAwayBox, resizable, modeless, doFirstClick,
  320.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  321.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'DLOG',
  322.                 "Views by Template" };
  323.  
  324.         'WIND', 'SCLR',    { 0, 0 }, { 260-kSBarSizeMinus1, 430-kSBarSizeMinus1 },
  325.         sizeRelSuperView, sizeRelSuperView, shown, enabled,
  326.         Scroller {
  327.             "",
  328.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  329.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  330.  
  331.         'SCLR', 'DLOG',    { 0, 0 }, { 900, 480 },
  332.         sizeFixed, sizeFixed, shown, enabled,
  333.         DialogView { "", noID, noID };
  334.  
  335.         'DLOG', IncludeViewsAt { cCluster, { 340, 100 } };
  336.  
  337.         'DLOG', noID, { 100, 50 }, { 150, 300 }, sizeFixed, sizeFixed, shown, disabled,
  338.         StaticText {
  339.             "",
  340.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  341.                 noInset, italic, 12, {0, 0, 0xFFFF}, "a",
  342.             justCenter, "Scroll me vertically…\n\n(P.S. This should read 'PARAM0': ^0\nThis should read 'PARAM1': ^1\nThis should read 'PARAM0': ^0)" };
  343.  
  344.         'DLOG', noID, { 540, 100 }, { 20, 100 }, sizeFixed, sizeFixed, shown, enabled,
  345.         CheckBox {
  346.             "",
  347.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  348.                 noInset, applFont12,
  349.             off, "Check Box" };
  350.  
  351.         'DLOG', noID,    { 540, 270 }, { 28, 100 }, sizeFixed, sizeFixed, shown, enabled,
  352.         Button {
  353.             "",
  354.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, doesntDismiss,
  355.                 { 4, 4, 4, 4 }, plain, 10, {0, 0, 0}, "a",
  356.             "Push Button" };
  357.  
  358.         'DLOG', noID, { 570, 130 }, { 35, 35 }, sizeFixed, sizeFixed, shown, enabled,
  359.         Icon {
  360.             "",
  361.                 adnFrame+adnShadow, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  362.                 { 1, 1, 1, 1 }, systemFont,
  363.             preferColor, kTestIcon };
  364.  
  365.         'DLOG', noID, { 660, 100 }, { 0x18C-0xF0+16, 0x12C-0x8F+16 },
  366.         sizeFixed, sizeFixed, shown, enabled,
  367.         Picture {
  368.             "",
  369.                 adnRRect+adnShadow, {2, 2}, sizeable, notDimmed, notHilited, doesntDismiss,
  370.                 { 8, 8, 8, 8 }, systemFont,
  371.             kTestPicture };
  372.  
  373.         'DLOG', noID, { 620, 20 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  374.         StaticText {
  375.             "",
  376.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  377.                 noInset, plain, 12, {0xFFFF, 0, 0}, "",
  378.             justCenter, "A static string" };
  379.  
  380.         'DLOG', noID, { 620, 140 }, { 22, 100 }, sizeFixed, sizeFixed, shown, enabled,
  381.         EditText {
  382.             "",
  383.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  384.                 {3, 3, 3, 3}, applFont12,
  385.             justRight, "EditText",
  386.             255, ArrowsAndBackspace }
  387.     }
  388. };
  389.  
  390. /*    The popup example is separate from the rest of the views so that we avoid        */
  391. /*    creating it if the machine doesn't support popup menus.                            */
  392.  
  393. resource 'view' (cPopupExample, purgeable) {
  394.     {
  395.         root, noID, { 589, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  396.         Popup {
  397.             "",
  398.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  399.                 noInset, systemFont,
  400.             kTestPopup, 2, 50 },
  401.         root, noID, { 624, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  402.         Popup {
  403.             "",
  404.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  405.                 noInset, systemFont,
  406.             kBaudPopup, 1, 50 },
  407.         root, noID, { 659, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  408.         Popup {
  409.             "",
  410.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  411.                 noInset, systemFont,
  412.             kParityPopup, 1, 50 }
  413.     }
  414. };
  415.  
  416. /************************************************************************************/
  417. /*    Scrolling test dialog                                                            */
  418. /************************************************************************************/
  419. resource 'view' (cScrollingTest, purgeable) {
  420.     {
  421.         root, 'WIND', { 50, 20 }, { 260, 431 }, sizeVariable, sizeVariable, shown, enabled,
  422.         Window {
  423.             "",
  424.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  425.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  426.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, noId,
  427.                 "Side-by-Side Scrolling" };
  428.  
  429.         'WIND', 'SCL1',    { 0, 0 }, { 260-kSBarSizeMinus1, 215-kSBarSizeMinus1 },
  430.         sizeRelSuperView, sizeFixed, shown, disabled,
  431.         Scroller {
  432.             "",
  433.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  434.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  435.  
  436.         'SCL1', noId, { 0, 0 }, { 160000, 1000 },
  437.         sizeFixed, sizeFixed, shown, enabled,
  438.         View { "TNumbersView" };
  439.  
  440.         'WIND', 'SCL2',    { 0 , 216 }, { 260-kSBarSizeMinus1, 215-kSBarSizeMinus1 },
  441.         sizeRelSuperView, sizeRelSuperView, shown, disabled,
  442.         Scroller {
  443.             "",
  444.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  445.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  446.  
  447.         'SCL2', noId, { 0, 0 }, { 160000, 1000 },
  448.         sizeFixed, sizeFixed, shown, enabled,
  449.         View { "TNumbersView"  }
  450.     }
  451. };
  452.  
  453.  
  454.  
  455. /************************************************************************************/
  456. /*    Monthly values dialog                                                            */
  457. /************************************************************************************/
  458. resource 'view' (cMonthlyDialog, purgeable) {
  459.     {
  460.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  461.         Window {
  462.             "",
  463.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  464.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  465.                 AdaptToScreen, stagger, forceOnScreen, dontCenter, 'jan ',
  466.                 "Monthly Values" };
  467.  
  468.         'WIND', 'SCLR',    { 0, 0 }, { 260-kSBarSizeMinus1, 430-kSBarSizeMinus1 },
  469.         sizeRelSuperView, sizeRelSuperView, shown, enabled,
  470.         Scroller {
  471.             "",
  472.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  473.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  474.  
  475.         'SCLR', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  476.         DialogView {
  477.             "TMonthlyDialog",
  478.                 noID, noID };
  479.  
  480.         'DLOG', noID, { 10, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  481.         StaticText {
  482.             "",
  483.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  484.                 noInset, systemFont,
  485.             justSystem, "January" };
  486.  
  487.         'DLOG', 'jan ', { 9, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  488.         NumberText {
  489.             "",
  490.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  491.                 stdInset, applFont12,
  492.             justRight, "",
  493.             5, arrowsAndBackspace,
  494.             0, 0, 32767 };
  495.  
  496.         'DLOG', noID, { 40, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  497.         StaticText {
  498.             "",
  499.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  500.                 noInset, systemFont,
  501.             justSystem, "February" };
  502.  
  503.         'DLOG', 'feb ', { 39, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  504.         NumberText {
  505.             "",
  506.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  507.                 stdInset, applFont12,
  508.             justRight, "",
  509.             5, arrowsAndBackspace,
  510.             0, 0, 32767 };
  511.  
  512.         'DLOG', noID, { 70, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  513.         StaticText {
  514.             "",
  515.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  516.                 noInset, systemFont, justSystem, "March" };
  517.  
  518.         'DLOG', 'mar ', { 69, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  519.         NumberText {
  520.             "",
  521.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  522.                 stdInset, applFont12,
  523.             justRight, "",
  524.             5, arrowsAndBackspace,
  525.             0, 0, 32767 };
  526.  
  527.         'DLOG', noID, { 100, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  528.         StaticText {
  529.             "",
  530.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  531.                 noInset, systemFont,
  532.             justSystem, "April" };
  533.  
  534.         'DLOG', 'apr ', { 99, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  535.         NumberText {
  536.             "",
  537.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  538.                 stdInset, applFont12,
  539.             justRight, "",
  540.             5, arrowsAndBackspace,
  541.             0, 0, 32767 };
  542.  
  543.         'DLOG', noID, { 130, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  544.         StaticText {
  545.             "",
  546.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  547.                 noInset, systemFont,
  548.             justSystem, "May" };
  549.  
  550.         'DLOG', 'may ', { 129, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  551.         NumberText {
  552.             "",
  553.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  554.                 stdInset, applFont12,
  555.             justRight, "",
  556.             5, arrowsAndBackspace,
  557.             0, 0, 32767 };
  558.  
  559.         'DLOG', noID, { 160, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  560.         StaticText {
  561.             "",
  562.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  563.                 noInset, systemFont,
  564.             justSystem, "June" };
  565.  
  566.         'DLOG', 'jun ', { 159, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  567.         NumberText {
  568.             "",
  569.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  570.                 stdInset, applFont12,
  571.             justRight, "",
  572.             5, arrowsAndBackspace,
  573.             0, 0, 32767 };
  574.  
  575.         'DLOG', noID, { 190, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  576.         StaticText {
  577.             "",
  578.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  579.                 noInset, systemFont,
  580.             justSystem, "July" };
  581.  
  582.         'DLOG', 'jul ', { 189, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  583.         NumberText {
  584.             "",
  585.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  586.                 stdInset, applFont12,
  587.             justRight, "",
  588.             5, arrowsAndBackspace,
  589.             0, 0, 32767 };
  590.  
  591.         'DLOG', noID, { 220, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  592.         StaticText {
  593.             "",
  594.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  595.                 noInset, systemFont,
  596.             justSystem, "August" };
  597.  
  598.         'DLOG', 'aug ', { 219, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  599.         NumberText {
  600.             "",
  601.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  602.                 stdInset, applFont12,
  603.             justRight, "",
  604.             5, arrowsAndBackspace,
  605.             0, 0, 32767 };
  606.  
  607.         'DLOG', noID, { 250, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  608.         StaticText {
  609.             "",
  610.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  611.                 noInset, systemFont,
  612.             justSystem, "September" };
  613.  
  614.         'DLOG', 'sep ', { 249, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  615.         NumberText {
  616.             "",
  617.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  618.                 stdInset, applFont12,
  619.             justRight, "",
  620.             5, arrowsAndBackspace,
  621.             0, 0, 32767 };
  622.  
  623.         'DLOG', noID, { 280, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  624.         StaticText {
  625.             "",
  626.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  627.                 noInset, systemFont,
  628.             justSystem, "October" };
  629.  
  630.         'DLOG', 'oct ', { 279, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  631.         NumberText {
  632.             "",
  633.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  634.                 stdInset, applFont12,
  635.             justRight, "",
  636.             5, arrowsAndBackspace,
  637.             0, 0, 32767 };
  638.  
  639.         'DLOG', noID, { 310, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  640.         StaticText {
  641.             "",
  642.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  643.                 noInset, systemFont,
  644.             justSystem, "November" };
  645.  
  646.         'DLOG', 'nov ', { 309, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  647.         NumberText {
  648.             "",
  649.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  650.                 stdInset, applFont12,
  651.             justRight, "",
  652.             5, arrowsAndBackspace,
  653.             0, 0, 32767 };
  654.  
  655.         'DLOG', noID, { 340, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  656.         StaticText {
  657.             "",
  658.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  659.                 noInset, systemFont,
  660.             justSystem, "December" };
  661.  
  662.         'DLOG', 'dec ', { 339, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  663.         NumberText {
  664.             "",
  665.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  666.                 stdInset, applFont12,
  667.             justRight, "",
  668.             5, arrowsAndBackspace,
  669.             0, 0, 32767 }
  670.  
  671.     }
  672. };
  673.  
  674.  
  675. /************************************************************************************/
  676. /*    The "Save" dialog                                                                */
  677. /************************************************************************************/
  678. resource 'view' (cSaveDialog, purgeable) {
  679.     {
  680.         root, 'WIND', { 100, 110 }, { 120, 292 }, sizeVariable, sizeVariable, shown, enabled,
  681.         Window {
  682.             "",
  683.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  684.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  685.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally,
  686.                 'DLOG', "Save Dialog" };
  687.  
  688.         'WIND', 'DLOG',    { 0, 0 }, { 120, 292 }, sizeFixed, sizeFixed, shown, enabled,
  689.         DialogView {
  690.             "",
  691.                 'yes ', 'cncl' };
  692.  
  693.         'DLOG', 'yes ',    { 56, 23 }, { 26, 82 }, sizeFixed, sizeFixed, shown, enabled,
  694.         Button {
  695.             "",
  696.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  697.                 { 4, 4, 4, 4 }, systemFont,
  698.             "Yes" };
  699.  
  700.         'DLOG', 'no  ',    { 86, 195 }, { 18, 74 }, sizeFixed, sizeFixed, shown, enabled,
  701.         Button {
  702.             "",
  703.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  704.                 noInset, systemFont,
  705.             "No" };
  706.  
  707.         'DLOG', 'cncl',    { 86, 25 }, { 18, 74 }, sizeFixed, sizeFixed, shown, enabled,
  708.         Button {
  709.             "",
  710.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  711.                 noInset, systemFont,
  712.             "Cancel" };
  713.  
  714.         'DLOG', noID, { 12, 20 }, { 33, 257 }, sizeFixed, sizeFixed, shown, disabled,
  715.         StaticText {
  716.             "",
  717.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  718.                 noInset, systemFont,
  719.             justSystem, "Save changes to Untitled-1 before closing?" }
  720.     }
  721. };
  722.  
  723.  
  724. /************************************************************************************/
  725. /*    The "Mark" Dialog                                                                */
  726. /************************************************************************************/
  727. resource 'view' (cMarkDialog, purgeable) {
  728.     {
  729.         root, 'WIND', { 72, 64 }, { 92, 364 }, sizeVariable, sizeVariable, shown, enabled,
  730.         Window {
  731.             "",
  732.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  733.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  734.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'mark',
  735.                 "Mark Dialog" };
  736.  
  737.         'WIND', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  738.         DialogView {
  739.             "",
  740.                 'ok  ', 'cncl' };
  741.  
  742.         'DLOG', 'ok  ',    { 60, 48 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  743.         Button {
  744.             "",
  745.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  746.                 { 4, 4, 4, 4 }, systemFont,
  747.             "OK" };
  748.  
  749.         'DLOG', 'cncl',    { 64, 231 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  750.         Button {
  751.             "",
  752.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  753.                 noInset, systemFont,
  754.             "Cancel" };
  755.  
  756.         'DLOG', noID, { 8, 8 }, { 16, 344 }, sizeFixed, sizeFixed, shown, disabled,
  757.         StaticText {
  758.             "",
  759.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  760.                 noInset, systemFont,
  761.             justSystem, "Mark the selection with what name?" };
  762.  
  763.         'DLOG', 'mark', { 29, 7 }, { 22, 346 }, sizeFixed, sizeFixed, shown, enabled,
  764.         EditText {
  765.             "",
  766.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  767.                 stdInset, systemFont,
  768.             justSystem, "",
  769.             255, arrowsAndBackspace }
  770.     }
  771. };
  772.  
  773. /************************************************************************************/
  774. /*    The Modeless "Mark" Dialog                                                        */
  775. /************************************************************************************/
  776. resource 'view' (cModelessMarkDialog, purgeable) {
  777.     {
  778.         root, 'WIND', { 72, 64 }, { 92, 364 }, sizeVariable, sizeVariable, shown, enabled,
  779.         Window {
  780.             "",
  781.                 documentProc, goAwayBox, notResizable, modeless, ignoreFirstClick,
  782.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  783.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'mark',
  784.                 "Modeless Mark Dialog" };
  785.  
  786.         'WIND', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  787.         DialogView {
  788.             "TModelessMarkDialog",
  789.                 'ok  ', 'cncl' };
  790.  
  791.         'DLOG', 'ok  ',    { 60, 48 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  792.         Button {
  793.             "",
  794.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  795.                 { 4, 4, 4, 4 }, systemFont,
  796.             "OK" };
  797.  
  798.         'DLOG', 'cncl',    { 64, 231 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  799.         Button {
  800.             "",
  801.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  802.                 noInset, systemFont,
  803.             "Cancel" };
  804.  
  805.         'DLOG', noID, { 8, 8 }, { 16, 344 }, sizeFixed, sizeFixed, shown, disabled,
  806.         StaticText {
  807.             "",
  808.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  809.                 noInset, systemFont,
  810.             justSystem, "Mark the selection with what name?" };
  811.  
  812.         'DLOG', 'mark', { 29, 7 }, { 22, 346 }, sizeFixed, sizeFixed, shown, enabled,
  813.         EditText {
  814.             "",
  815.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  816.                 stdInset, systemFont,
  817.             justSystem, "",
  818.             255, arrowsAndBackspace }
  819.     }
  820. };
  821.  
  822. /************************************************************************************/
  823. /*    ImageWriter Page Setup Dialog                                                    */
  824. /************************************************************************************/
  825. resource 'view' (cPageSetupDialog, purgeable) {
  826.     {
  827.         root, 'WIND', { 30, 20 }, { 144, 472 }, sizeVariable, sizeVariable, shown, enabled,
  828.         Window {
  829.             "",
  830.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  831.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  832.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'DLOG',
  833.                 "Page Setup Dialog" };
  834.  
  835.         'WIND', 'DLOG',    { 0, 0 }, { 144, 472 }, sizeFixed, sizeFixed, shown, enabled,
  836.         DialogView {
  837.             "TPageSetupDialog",
  838.                 'ok  ', 'cncl' };
  839.  
  840.         'DLOG', 'ok  ',    { 0, 396 }, { 28, 68 }, sizeFixed, sizeFixed, shown, enabled,
  841.         Button {
  842.             "",
  843.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  844.                 { 4, 4, 4, 4 }, systemFont,
  845.             "OK" };
  846.  
  847.         'DLOG', 'cncl',    { 40, 400 }, { 20, 60 }, sizeFixed, sizeFixed, shown, enabled,
  848.         Button {
  849.             "",
  850.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  851.                 noInset, systemFont,
  852.             "Cancel" };
  853.  
  854.         'DLOG', noID, { 4, 4 }, { 16, 380 }, sizeFixed, sizeFixed, shown, disabled,
  855.         StaticText {
  856.             "",
  857.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  858.                 noInset, systemFont,
  859.             justSystem, "ImageWriter" };
  860.  
  861.         'DLOG', noID, { 20, 4 }, { 3, 380 }, sizeFixed, sizeFixed, shown, disabled,
  862.         Control {
  863.             "",
  864.                 adnLineTop+adnLineBottom, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  865.                 noInset, systemFont };
  866.  
  867.         'DLOG', noID, { 8, 300 }, { 12, 384-300 }, sizeFixed, sizeFixed, shown, disabled,
  868.         StaticText {
  869.             "",
  870.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  871.                 noInset, applFont9,
  872.             justRight, "MacApp 2.0" };
  873.  
  874.         'DLOG', noID, { 24, 4 }, { 16, 58 }, sizeFixed, sizeFixed, shown, disabled,
  875.         StaticText {
  876.             "",
  877.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  878.                 noInset, systemFont,
  879.             justSystem, "Paper:" };
  880.  
  881.         'DLOG', 'papC', { 24, 68 }, { 46, 320 }, sizeFixed, sizeFixed, shown, disabled,
  882.         Cluster {
  883.             "",
  884.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  885.                 noInset, systemFont,
  886.             "" };
  887.  
  888.         'papC', 'pap1', { 0, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  889.         Radio {
  890.             "",
  891.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  892.                 noInset, systemFont,
  893.             on, "US Letter" };
  894.  
  895.         'papC', 'pap2', { 0, 150 }, { 16, 165 }, sizeFixed, sizeFixed, shown, enabled,
  896.         Radio {
  897.             "",
  898.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  899.                 noInset, systemFont,
  900.             off, "A4 Letter" };
  901.  
  902.         'papC', 'pap3', { 15, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  903.         Radio {
  904.             "",
  905.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  906.                 noInset, systemFont,
  907.             off, "US Legal" };
  908.  
  909.         'papC', 'pap4', { 15, 150 }, { 16, 165 }, sizeFixed, sizeFixed, shown, enabled,
  910.         Radio {
  911.             "",
  912.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  913.                 noInset, systemFont,
  914.             off, "International Fanfold" };
  915.  
  916.         'papC', 'pap5', { 30, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  917.         Radio {
  918.             "",
  919.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  920.                 noInset, systemFont,
  921.             off, "Computer Paper" };
  922.  
  923.         'papC', 'pap6', { 30, 150 }, { 16, 165 }, sizeFixed, sizeFixed, notShown, disabled,
  924.         Radio {
  925.             "",
  926.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  927.                 noInset, systemFont,
  928.             off, "Invisible" };
  929.  
  930.         'DLOG', noID, { 74, 4 }, { 16, 84 }, sizeFixed, sizeFixed, shown, disabled,
  931.         StaticText {
  932.             "",
  933.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  934.                 noInset, systemFont,
  935.             justSystem, "Orientation" };
  936.  
  937.         'DLOG', 'vert', { 93, 5 }, { 32, 32 }, sizeFixed, sizeFixed, shown, enabled,
  938.         Icon {
  939.             "TRadioIcon",
  940.                 noAdornment, sizeable, notDimmed, hilited, doesntDismiss,
  941.                 noInset, systemFont,
  942.             dontPreferColor, 10060 };
  943.  
  944.         'DLOG', 'horz', { 93, 45 }, { 32, 32 }, sizeFixed, sizeFixed, shown, enabled,
  945.         Icon {
  946.             "TRadioIcon",
  947.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  948.                 noInset, systemFont,
  949.             dontPreferColor, 10061 };
  950.  
  951.         'DLOG', noID, { 74, 106 }, { 16, 113 }, sizeFixed, sizeFixed, shown, disabled,
  952.         StaticText {
  953.             "",
  954.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  955.                 noInset, systemFont,
  956.             justSystem, "Special Effects:" };
  957.  
  958.         'DLOG', 'tall', { 74, 220 }, { 16, 108 }, sizeFixed, sizeFixed, shown, enabled,
  959.         CheckBox {
  960.             "",
  961.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  962.                 noInset, systemFont,
  963.             off, "Tall Adjusted" };
  964.  
  965.         'DLOG', 'red ', { 89, 220 }, { 16, 122 }, sizeFixed, sizeFixed, shown, enabled,
  966.         CheckBox {
  967.             "",
  968.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  969.                 noInset, systemFont,
  970.             off, "50 % Reduction" };
  971.  
  972.         'DLOG', 'gap ', { 104, 220 }, { 16, 181 }, sizeFixed, sizeFixed, shown, enabled,
  973.         CheckBox {
  974.             "",
  975.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  976.                 noInset, systemFont,
  977.             off, "No Gap Between Pages" }
  978.     }
  979. };
  980.  
  981. /************************************************************************************/
  982. /*    Format Dialog                                                                    */
  983. /************************************************************************************/
  984. resource 'view' (cFormatDialog, purgeable) {
  985.     {
  986.         root, 'WIND', { 68, 52 }, { 245-68, 435-52 }, sizeFixed, sizeFixed, shown, enabled,
  987.         Window {
  988.             "",
  989.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  990.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  991.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'size',
  992.                 "Format Dialog" };
  993.  
  994.         'WIND', 'DLOG',    { 0, 0 }, { 245-68, 435-52 }, sizeSuperView, sizeSuperView, shown, enabled,
  995.         DialogView {
  996.             "",
  997.                 'ok  ', 'cncl' };
  998.  
  999.         'DLOG', 'ok  ',    { 100, 264 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  1000.         Button {
  1001.             "",
  1002.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  1003.                 { 4, 4, 4, 4 }, systemFont,
  1004.             "OK" };
  1005.  
  1006.         'DLOG', 'cncl',    { 135, 268 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  1007.         Button {
  1008.             "",
  1009.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  1010.                 noInset, systemFont,
  1011.             "Cancel" };
  1012.  
  1013.         'DLOG', noID, { 68, 253 }, { 17, 38 }, sizeFixed, sizeFixed, shown, disabled,
  1014.         StaticText {
  1015.             "",
  1016.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1017.                 noInset, systemFont,
  1018.             justSystem, "Tabs:" };
  1019.  
  1020.         'DLOG', 'tabs', { 65, 295 }, { 22, 37 }, sizeFixed, sizeFixed, shown, enabled,
  1021.         NumberText {
  1022.             "",
  1023.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1024.                 stdInset, systemFont,
  1025.             justSystem, "", 255, arrowsAndBackspace, 4, 0, 99 };
  1026.  
  1027.         'DLOG', 'inv ', { 42, 245 }, { 20, 127 }, sizeFixed, sizeFixed, shown, enabled,
  1028.         CheckBox {
  1029.             "",
  1030.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1031.                 noInset, systemFont,
  1032.             off, "Show Invisibles" };
  1033.  
  1034.         'DLOG', 'auto', { 25, 245 }, { 18, 123 }, sizeFixed, sizeFixed, shown, enabled,
  1035.         CheckBox {
  1036.             "",
  1037.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1038.                 noInset, systemFont,
  1039.             on, "Auto Indent" };
  1040.  
  1041.         'DLOG', noID, { 7, 15 }, { 18, 38 }, sizeFixed, sizeFixed, shown, disabled,
  1042.         StaticText {
  1043.             "",
  1044.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1045.                 noInset, systemFont,
  1046.             justSystem, "Font" };
  1047.  
  1048.         'DLOG', noID, { 7, 184 }, { 18, 33 }, sizeFixed, sizeFixed, shown, disabled,
  1049.         StaticText {
  1050.             "",
  1051.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1052.                 noInset, systemFont,
  1053.             justSystem, "Size" };
  1054.  
  1055.         'DLOG', 'size', { 27, 180 }, { 22, 40 }, sizeFixed, sizeFixed, shown, enabled,
  1056.         NumberText {
  1057.             "",
  1058.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1059.                 stdInset, systemFont,
  1060.             justSystem, "", 255, arrowsAndBackspace, 9, 0, 255 };
  1061.  
  1062.         'DLOG', noID, { 28, 11 }, { 130, 159 }, sizeFixed, sizeFixed, shown, disabled,
  1063.         Control {
  1064.             "",
  1065.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss, noInset, systemFont };
  1066.  
  1067.         'DLOG', 'SCL1',    { 29, 12 }, { 128, 142 },
  1068.         sizeFixed, sizeFixed, shown, enabled,
  1069.         Scroller {
  1070.             "",
  1071.                 vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  1072.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  1073.  
  1074.         'SCL1', 'flst', { 0, 0 }, { 0, 142 },
  1075.         sizeVariable, sizeFixed, shown, enabled,
  1076.         TextListView {
  1077.             "TFontListView",
  1078.                 0, 1, 16, 142, 0, 6, dontAdornRows, dontAdornCols, singleSelection, systemFont };
  1079.  
  1080.         'DLOG', noID, { 60, 180 }, { 98, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1081.         Control {
  1082.             "",
  1083.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss, noInset, systemFont };
  1084.  
  1085.         'DLOG', 'SCL2',    { 61, 181 }, { 96, 23 },
  1086.         sizeFixed, sizeFixed, shown, enabled,
  1087.         Scroller {
  1088.             "",
  1089.                 vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  1090.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  1091.  
  1092.         'SCL2', 'slst', { 0, 0 }, { 0, 23 },
  1093.         sizeVariable, sizeFixed, shown, enabled,
  1094.         TextListView {
  1095.             "TSizeListView",
  1096.                 0, 1, 16, 23, 0, 6, dontAdornRows, dontAdornCols, singleSelection, systemFont };
  1097.  
  1098.         'DLOG', noID, { 28, 233 }, { 128, 1 }, sizeFixed, sizeFixed, shown, disabled,
  1099.         Control {
  1100.             "",
  1101.                 adnLineLeft, { 1, 1 }, sizeable, dimmed, notHilited, doesntDismiss, noInset, systemFont }
  1102.     }
  1103. };
  1104.  
  1105. /************************************************************************************/
  1106. /*    Homebrew Controls Dialog                                                        */
  1107. /************************************************************************************/
  1108. resource 'view' (cHomeBrewControls, purgeable) {
  1109.     {
  1110.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  1111.         Window {
  1112.             "",
  1113.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  1114.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1115.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, noID,
  1116.                 "Home Brew Controls" };
  1117.  
  1118.         'WIND', 'DLOG',    { 0, 0 }, { 240, 430 }, sizeSuperView, sizeSuperView, shown, enabled,
  1119.         DialogView {
  1120.             "THomeBrewDialog",
  1121.                 noID, noID };
  1122.  
  1123.         'DLOG', 'Conv', {100, 20}, { 90, 236 }, sizeFixed, sizeFixed, shown, disabled,
  1124.         Cluster {
  1125.             "TTemperatureConversionCluster",
  1126.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1127.                 noInset, systemFont,
  1128.             "Temperature Conversion" };
  1129.  
  1130.         'Conv', 'Cels', {20, 16}, { 60, 100 }, sizeFixed, sizeFixed, shown, disabled,
  1131.         Cluster {
  1132.             "TTemperatureCluster",
  1133.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1134.                 noInset, systemFont,
  1135.             "Celsius" };
  1136.  
  1137.  
  1138.         'Cels', 'arws', {30, 60}, {18, 11}, sizeFixed, sizeFixed, shown, enabled,
  1139.         Picture {
  1140.             "TArrowsControl",
  1141.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1142.                 noInset, systemFont,
  1143.             1001 };
  1144.  
  1145.         'Cels', 'Numb', { 30, 10 }, { 22, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1146.         NumberText {
  1147.             "",
  1148.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  1149.                 {2, 2, 2, 2}, applFont12,
  1150.             justRight, "",
  1151.             255, ArrowsAndBackspace,
  1152.             0, -40, 105 };
  1153.  
  1154.         'Conv', 'Fahr', {20, 120}, { 60, 100 }, sizeFixed, sizeFixed, shown, disabled,
  1155.         Cluster {
  1156.             "TTemperatureCluster",
  1157.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1158.                 noInset, systemFont,
  1159.             "Fahrenheit" };
  1160.  
  1161.         'Fahr', 'arws', {30, 60}, {18, 11}, sizeFixed, sizeFixed, shown, enabled,
  1162.         Picture {
  1163.             "TArrowsControl",
  1164.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1165.                 noInset, systemFont,
  1166.             1001 };
  1167.  
  1168.         'Fahr', 'Numb', { 30, 10 }, { 22, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1169.         NumberText {
  1170.             "",
  1171.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  1172.                 {2, 2, 2, 2}, applFont12,
  1173.             justRight, "",
  1174.             255, ArrowsAndBackspace,
  1175.             32, -40, 220 };
  1176.  
  1177.         'DLOG', 'sldr', {100, 300}, {106, 35}, sizeFixed, sizeFixed, shown, enabled,
  1178.         Picture {
  1179.             "TSlider",
  1180.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1181.                 noInset, systemFont,
  1182.             1003 };
  1183.  
  1184.         'DLOG', 'sbar', { 20, 50 }, { 16, 300 }, sizeVariable, sizeVariable, shown, enabled,
  1185.         ScrollBar {
  1186.             "TScrollBar",
  1187.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1188.                 noInset, systemFont, 0, -1000, 1000 };
  1189.     }
  1190. };
  1191.  
  1192.  
  1193. /************************************************************************************/
  1194. /*    Cluster Tabbing Test Dialog                                                        */
  1195. /************************************************************************************/
  1196. resource 'view' (cTabbingTest, purgeable) {
  1197.     {
  1198.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  1199.         Window {
  1200.             "",
  1201.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  1202.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1203.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'edt1',
  1204.                 "Tabbing Test" };
  1205.  
  1206.         'WIND', 'DLOG',    { 0, 0 }, { 240, 430 }, sizeSuperView, sizeSuperView, shown, enabled,
  1207.         DialogView {
  1208.             "",
  1209.                 noId, noID };
  1210.  
  1211.         'DLOG', noID, { 10, 0 }, { 16, 430 }, sizeFixed, sizeFixed, shown, disabled,
  1212.         StaticText {
  1213.             "",
  1214.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1215.                 noInset, applFont12,
  1216.             justCenter, "This dialog demonstrates tabbing" };
  1217.  
  1218.         'DLOG', 'edt1', { 40, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1219.         EditText {
  1220.             "",
  1221.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1222.                 stdInset, systemFont,
  1223.             justSystem, "one",
  1224.             255, arrowsAndBackspace };
  1225.  
  1226.         'DLOG', 'edt2', { 70, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1227.         EditText {
  1228.             "",
  1229.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1230.                 stdInset, systemFont,
  1231.             justSystem, "two",
  1232.             255, arrowsAndBackspace };
  1233.  
  1234.         'DLOG', 'cls1', { 100, 10 }, { 110, 190 }, sizeFixed, sizeFixed, shown, disabled,
  1235.         Cluster {
  1236.             "",
  1237.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1238.                 noInset, systemFont,
  1239.             "Cluster One" };
  1240.  
  1241.         'cls1', 'edt3', { 30, 10 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1242.         EditText {
  1243.             "",
  1244.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1245.                 stdInset, systemFont,
  1246.             justSystem, "three",
  1247.             255, arrowsAndBackspace };
  1248.  
  1249.         'cls1', 'edt4', { 70, 10 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1250.         EditText {
  1251.             "",
  1252.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1253.                 stdInset, systemFont,
  1254.             justRight, "four",
  1255.             255, arrowsAndBackspace };
  1256.  
  1257.         'DLOG', 'cls2', { 30, 210 }, { 200, 190 }, sizeFixed, sizeFixed, shown, disabled,
  1258.         Cluster {
  1259.             "",
  1260.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1261.                 noInset, systemFont,
  1262.             "Cluster Two" };
  1263.  
  1264.         'cls2', 'edt5', { 30, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1265.         EditText {
  1266.             "",
  1267.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1268.                 stdInset, systemFont,
  1269.             justCenter, "five",
  1270.             255, arrowsAndBackspace };
  1271.  
  1272.         'cls2', 'edt6', { 70, 20 }, { 100, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1273.         EditText {
  1274.             "",
  1275.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1276.                 stdInset, systemFont,
  1277.             justSystem, "six",
  1278.             255, arrowsAndBackspace | carriageReturn }
  1279.  
  1280.     }
  1281. };
  1282.  
  1283.  
  1284. /************************************************************************************/
  1285. /*    Calculator clone dialog                                                            */
  1286. /************************************************************************************/
  1287. #define monaco9        plain,  9, {0, 0, 0}, "monaco"
  1288.  
  1289. resource 'view' (cCalculator, purgeable) {
  1290.     {
  1291.         root, 'WIND', { 60, 60 }, { 154, 112 }, sizeVariable, sizeVariable, shown, enabled,
  1292.         Window {
  1293.             "",
  1294.                 rDocProc, goAwayBox, notResizable, modeless, ignoreFirstClick,
  1295.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1296.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'DLOG',
  1297.                 "Calculator" };
  1298.  
  1299.         'WIND', 'DLOG',    { 0, 0 }, { 154, 112 }, sizeSuperView, sizeSuperView, shown, disabled,
  1300.         Picture {
  1301.             "TCalcDialog",
  1302.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1303.                 noInset, systemFont,
  1304.             kCalcPicture };
  1305.  
  1306.         'DLOG', noID, { 6, 12 }, { 14, 88 }, sizeFixed, sizeFixed, shown, disabled,
  1307.         StaticText {
  1308.             "",
  1309.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1310.                 noInset, bold+italic+condense, 9, { 0xFFFF, 0, 0 }, "monaco",
  1311.             justSystem, "MacApp®-ulator" };
  1312.  
  1313.         'DLOG', 'SUMM', { 26, 12 }, { 18, 88 }, sizeFixed, sizeFixed, shown, disabled,
  1314.         StaticText {
  1315.             "TSumStaticText",
  1316.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1317.                 { 2, 2, 2, 2 }, monaco9,
  1318.             justRight, "0" };
  1319.  
  1320.         'DLOG', 'keyC', { 50, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1321.         Control {
  1322.             "",
  1323.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1324.  
  1325.         'DLOG', 'key=', { 50, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1326.         Control {
  1327.             "",
  1328.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1329.  
  1330.         'DLOG', 'key/', { 50, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1331.         Control {
  1332.             "",
  1333.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1334.  
  1335.         'DLOG', 'key*', { 50, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1336.         Control {
  1337.             "",
  1338.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1339.  
  1340.         'DLOG', 'key7', { 70, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1341.         Control {
  1342.             "",
  1343.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1344.  
  1345.         'DLOG', 'key8', { 70, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1346.         Control {
  1347.             "",
  1348.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1349.  
  1350.         'DLOG', 'key9', { 70, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1351.         Control {
  1352.             "",
  1353.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1354.  
  1355.         'DLOG', 'key-', { 70, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1356.         Control {
  1357.             "",
  1358.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1359.  
  1360.         'DLOG', 'key4', { 90, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1361.         Control {
  1362.             "",
  1363.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1364.  
  1365.         'DLOG', 'key5', { 90, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1366.         Control {
  1367.             "",
  1368.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1369.  
  1370.         'DLOG', 'key6', { 90, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1371.         Control {
  1372.             "",
  1373.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1374.  
  1375.         'DLOG', 'key+', { 90, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1376.         Control {
  1377.             "",
  1378.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1379.  
  1380.         'DLOG', 'key1', { 110, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1381.         Control {
  1382.             "",
  1383.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1384.  
  1385.         'DLOG', 'key2', { 110, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1386.         Control {
  1387.             "",
  1388.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1389.  
  1390.         'DLOG', 'key3', { 110, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1391.         Control {
  1392.             "",
  1393.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1394.  
  1395.         'DLOG', 'keyE', { 110, 80 }, { 36, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1396.         Control {
  1397.             "",
  1398.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1399.  
  1400.         'DLOG', 'key0', { 130, 14 }, { 16, 41 }, sizeFixed, sizeFixed, shown, enabled,
  1401.         Control {
  1402.             "",
  1403.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1404.  
  1405.         'DLOG', 'key.', { 130, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1406.         Control {
  1407.             "",
  1408.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 }
  1409.     }
  1410. };
  1411.  
  1412. type 'SS11' as 'STR ';
  1413. resource 'SS11' (0,
  1414. #if qNames
  1415. "Signature",
  1416. #endif
  1417.     purgeable) {
  1418.     "Application created by MacApp®"
  1419. };
  1420.  
  1421. resource 'BNDL' (128,
  1422. #if qNames
  1423. "Bundle",
  1424. #endif
  1425.     purgeable) {
  1426.     'SS11',
  1427.     0,
  1428.         {
  1429.         'ICN#',
  1430.             {
  1431.             0, 128,
  1432.             },
  1433.         'FREF',
  1434.             {
  1435.             0, 128,
  1436.             }
  1437.         }
  1438. };
  1439.  
  1440. include "Defaults.rsrc"  'STR#' (kDefaultCredits);        // Grab the default credits
  1441.  
  1442. // Get the default MacApp® application icon and necessary bundling rsrcs
  1443. include "Defaults.rsrc"  'FREF' (128);
  1444. include "Defaults.rsrc"  'ICN#' (128);
  1445.  
  1446. // Get the default Version resources
  1447. include "Defaults.rsrc"  'vers' (1);        // Application or file specific
  1448. include "Defaults.rsrc"  'vers' (2);        // Overall package
  1449.