; File:  E16.Control
;
;
; Copyright Apple Computer, Inc. 1986-90
; All Rights Reserved
;
;
noConstraint EQU $0000  ; No constraint on movement.
hAxisOnly EQU $0001  ; Horizontal axis only.
vAxisOnly EQU $0002  ; Vertical axis only.
simpRound EQU $0000  ; Simple button flag
upFlag EQU $0001  ; Scroll bar flag. 
boldButton EQU $0001  ; Bold round cornered outlined button.
simpBRound EQU $0001  ; Simple button flag
downFlag EQU $0002  ; Scroll bar flag.
simpSquare EQU $0002  ; Simple button flag
simpDropSquare EQU $0003  ; Simple button flag
leftFlag EQU $0004  ; Scroll bar flag.
rightFlag EQU $0008  ; Scroll bar flag.
dirScroll EQU $0010  ; Scroll bar flag.
horScroll EQU $0010  ; Scroll bar flag.
family EQU $007F  ; Mask for radio button family number
ctlInVis EQU $0080  ; invisible mask for any type of control 
fCallWindowMgr EQU $0001  ; Control Template flag value
fSubstituteText EQU $0002
fSubTextType EQU $0001
inListBox EQU $88
simpleProc EQU $00000000
checkProc EQU $02000000
radioProc EQU $04000000
scrollProc EQU $06000000
growProc EQU $08000000
drawCtl EQU $0000  ; Draw control command.
calcCRect EQU $0001  ; Compute drag RECT command.
testCtl EQU $0002  ; Hit test command.
initCtl EQU $0003  ; Initialize command.
dispCtl EQU $0004  ; Dispose command.
posCtl EQU $0005  ; Move indicator command.
thumbCtl EQU $0006  ; Compute drag parameters command.
dragCtl EQU $0007  ; Drag command.
autoTrack EQU $0008  ; Action command.
newValue EQU $0009  ; Set new value command.
setParams EQU $000A  ; Set new parameters command.
moveCtl EQU $000B  ; Move command.
recSize EQU $000C  ; Return record size command.
ctlHandleEvent EQU $000D  ; Handle a keystroke or menu selection
ctlChangeTarget EQU $000E  ; Issued when control's target status has changed
ctlChangeBounds EQU $000F  ; Issued when control's boundary rectangle has changed
ctlWindChangeSize EQU $0010  ; Window has been grown or zoomed
ctlHandleTab EQU $0011  ; Control has been tabbed to
ctlNotifyMultiPart EQU $0012  ; A multipart control has been hidden, drawn or shown
ctlWinStateChange EQU $0013  ; Window state has changed
noHilite EQU $0000  ; Param to HiliteControl
inactiveHilite EQU $00FF  ; Param to HiliteControl
noPart EQU $0000
simpleButton EQU $0002
checkBox EQU $0003
radioButton EQU $0004
upArrow EQU $0005
downArrow EQU $0006
pageUp EQU $0007
pageDown EQU $0008
growBox EQU $000A
thumb EQU $0081
fCtlTarget EQU $8000  ; is current target of typing commands
fCtlCanBeTarget EQU $4000  ; can be made the target control
fCtlWantEvent EQU $2000  ; control can be called view SendEventToCtl
fCtlWantsEvent EQU $2000  ; control can be called view SendEventToCtl
fCtlWantEvents EQU $2000  ; control can be called view SendEventToCtl
fCtlWantsEvents EQU $2000  ; control can be called view SendEventToCtl
fCtlProcRefNotPtr EQU $1000  ; set = ID of defproc, clear = pointer to defproc
fCtlTellAboutSize EQU $0800  ; set if ctl needs notification when size of owning window changes
fCtlIsMultiPart EQU $0400  ; set if ctl needs notification to be hidden
fMenuDefIsText EQU $0004
colorDescriptor EQU $000C  ; indicates type of reference in colorRef
styleDescriptor EQU $0003  ; indicates type of reference in styleRef
titleIsPtr EQU $00
titleIsHandle EQU $01
titleIsResource EQU $02
colorTableIsPtr EQU $00
colorTableIsHandle EQU $04
colorTableIsResource EQU $08
ctlHideCtl EQU $12
singlePtr EQU $0000
singleHandle EQU $0001
singleResource EQU $0002
ptrToPtr EQU $0003
ptrToHandle EQU $0004
ptrToResource EQU $0005
handleToPtr EQU $0006
handleToHandle EQU $0007
handleToResource EQU $0008
resourceToResource EQU $0009
simpleButtonControl EQU $80000000
checkControl EQU $82000000
radioControl EQU $84000000
scrollBarControl EQU $86000000
growControl EQU $88000000
statTextControl EQU $81000000
editLineControl EQU $83000000
editTextControl EQU $85000000
popUpControl EQU $87000000
listControl EQU $89000000
iconButtonControl EQU $07FF0001
pictureControl EQU $8D000000
wmNotStartedUp EQU $1001  ; Window manager was not initialized
cmNotInitialized EQU $1002  ; Control manager was not initialized
noCtlInList EQU $1003  ; Control not in window list
noCtlError EQU $1004  ; no controls in window
noSuperCtlError EQU $1005  ; no super controls in window
noCtlTargetError EQU $1006  ; no target super control
notSuperCtlError EQU $1007  ; action can only be done on super control
canNotBeTargetError EQU $1008  ; conrol cannot be made target
noSuchIDError EQU $1009  ; specified ID cannot be found
tooFewParmsError EQU $100A  ; not enough params specified
noCtlToBeTargetError EQU $100B  ; NextCtl call, no ctl could be target
noFrontWindowError EQU $100C  ; there is no front window
selectedIcon EQU $0001
openIcon EQU $0002
offline EQU $0004
fListString EQU $0001
fListSelect EQU $0002
fListScrollBar EQU $0004
fRightJustifyResult EQU $0001
fRightJustifyTitle EQU $0002
fInWindowOnly EQU $0004
fDontDrawResult EQU $0008
fDontDrawTitle EQU $0010
fDontHiliteTitle EQU $0020
fType2PopUp EQU $0040
; offset constants for BarColors
obarOutline EQU 0
obarNorArrow EQU 2
obarSelArrow EQU 4
obarArrowBack EQU 6
obarNorThumb EQU 8
obarSelThumb EQU 10
obarPageRgn EQU 12
obarInactive EQU 14
; offset constants for BoxColors
oboxReserved EQU 0
oboxNor EQU 2
oboxSel EQU 4
oboxTitle EQU 6
; offset constants for BttnColors
obttnOutline EQU 0
obttnNorBack EQU 2
obttnSelBack EQU 4
obttnNorText EQU 6
obttnSelText EQU 8
; offset constants for CtlRec
octlNext EQU 0
octlOwner EQU 4
octlRect EQU 8
octlFlag EQU 16
octlHilite EQU 17
octlValue EQU 18
octlProc EQU 20
octlAction EQU 24
octlData EQU 28
octlRefCon EQU 32
octlColor EQU 36
octlReserved EQU 40
octlID EQU 56
octlMoreFlags EQU 60
octlVersion EQU 62
; offset constants for LimitBlk
oboundRect EQU 0
oslopRect EQU 8
oaxisParam EQU 16
odragPatt EQU 18
; offset constants for RadioColors
oradReserved EQU 0
oradNor EQU 2
oradSel EQU 4
oradTitle EQU 6
