home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-05 | 5.5 KB | 226 lines | [TEXT/KAHL] |
- // -----------------------------------------------------------------------------
- // File : demoShell.r
- // Date : August 24, 1994
- // Author : Jim Stout
- // Purpose : resource descriptions for demoShell.c
- //
- // -----------------------------------------------------------------------------
- #define SystemSevenOrLater 1
-
- #include <Types.r>
-
- resource 'MBAR' (128) {
- {
- /* [1] */ 128,
- /* [2] */ 129,
- /* [3] */ 130,
- /* [3] */ 131
- }
- };
-
- resource 'MENU' (128) {
- 128, textMenuProc, 0x7FFFFFFD, enabled, apple,
- {
- /* [1] */ "About Jim's CDEFs…", noIcon, noKey, noMark, plain,
- /* [2] */ "-", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'MENU' (129) {
- 129, textMenuProc, allEnabled, enabled, "File",
- {
- /* [1] */ "Close", noIcon, "W", noMark, plain
- /* [2] */ "Quit", noIcon, "Q", noMark, plain
- }
- };
-
- resource 'MENU' (130) {
- 130, textMenuProc, 0x7FFFFFFD, enabled, "Edit",
- {
- /* [1] */ "Undo", noIcon, "Z", noMark, plain,
- /* [2] */ "-", noIcon, noKey, noMark, plain,
- /* [3] */ "Cut", noIcon, "X", noMark, plain,
- /* [4] */ "Copy", noIcon, "C", noMark, plain,
- /* [5] */ "Paste", noIcon, "V", noMark, plain,
- /* [6] */ "Clear", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'MENU' (131) {
- 131, textMenuProc, allEnabled, enabled, "Demos",
- {
- /* [1] */ "Window Demo", noIcon, "1", noMark, plain,
- /* [2] */ "Dialog Demo", noIcon, "2", noMark, plain,
- /* [3] */ "Compare Popups", noIcon, "3", noMark, plain,
- /* [4] */ "Demo Tab 1", noIcon, "4", noMark, plain,
- /* [5] */ "Demo Tab 2", noIcon, "5", noMark, plain,
- /* [6] */ "Demo Tab 3", noIcon, "6", noMark, plain,
- /* [7] */ "Demo Tab 4", noIcon, "7", noMark, plain
- }
- };
-
- resource 'MENU' (132) {
- 132, textMenuProc, allEnabled, enabled, "Show",
- {
- /* [1] */ "3D controls", noIcon, noKey, noMark, plain,
- /* [2] */ "Popup menus", noIcon, noKey, noMark, plain,
- /* [3] */ "Arrows", noIcon, noKey, noMark, plain,
- /* [4] */ "Date & Time", noIcon, noKey, noMark, plain,
- /* [5] */ "Sliders", noIcon, noKey, noMark, plain,
- /* [6] */ "Progress Bars",noIcon, noKey, noMark, plain
- }
- };
-
- resource 'mctb' (132) {
- {
- /* [1] */ 132, 0,
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 0, 0, 0,
- /* [3] */ 0, 0, 0,
- /* [4] */ 61166, 61166, 61166
- }
- }
- };
-
- resource 'MENU' (133) {
- 133, textMenuProc, allEnabled, enabled, "Icon menu",
- {
- /* [1] */ "Small cicn", 44, noKey, noMark, plain,
- /* [2] */ "Large cicn", 45, noKey, noMark, plain,
- /* [3] */ "Very Large cicn", 46, noKey, noMark, plain,
- /* [4] */ "B&W Icon", 5, noKey, noMark, plain,
- /* [5] */ "B&W Icon (reduced)", 5, "\0x1D", noMark, plain,
- /* [6] */ "Small Icon (SICN)", 6, "\0x1E", noMark, plain,
- /* [7] */ "cicn (reduced)", 47, "\0x1D", noMark, plain,
- }
- };
- resource 'MENU' (134) {
- 134, textMenuProc, allEnabled, enabled, "colored menu",
- {
- /* [1] */ "Menu items,", noIcon, noKey, noMark, plain,
- /* [2] */ "with colored", noIcon, noKey, noMark, italic,
- /* [2] */ "and styled", noIcon, noKey, noMark, bold,
- /* [2] */ "item text.", noIcon, noKey, noMark, outline
- }
- };
- resource 'mctb' (134) {
- {
- /* [1] */ 134, 0, // menu colors
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 0, 0, 0,
- /* [3] */ 0, 0, 0,
- /* [4] */ 61166, 61166, 61166 // bg is gray
- },
- /* [2] */ 134, 1, // item 1 colors
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 13107, 0, 39321,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- }
- /* [3] */ 134, 2, // item 2 colors
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 65535,0, 0,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- },
- /* [4] */ 134, 3,
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 0, 0, 65535,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- },
- /* [5] */ 134, 4,
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 65535, 0, 65535,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- }
- }
- };
- resource 'ALRT' (257, "About…", purgeable) {
- {40, 40, 144, 363},
- 257,
- { /* array: 4 elements */
- /* [1] */ OK, visible, silent,
- /* [2] */ OK, visible, silent,
- /* [3] */ OK, visible, silent,
- /* [4] */ OK, visible, silent
- },
- #if SystemSevenOrLater
- alertPositionParentWindowScreen
- #endif
- };
-
- resource 'DITL' (257, "About…", purgeable) {
- {
- /* [1] */ {72, 253, 92, 311}, Button { enabled, "OK" },
- /* [2] */ {11, 9, 59, 312}, StaticText { disabled,
- "Demonstration program for Jim’s CDEFs." }
- }
- };
-
- resource 'ALRT' (258, "Error", purgeable) {
- {40, 40, 180, 440},
- 258,
- {
- /* [1] */ OK, visible, sound1,
- /* [2] */ OK, visible, sound1,
- /* [3] */ OK, visible, sound1,
- /* [4] */ OK, visible, sound1
- },
- #if SystemSevenOrLater
- alertPositionParentWindowScreen
- #endif
- };
-
- resource 'DITL' (258, "Error", purgeable) {
- {
- /* [1] */ {100, 322, 120, 380}, Button { enabled, "Quit" },
- /* [2] */ {10, 90, 80, 380}, StaticText { disabled, "^0" }
- }
- };
-
- resource 'STR#' (128, purgeable) {
- {
- /* [1] */ "Sorry, but a Mac Plus or better is needed "
- "to run this program.",
- /* [2] */ "At least System 6 is required to run this "
- "program.",
- /* [3] */ "Whoops! Couldn’t create the menus, gotta"
- " go…"
- }
- };
-
- resource 'STR#' (129, purgeable) {
- {
- /* [1] */ "Untitled ",
- /* [2] */ "Radio ",
- /* [3] */ "Check ",
- /* [4] */ "Tog ",
- /* [5] */ "Push "
- }
- };
-
- resource 'wctb' (128) {
- {
- /* [1] */ wContentColor, 52428, 52428, 52428,
- /* [2] */ wFrameColor, 0, 0, 0,
- /* [3] */ wTextColor, 0, 0, 0,
- /* [4] */ wHiliteColor, 0, 0, 0,
- /* [5] */ wTitleBarColor, 65535, 65535, 65535
- }
- };
-
- resource 'WIND' (128) {
- {44, 4, 215, 379}, noGrowDocProc, invisible, goAway, 0x0,
- "demoCDEF Window",
- #if SystemSevenOrLater
- centerMainScreen
- #endif
- };