home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Otherware
/
Otherware_1_SB_Development.iso
/
mac
/
developm
/
scnote
/
tesample.002
/
TESampleAUX.r
< prev
next >
Wrap
Text File
|
1989-06-01
|
5KB
|
122 lines
/*------------------------------------------------------------------------------
#
# Apple Macintosh Developer Technical Support
#
# MultiFinder-Aware Simple TextEdit Sample Application
#
# TESample
#
# This file: TESampleAUX.r - Rez Source
#
# Copyright ⌐ 1989 Apple Computer, Inc.
# All rights reserved.
#
# Versions:
# 1.00 08/88
# 1.01 11/88
# 1.02 04/89
# 1.03 06/89
#
# Components:
# TESample.p June 1, 1989
# TESample.c June 1, 1989
# TESampleGlue.a June 1, 1989 -MPW only-
# TESample.r June 1, 1989
# TESample.h June 1, 1989
# PTESample.make June 1, 1989 -MPW only-
# CTESample.make June 1, 1989 -MPW only-
# TESampleGlue.s June 1, 1989 -A/UX only-
# TESampleAUX.r June 1, 1989 -A/UX only-
# Makefile June 1, 1989 -A/UX only-
#
# TESample is an example application that demonstrates how
# to initialize the commonly used toolbox managers, operate
# successfully under MultiFinder, handle desk accessories and
# create, grow, and zoom windows. The fundamental TextEdit
# toolbox calls and TextEdit autoscroll are demonstrated. It
# also shows how to create and maintain scrollbar controls.
#
# It does not by any means demonstrate all the techniques you
# need for a large application. In particular, Sample does not
# cover exception handling, multiple windows/documents,
# sophisticated memory management, printing, or undo. All of
# these are vital parts of a normal full-sized application.
#
# This application is an example of the form of a Macintosh
# application; it is NOT a template. It is NOT intended to be
# used as a foundation for the next world-class, best-selling,
# 600K application. A stick figure drawing of the human body may
# be a good example of the form for a painting, but that does not
# mean it should be used as the basis for the next Mona Lisa.
#
# We recommend that you review this program or Sample before
# beginning a new application. Sample is a simple app. which doesn╒t
# use TextEdit or the Control Manager.
#
#
# TESampleAUX exists because the Rez include files for A/UX 1.1
# are out of date.
#
------------------------------------------------------------------------------*/
#define verUS 0
type 'vers' {
hex byte; /* Major revision in BCD*/
hex byte; /* Minor vevision in BCD*/
hex byte development = 0x20, /* Release stage */
alpha = 0x40,
beta = 0x60,
final = 0x80, /* or */ release = 0x80;
hex byte; /* Non-final release # */
integer Country; /* Country code */
pstring; /* Short version number */
pstring; /* Long version number */
};
/*----------------------------SIZE MultiFinder Size Information-----------------------*/
type 'SIZE' {
boolean dontSaveScreen, /* for SWITCHER */
saveScreen; /* compatibility */
boolean ignoreSuspendResumeEvents, /* suspend-resume */
acceptSuspendResumeEvents;
boolean enableOptionSwitch, /* for SWITCHER */
disableOptionSwitch; /* compatibility */
boolean cannotBackground,
canBackground; /* Can properly use back-
ground null events */
boolean notMultiFinderAware, /* activate/deactivate */
multiFinderAware; /* on resume/suspend */
boolean backgroundAndForeground, /* Application does not */
onlyBackground; /* have a user interface*/
boolean dontGetFrontClicks, /* Get mouse down/up */
getFrontClicks; /* when suspended */
boolean ignoreChildDiedEvents, /* Apps use this. */
acceptChildDiedEvents; /* Debuggers use this. */
boolean not32BitCompatible, /* Works with 24bit addr*/
is32BitCompatible; /* Works with 24 or 32 */
/* bit addresses */
#undef reserved
boolean reserved; /* These seven bits are */
boolean reserved; /* reserved. Set them */
boolean reserved; /* to "reserved". When */
boolean reserved; /* we decide to define */
boolean reserved; /* a new flag, your */
boolean reserved; /* old resource will */
boolean reserved; /* still compile. */
/* Memory sizes are in bytes */
unsigned longint; /* preferred mem size */
unsigned longint; /* minimum mem size */
/* If we ever define one of the seven reserved bits above, the "reserved"
enumeration wouldn't appear on the newly defined bit. By defining "reserved"
below, old resource SIZE declarations will still compile. */
#define reserved false
};
/* ignore the warning caused by re-defining SIZE */