MacApp 2.0b5 UDialog Release Notes
MacApp 2.0b5 UDialog Release Notes
Macintosh · 1988 · PDF
| Filename | MacApp_2.0b5_UDialog_Release_Notes.pdf |
|---|---|
| Size | 2.01 MB |
| Year | 1988 |
| Subsection | developer / MacApp_2.0 |
| Downloads | 1 |
Enjoying MacTrove?
Anonymous downloads are free and unlimited.
Create a free account to track favorites,
contribute metadata corrections, and join the
community chat.
Reader
Loading…
OCR / Text contents
(
MacApp 2.0b5 UDialog
Release Notes
Russ Wetmore
Overview
This document describes the classes that make up MacApp's "dialog" implementation. These classes primarily consist
of a set of view classes that implement the kinds of views one often sees in Macintosh dialogs. (These views can be
used in any MacApp window, regardless of whether you consider it a dialog.) The new classes can be created from resource templates.
This is the hierarchy of the classes involved. (Classes not described in this document are shown in gray.)
.·:·.·~;-;f:ci······;;.~~-:·
TEntry
.;::::::r.~lf·ITTan1;1,.~::::
.....................
TAssociation
. ,.. ·.·.··:·:·:·
:-:·:·:·;;...r.~1·.:iv.·
:
TDialogView
:::::::::~:~:-~: .. ~~::::::
TDialogTEView
TStaticText
TCluster
Tlcon
TPopup
TButton
TCheckBox
TRadio
TEditText
TNumberText
:::::::r:ssc:r-Oitsar::::
.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·
TPicture
Global Constants
Choices
mOKHit
mCancelHit
mButtonHit
mCheckBoxHit
mClusterHit
mEdi t.TextHi t
miconHit
mListitemHit
mListScrollBarHit
mPictureHit
mPopupHit
mRadioHit
mStaticTextHit
mHScrollBarHit
mVScrollBarHit
mEditTabKey
mEditReturnKey
mEditEnterKey
m.PatternHit
mControlHit
1;
2;
3;
4;
5;
6;
7;
8;
9;
10;
11;
12;
13;
14;
15;
16;
17;
18;
19;
20;
View Template Identifiers
kNoidentifier
kNoTemplate
kNoResource
'.,
-1;
-1;
Miscellaneous
kYesButton
kNoButton
kPreferColor
kControlOn
kRedraw
kDontRedraw
kFrame
ChrOO
ChrlF
kMaxTEWidth
Wed, Aug 3, 1988
1;
3;
TRUE;
TRUE;
TRUE;
FALSE;
[adnLineTop, adnLineLeft,
adnLineBottom, adnLineRight];
CHR (0);
CHR($1F);
$2BO;
©1988 ti Apple Computer
2
Global Types
ID Type
= ResType;
adornPieces
adnLineTop,
adnLineLeft,
adnLineBottom,
adnLineRight,
adnDummy,
adnOval,
adnRRect,
adnShadow ) ;
Draw a line at the top of the extent.
Draw a line on the left side of the extent.
Draw a line at the bottom of the extent.
Draw a line on the right side of the extent.
Placeholder (replaces adnPatFill).
Do a FrameOval using the extent
Do a FrameRound.Rect using the extent.
Draw drop-shadows against framed selections.
CntlAdornment
SET OF adornPieces;
ControlCharSet
SET OF ChrOO .. ChrlF;
Used by TEdi t Text for allowable control chars.
Global Routines
PROCEDURE InitUDialog;
This routine initializes the UDialog unit. It must be called before any of the view classes in this unit can be
created from 'view' resources.
FUNCTION NewTemplateWindow (viewRsrcID: INTEGER;
itsDocument: TDocument): TWindow;
This routine creates a new TWindow (or descendant) from the 'view' template with the given resource ID.
PROCEDURE RegisterType (typeName: Str255; protoObj: TObject);
This routine registers the given object (which can be an instance of any descendant of TObject) for use by
TEvtHandler and its descendants when creating views from a template.
The TEntry Class
This class is used by TAssociation to form a very basic and cheap text item dictionary mechanism whose main use will
be substitution of text in dialog-type window items. T…
Showing first 3,000 characters of 51,345 total. Open the full document →