/*** *dspcalc2.r * * Copyright (C) 1992-1994, Microsoft Corporation. All Rights Reserved. * *Purpose: * Resource script for dspcalc2. * * *Implementation Notes: * *****************************************************************************/ #include "types.r" #include "resource.h" #if defined (_PPCMAC) include "cfrg.rsc"; #endif /* we use an MBAR resource to conveniently load all the menus */ resource 'MBAR' (rMenuBar, preload) { { mApple, mFile, mEdit } }; resource 'MENU' (mApple, preload) { mApple, textMenuProc, 0b11111111111111111111111111111101, enabled, apple, { "About DspCalc2\311", noicon, nokey, nomark, plain; "-", noicon, nokey, nomark, plain } }; resource 'MENU' (mFile, preload) { mFile, textMenuProc, 0b00000000000000000000100000000000, enabled, "File", { "New", noicon, "N", nomark, plain; "Open", noicon, "O", nomark, plain; "-", noicon, nokey, nomark, plain; "Close", noicon, "W", nomark, plain; "Save", noicon, "S", nomark, plain; "Save As\311", noicon, nokey, nomark, plain; "Revert", noicon, nokey, nomark, plain; "-", noicon, nokey, nomark, plain; "Page Setup\311", noicon, nokey, nomark, plain; "Print\311", noicon, nokey, nomark, plain; "-", noicon, nokey, nomark, plain; "Quit", noicon, "Q", nomark, plain } }; resource 'MENU' (mEdit, preload) { mEdit, textMenuProc, 0b00000000000000000000000000000000, enabled, "Edit", { "Undo", noicon, "Z", nomark, plain; "-", noicon, nokey, nomark, plain; "Cut", noicon, "X", nomark, plain; "Copy", noicon, "C", nomark, plain; "Paste", noicon, "V", nomark, plain; "Clear", noicon, nokey, nomark, plain } }; resource 'DLOG' (rCalc) { {100, 100, 240, 220}, rDocProc, visible, noGoAway, 0x0, rCalc, "DspCalc2" }; resource 'DITL' (rCalc) { { {110,10,130,30}, Button { enabled, "0" } /* 1 */ , {85,10,105,30}, Button { enabled, "1" } /* 2 */ , {85,35,105,55}, Button { enabled, "2" } /* 3 */ , {85,60,105,80}, Button { enabled, "3" } /* 4 */ , {60,10,80,30}, Button { enabled, "4" } /* 5 */ , {60,35,80,55}, Button { enabled, "5" } /* 6 */ , {60,60,80,80}, Button { enabled, "6" } /* 7 */ , {35,10,55,30}, Button { enabled, "7" } /* 8 */ , {35,35,55,55}, Button { enabled, "8" } /* 9 */ , {35,60,55,80}, Button { enabled, "9" } /* 10 */ , {35,85,55,105}, Button { enabled, "+" } /* 11 */ , {60,85,80,105}, Button { enabled, "-" } /* 12 */ , {85,85,105,105}, Button { enabled, "*" } /* 13 */ , {110,85,130,105}, Button { enabled, "/" } /* 14 */ , {110,35,130,55}, Button { enabled, "C" } /* 15 */ , {110,60,130,80}, Button { enabled, "=" } /* 16 */ , {10,10,25,105}, EditText { disabled, "" } /* 17 */ } }; /* this ALRT and DITL are used as an About screen */ resource 'ALRT' (rAboutAlert, purgeable) { {40, 20, 160, 290}, rAboutAlert, { /* [1] */ OK, visible, silent, /* [2] */ OK, visible, silent, /* [3] */ OK, visible, silent, /* [4] */ OK, visible, silent } }; resource 'DITL' (rAboutAlert, purgeable) { { /* array DITLarray: 5 elements */ /* [1] */ {88, 180, 108, 260}, Button { enabled, "OK" }, /* [2] */ {8, 8, 24, 214}, StaticText { disabled, "The IDispatch Calculator" } } }; /* this ALRT and DITL are used as an error screen */ resource 'ALRT' (rUserAlert, purgeable) { {40, 20, 120, 260}, rUserAlert, { /* array: 4 elements */ /* [1] */ OK, visible, silent, /* [2] */ OK, visible, silent, /* [3] */ OK, visible, silent, /* [4] */ OK, visible, silent } }; resource 'DITL' (rUserAlert, purgeable) { { /* [1] */ {50, 150, 70, 230}, Button { enabled, "OK" }, /* [2] */ {10, 60, 30, 230}, StaticText { disabled, "Error. ^0" }, /* [3] */ {8, 8, 40, 40}, Icon { disabled, 2 } } }; resource 'SIZE' (-1) { dontSaveScreen, acceptSuspendResumeEvents, enableOptionSwitch, canBackground, multiFinderAware, backgroundAndForeground, dontGetFrontClicks, ignoreChildDiedEvents, is32BitCompatible, isHighLevelEventAware, localAndRemoteHLEvents, reserved, reserved, reserved, reserved, reserved, kPrefSize * 1024, kMinSize * 1024 }; resource 'BNDL' (130) { 'DCL2', 0, { /* array TypeArray: 2 elements */ /* [1] */ 'FREF', { /* array IDArray: 1 elements */ /* [1] */ 0, 130 }, /* [2] */ 'ICN#', { /* array IDArray: 1 elements */ /* [1] */ 0, 130 } } }; resource 'FREF' (130) { 'APPL', 0, "" }; data 'ICN#' (130) { $"1E3F FFFF 3340 0001 63C0 0001 03CF FFF9" /* .?ÿÿ3@..cÀ...Ïÿù */ $"0748 0009 0E48 0009 3C48 0009 704F FFF9" /* .H.Æ.H.Æ