userItem
Type Definitions
DialogRecord central structure for Dialog Manager calls
DialogPeek address of a DialogRecord
DialogPtr address of a GrafPort
DialogTemplate format of DLOG resource read into memory
AlertTemplate format of ALRT resource read into memory
ControlRecord Dialogs process controls ...
TERec ... and TextEdit records
typedef short StageList;
typedef pascal void (*ResumeProcPtr)(void);
typedef pascal void (*SoundProcPtr)(void);
typedef pascal Boolean (*ModalFilterProcPtr)(DialogPtr theDialog,
EventRecord *theEvent, short *itemHit);
userItem 0 item types, as in GetDItem
ctrlItem 4
statText 8
editText 16
iconItem 32
picItem 64
itemDisable 128 add to others to disable (dim the text)
btnCtrl 0 added to ctrlItem for specific types of controls
chkCtrl 1
radCtrl 2
resCtrl 3
ok 1 item number for standard buttons (by
convention)
cancel 2
stopIcon 0 Alert icon IDs
noteIcon 1
cautionIcon 2
ctnIcon 2
Constants for TextEdit and dialog boxes
TEdoFont 1 set font (family) number
TEdoFace 2 set character style
TEdoSize 4 set type size
TEdoColor 8 set foreground color
TEdoAll 15 set all attributes
TEaddSize 16 adjust type size
Constants for dialog boxes only
doBColor 8192 set the background color
doMode 16384 set txMode
doFontName 32768 set txFont from font name
DITLMethod constants
overlayDITL 0 overlay existing items
appendDITLRight 1 append at right
appendDITLBottom 2 append at bottom
Do not use low memory global variables that are not documented.
No undocumented location below the system heap is guaranteed to be available
for use in future systems.
Variables
Name Address Size Description
ACount 0x0A9A 2 stage number of last alert (GetAlrtStage)
ANumber 0x0A98 2 resource ID of last alert
DABeeper 0x0A9C 4 address of current sound procedure
DAStrings 0x0AA0 16 StringHandles to ParamText strings
DlgFont 0x0AFA 2 font number for alerts and dialogs
DSAlertRect 0x03F8 8 SysError alert drawn at this Rect
DSAlertTab 0x02BA 4 SysError alert information table pointer
DSErrCode 0x0AF0 4 ID of last System Error
ResumeProc 0x0A8C 4 addr of resume/restart procedure (InitDialogs)