home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel
/
CAROUSEL.cdr
/
mactosh
/
fonts
/
fontshow.sit
/
FontShow.r
< prev
next >
Wrap
Text File
|
1988-09-13
|
6KB
|
242 lines
/***************************************************************************\
* *
* Resources for the FontShow program. *
* *
* This file requires ResTools 3.0 (or later) by Alan Dahlbom, although it *
* could be modified to work with Apple's Rez program. *
* *
* FontShow is in the public domain. You may use any or all of it as part *
* of your own projects without payment or credit (though either would be *
* appreciated <grin>. *
* *
* Version History: *
* Version 1.0 September 9, 1988 *
* *
\***************************************************************************/
CREATOR 'RSED'; /* Imitate a ResEdit file */
FILETYPE 'rsrc';
resource 'BNDL' (128)
{
'FSho', 0,
{
'ICN#', {0, 128};
'FREF', {0, 128}
}
};
resource 'FREF' (128)
{
'APPL',
0,
""
};
userdefined resource 'FSho' (0) {
pstring: "FontShow 1.0 by Richard Clark"
};
resource 'STR ' (128) {
"Free Memory: " /* This is the prompt string in our "About" window */
};
resource 'DITL' (128 , "Low Memory")
{
{
{66, 209, 86, 269},
Button {enabled, "OK"};
{5, 72, 57, 280},
StaticText {disabled, "We╒re running out of memory. Please close some windows."}
}
};
resource 'MENU' (128 , "Apple")
{
128,
0,
0xfffffffb,
enabled,
"\024",
{
"About FontShow╔", noIcon, noKey, noMark, plain;
"-", noIcon, noKey, noMark, plain
}
};
resource 'MENU' (129 , "File")
{
129,
0,
0xfffffff7,
enabled,
"File",
{
"New", noIcon, 'N', noMark, plain;
"Close", noIcon, 'W', noMark, plain;
"-", noIcon, noKey, noMark, plain;
"Quit", noIcon, 'Q', noMark, plain
}
};
resource 'MENU' (130 , "Edit")
{
130,
0,
0xfffffff8,
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 'MENU' (131 , "Font")
{
131,
0,
0xffffffff,
enabled,
"Font",
{ /* To be filled in at run-time */
}
};
resource 'MENU' (132 , "Size")
{
132,
0,
0xffffffff,
enabled,
"Size",
{
"9 points", noIcon, noKey, noMark, plain;
"10 points", noIcon, noKey, noMark, plain;
"12 points", noIcon, noKey, noMark, plain;
"14 points", noIcon, noKey, noMark, plain;
"18 points", noIcon, noKey, noMark, plain;
"20 points", noIcon, noKey, noMark, plain;
"24 points", noIcon, noKey, noMark, plain;
"28 points", noIcon, noKey, noMark, plain;
"36 points", noIcon, noKey, noMark, plain;
"48 points", noIcon, noKey, noMark, plain;
"72 points", noIcon, noKey, noMark, plain
/* You can add your own entries, or modify these, as long as the number */
/* is the first thing on the line. */
}
};
resource 'WIND' (128 , "Font Display")
{
{40, 60, 338, 340},
documentProc, /* resizable window */
invisible,
goAway,
0x0,
"╟Font Display╚"
};
resource 'WIND' (129 , "About")
{
{56, 14, 266, 418},
17,
visible,
goAway,
0x81,
"About FontShow"
};
resource 'ALRT' (128 , "Low memory")
{
{40, 44, 134, 332},
128,
OK,visible,1,
OK,visible,1,
OK,visible,1,
OK,visible,1
};
userdefined resource 'vers' (1) { /* New version resource format beginning with system 6.0 */
byte: 0x01; /* First (integer) part of version number, in BCD */
byte: 0x01; /* Second and third (decimal) parts of version number, in BCD */
byte: 0x80; /* development = 0x20, alpha = 0x40, beta = 0x60, release = 0x80 */
byte: 0x00; /* Stage (if any) of non-release version */
integer: 0; /* Country code (0 = US; see IM I-508 for other countries) */
pstring: "1.1"; /* Short textual form of version number */
pstring: "1.1 by Richard Clark (GEnie/MCI/DELPHI: RDCLARK)"
};
userdefined resource 'vers' (2) { /* Version resource describing this **group** */
byte: 0x01; /* First (integer) part of version number, in BCD */
byte: 0x01; /* Second and third (decimal) parts of version number, in BCD */
byte: 0x80; /* development = 0x20, alpha = 0x40, beta = 0x60, release = 0x80 */
byte: 0x00; /* Stage (if any) of non-release version */
integer: 0; /* Country code (0 = US; see IM I-508 for other countries) */
pstring: "1.1"; /* Short textual form of version number */
pstring: "FontShow 1.1"
};
resource 'SIZE' (-1)
{
dontSaveScreen,
ignoreSuspendResumeEvents,
DisableOptionOff,
CantBackground,
notMultiFinderAware,
notOnlyBackGround,
0x10000, /* 64KB Suggested Size */
0xD000 /* 48KB Minimum size */
};
resource 'ICN#' (128)
{
0x0000 0x0000 0xffff 0xfffe
0x8081 0x0202 0xb8bd 0x7a72
0xa4a1 0x428a 0xa2a1 0x4282
0xa2b9 0x72ba 0xa2a1 0x428a
0xa4a1 0x428a 0xb8bd 0x4272
0x8081 0x0202 0xffff 0xfffe
0x8081 0x0202 0xa2b9 0x0a8a
0xa291 0x0a92 0xa291 0x0aa2
0xbe91 0x0ac2 0xa291 0x0aa2
0xa291 0x4a92 0xa2b9 0x328a
0x8081 0x0202 0xffff 0xfffe
0x8081 0x0202 0xa0a5 0x4a72
0xa0bd 0x6a8a 0xa0bd 0x6a8a
0xa0a5 0x5a8a 0xa0a5 0x5a8a
0xa0a5 0x4a8a 0xbea5 0x4a72
0x8081 0x0202 0xffff 0xfffe ;
0x0000 0x0000 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
0xffff 0xfffe 0xffff 0xfffe
};
INCLUDE "FontShow.pict"; /* Get the picture for the About window */