home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-06 | 1.7 KB | 79 lines | [TEXT/EDIT] |
- // Control.h
- // © Copyright 1984 Consulair Corp, All Rights Reserved.
- // Portions © Copyright Apple Computer, Inc: 1982, 1983, 1984
- // Stanford University, SUMEX project: 1984
- // Requires Macdefs.h Quickdraw.h Window.h
-
- #ifndef ControlLoaded
-
- #ifndef WindowLoaded
- #include "window.h"
- #endif
-
- #define ControlLoaded
-
- // control messages
-
- #define drawCntl 0
- #define testCntl 1
- #define calcCRgns 2
- #define initCntl 3
- #define dispCntl 4
- #define posCntl 5
- #define thumbCntl 6
- #define dragCntl 7
- #define autoTrack 8
-
- // FindControl Result Codes
-
- #define noControl 0
- #define inButton 10
- #define inCheckbox 11
- #define inUpButton 20
- #define inDownButton 21
- #define inPageUp 22
- #define inPageDown 23
- #define inThumb 129
-
- // control definition proc ID's
-
- #define pushButProc 0
- #define checkBoxProc 1
- #define radioButProc 2
- #define scrollBarProc 16
-
- #define useWFont 8
-
- // for Control Manager
-
- struct __CR
- {
- Handle nextControl;
- WindowPtr contrlOwner;
- Rect contrlRect;
- char contrlVis;
- char contrlHilite;
- short contrlValue;
- short contrlMin;
- short contrlMax;
- Handle contrlDefProc;
- Handle contrlData;
- int (*contrlAction)();
- long contrlRfCon;
- Str255 contrlTitle;
- };
-
- #define ControlRecord struct __CR
-
- typedef ControlRecord * ControlPtr;
- typedef ControlPtr * ControlHandle;
-
- // Functions returning other than integer or Ptr
-
- #define GetNewControl (ControlHandle)GetNewControl
- #define NewControl (ControlHandle)NewControl
- #define GetCtlAction (ProcPtr)GetCtlAction
-
- #endif
-
-