home *** CD-ROM | disk | FTP | other *** search
Oberon Document | 1994-06-07 | 6.2 KB | 141 lines | [oODC/obnF] |
- Documents.StdDocumentDesc
- Documents.DocumentDesc
- Containers.ViewDesc
- Views.ViewDesc
- Stores.StoreDesc
- Documents.ModelDesc
- Containers.ModelDesc
- Models.ModelDesc
- Stores.ElemDesc
- Stores.StoreDesc
- TextViews.StdViewDesc
- TextViews.ViewDesc
- Containers.ViewDesc
- Views.ViewDesc
- Stores.StoreDesc
- TextModels.StdModelDesc
- TextModels.ModelDesc
- Containers.ModelDesc
- Models.ModelDesc
- Stores.ElemDesc
- Stores.StoreDesc
- TextModels.AttributesDesc
- Stores.StoreDesc
- Geneva
- TextModels.AttributesDesc
- Stores.StoreDesc
- Geneva
- StdStamps.StdViewDesc
- Views.ViewDesc
- Stores.StoreDesc
- TextModels.AttributesDesc
- Stores.StoreDesc
- Geneva
- TextModels.AttributesDesc
- Stores.StoreDesc
- Geneva
- MODULE MacControlMgr;
- (* cp
- control definition functions eliminated
- IMPORT SYSTEM, MacTypes, MacWindowMgr;
- CONST
- pushButProc* = 0;
- checkBoxProc* = 1;
- radioButProc* = 2;
- useWFont* = 8;
- scrollBarProc* = 16;
- inButton* = 10;
- inCheckBox* = 11;
- inUpButton* = 20;
- inDownButton* = 21;
- inPageUp* = 22;
- inPageDown* = 23;
- inThumb* = 129;
- noConstraint* = 0;
- hAxisOnly* = 1;
- vAxisOnly* = 2;
- HANDLE = 2;
- CODE = 1;
- TYPE
- ControlPtr* = POINTER TO ControlRecord;
- ControlHandle* = POINTER [HANDLE] TO ControlRecord;
- ControlRecord* = RECORD (MacTypes.Data)
- nextControl*: ControlHandle;
- contrlOwner*: MacWindowMgr.WindowPtr;
- contrlRect*: MacTypes.Rect;
- contrlVis*,
- contrlHilite*: MacTypes.PackedChar;
- contrlValue*,
- contrlMin*,
- contrlMax*: INTEGER;
- contrlDefProc*: MacTypes.Handle;
- contrlData*: MacTypes.Handle;
- contrlAction*: MacTypes.ProcPtr;
- contrlRfCon*: LONGINT;
- contrlTitle*: MacTypes.Str255
- END;
- (** Initialization and Allocation **)
- PROCEDURE [CODE] NewControl* (theWindow: MacWindowMgr.WindowPtr;
- boundsRect: MacTypes.Rect; title: MacTypes.Str255;
- visible: BOOLEAN; value, min, max, procID: INTEGER;
- refCon: LONGINT): ControlHandle 0A9H, 054H;
- PROCEDURE [CODE] GetNewControl* (controlID: INTEGER; theWindow: MacWindowMgr.WindowPtr): ControlHandle 0A9H, 0BEH;
- PROCEDURE [CODE] DisposeControl* (theControl: ControlHandle) 0A9H, 055H;
- PROCEDURE [CODE] KillControls* (theWindow: MacWindowMgr.WindowPtr) 0A9H, 056H;
- (** Control Display **)
- PROCEDURE [CODE] SetCTitle* (theControl: ControlHandle; VAR title: MacTypes.Str255) 0A9H, 05FH;
- PROCEDURE [CODE] GetCTitle* (theControl: ControlHandle; VAR title: MacTypes.Str255) 0A9H, 05EH;
- PROCEDURE [CODE] HideControl* (theControl: ControlHandle) 0A9H, 058H;
- PROCEDURE [CODE] ShowControl* (theControl: ControlHandle) 0A9H, 057H;
- PROCEDURE [CODE] DrawControls* (theWindow: MacWindowMgr.WindowPtr) 0A9H, 069H;
- PROCEDURE [CODE] HiliteControl* (theControl: ControlHandle; hiliteState: INTEGER) 0A9H, 05DH;
- PROCEDURE [CODE] Draw1Control* (theControl: ControlHandle) 0A9H, 06DH;
- PROCEDURE [CODE] UpdtControl* (theWindow: MacWindowMgr.WindowPtr; updateRgn: MacTypes.RgnHandle) 0A9H, 053H;
- (** Mouse Location **)
- PROCEDURE [CODE] FindControl* (thePoint: MacTypes.Point; theWindow: MacWindowMgr.WindowPtr;
- VAR whichControl: ControlHandle): INTEGER 0A9H, 06CH;
- PROCEDURE [CODE] TrackControl* (theControl: ControlHandle; startPt: MacTypes.Point;
- actionProc: MacTypes.ProcPtr): INTEGER 0A9H, 068H;
- PROCEDURE [CODE] TestControl* (theControl: ControlHandle; thePt: MacTypes.Point): INTEGER 0A9H, 066H;
- (** Control Movement and Sizing **)
- PROCEDURE [CODE] MoveControl* (theControl: ControlHandle; h, v: INTEGER) 0A9H, 059H;
- PROCEDURE [CODE] DragControl* (theControl: ControlHandle; startPt: MacTypes.Point;
- limitRect, slopRect: MacTypes.Rect; axis: INTEGER) 0A9H, 067H;
- PROCEDURE [CODE] SizeControl* (theControl: ControlHandle; w, h: INTEGER) 0A9H, 05CH;
- (** Control Setting and Range **)
- PROCEDURE [CODE] SetCtlValue* (theControl: ControlHandle; theValue: INTEGER) 0A9H, 063H;
- PROCEDURE [CODE] GetCtlValue* (theControl: ControlHandle): INTEGER 0A9H, 060H;
- PROCEDURE [CODE] SetCtlMin* (theControl: ControlHandle; minValue: INTEGER) 0A9H, 064H;
- PROCEDURE [CODE] GetCtlMin* (theControl: ControlHandle): INTEGER 0A9H, 061H;
- PROCEDURE [CODE] SetCtlMax* (theControl: ControlHandle; maxValue: INTEGER) 0A9H, 065H;
- PROCEDURE [CODE] GetCtlMax* (theControl: ControlHandle): INTEGER 0A9H, 062H;
- (** Miscellaneous Routines **)
- PROCEDURE [CODE] SetCRefCon* (theControl: ControlHandle; data: LONGINT) 0A9H, 05BH;
- PROCEDURE [CODE] GetCRefCon* (theControl: ControlHandle): LONGINT 0A9H, 05AH;
- PROCEDURE [CODE] SetCtlAction* (theControl: ControlHandle; actionProc: MacTypes.ProcPtr) 0A9H, 06BH;
- PROCEDURE [CODE] GetCtlAction* (theControl: ControlHandle): MacTypes.ProcPtr 0A9H, 06AH;
- END MacControlMgr.
- TextControllers.StdCtrlDesc
- TextControllers.ControllerDesc
- Containers.ControllerDesc
- Controllers.ControllerDesc
- Stores.StoreDesc
- TextRulers.StdRulerDesc
- TextRulers.RulerDesc
- Views.ViewDesc
- Stores.StoreDesc
- TextRulers.StdStyleDesc
- TextRulers.StyleDesc
- Models.ModelDesc
- Stores.ElemDesc
- Stores.StoreDesc
- TextRulers.AttributesDesc
- Stores.StoreDesc
- TextModels.AttributesDesc
- Stores.StoreDesc
- Geneva
- Documents.ControllerDesc
- Containers.ControllerDesc
- Controllers.ControllerDesc
- Stores.StoreDesc
-