Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
HLE.r
#include "types.r" |
resource 'MENU' (128, preload) { |
128, |
textMenuProc, |
0x7FFFFFFD, |
enabled, |
apple, |
{ /* array: 2 elements */ |
/* [1] */ |
"About", noIcon, noKey, noMark, plain, |
/* [2] */ |
"-", noIcon, noKey, noMark, plain |
} |
}; |
resource 'MENU' (129, preload) { |
129, |
textMenuProc, |
0xFFF, |
enabled, |
"File", |
{ /* array: 1 elements */ |
/* [1] */ |
"Quit", noIcon, "Q", noMark, plain |
} |
}; |
resource 'MENU' (130, preload) { |
130, |
textMenuProc, |
0x3400, |
enabled, |
"Edit", |
{ /* array: 6 elements */ |
/* [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, |
0x7FFFFFDD, |
enabled, |
"Test Stuff", |
{ /* array: 1 elements */ |
/* [1] */ |
"SendHLE", noIcon, noKey, noMark, plain |
} |
}; |
resource 'ALRT' (128) { |
{40, 40, 229, 363}, |
128, |
{ /* array: 4 elements */ |
/* [1] */ |
OK, visible, sound1, |
/* [2] */ |
OK, visible, sound1, |
/* [3] */ |
OK, visible, sound1, |
/* [4] */ |
OK, visible, sound1 |
} |
}; |
resource 'DITL' (128) { |
{ /* array DITLarray: 4 elements */ |
/* [1] */ |
{164, 115, 184, 185}, |
Button { |
enabled, |
"OK" |
}, |
/* [2] */ |
{5, 10, 43, 290}, |
StaticText { |
disabled, |
"The Simplest Shell" |
}, |
/* [3] */ |
{76, 3, 154, 301}, |
StaticText { |
disabled, |
"FredWare from Apple Developer Technical " |
"Support, ADS group.\nCopyright © 1991 Ap" |
"ple Computer Inc.\nWritten by C.K. Haun (" |
"<TR>)." |
}, |
/* [4] */ |
{53, 82, 71, 227}, |
StaticText { |
disabled, |
"version 1.0d1" |
} |
} |
}; |
resource 'MBAR' (128) { |
{ /* array MenuArray: 4 elements */ |
/* [1] */ |
128, |
/* [2] */ |
129, |
/* [3] */ |
130, |
/* [4] */ |
131 |
} |
}; |
resource 'WIND' (128) { |
{40, 40, 310, 572}, |
documentProc, |
visible, |
noGoAway, |
0x0, |
"simple HLE " |
}; |
resource 'SIZE' (-1) { |
reserved, |
acceptSuspendResumeEvents, |
reserved, |
canBackground, |
multiFinderAware, |
backgroundAndForeground, |
dontGetFrontClicks, |
ignoreChildDiedEvents, |
not32BitCompatible, |
isHighLevelEventAware, |
localAndRemoteHLEvents, |
notStationeryAware, |
dontUseTextEditServices, |
reserved, |
reserved, |
reserved, |
50000, |
50000 |
}; |
resource 'CNTL' (128) { |
{10, 60, 30, 260}, |
0, |
visible, |
0, |
0, |
pushButProc, |
0, |
"Send Event" |
}; |
resource 'DLOG' (128) { |
{40, 40, 240, 280}, |
documentProc, |
visible, |
goAway, |
0x0, |
128, |
"" |
}; |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14