... <- Box <- Window <- TitledWindow <- GadgetWindow <- ContainerWindow |
|
|
ArrowState CanAccept ChangedContents InstallEntrance InstallInto MaximumScrollOffset |
MinimumScrollOffset MovedContents PageDown PageUp RevealViewable SetScrollOffset |
|
ContentsInTransit Empty GridOffset GridSize ShouldRespectGrid TinyImage UseBuiltInScrollArrows |
| Field | Type | |
|---|---|---|
| Viewable: | superview: | Viewable |
| relativeOrigin: | Dot | |
| contentSize: | Dot | |
| viewFlags: | Flags | |
| labelStyle: | TextStyle | |
| color: | Unsigned | |
| altColor: | Unsigned | |
| shadow: | Shadow | |
| sound: | Playable | |
| HasBorder: | border: | Border |
| Window: | canCoexist: | Boolean |
| persistentWindow: | Boolean | |
| dontAutoExtend: | Boolean | |
| ignoreGrid: | Boolean | |
| closeAfterTouch: | Boolean | |
| closeBeforeTouch: | Boolean | |
| autoPosition: | Boolean | |
| noCloseBox: | Boolean | |
| downArrowVisible: | Boolean | |
| upArrowVisible: | Boolean | |
| rightArrowVisible: | Boolean | |
| leftArrowVisible: | Boolean | |
| autoMoveContents: | Boolean | |
| searchable: | Boolean | |
| customTitleColor: | Boolean | |
| scaleWindowTitle: | Boolean | |
| noBuiltInArrows: | Boolean | |
| noZoom: | Boolean | |
| autoCopyWindow: | Boolean | |
| TitledWindow: | titleColor: | Unsigned |
| titleHeight: | Micron | |
| dependents: | ObjectList | |
| BalloonSpout: | balloonDot: | Dot |
| GadgetWindow: | target: | Object |
| ScrollableByMicron: | scrollOffset: | Dot |
| ContainerWindow: | gridSize: | Dot |
| gridOffset: | Dot | |
| topArrow: | Viewable | |
| bottomArrow: | Viewable |
instance ContainerWindow tag; relativeOrigin: <0.0,0.0>; contentSize: <0.0,0.0>; viewFlags: 0x00000000; labelStyle: nilObject; color: 0; altColor: 0; shadow: nilObject; sound: nilObject; border: nilObject; canCoexist: false; persistentWindow: false; dontAutoExtend: false; ignoreGrid: false; closeAfterTouch: false; closeBeforeTouch: false; autoPosition: false; noCloseBox: false; downArrowVisible: false; upArrowVisible: false; rightArrowVisible: false; leftArrowVisible: false; autoMoveContents: false; searchable: false; customTitleColor: false; scaleWindowTitle: false; noBuiltInArrows: false; noZoom: false; autoCopyWindow: false; titleColor: 0; titleHeight: <0.0>; dependents: nilObject; balloonDot: <0.0,0.0>; target: nilObject; scrollOffset: <0.0,0.0>; gridSize: <0.0,0.0>; gridOffset: <0.0,0.0>; topArrow: nilObject; bottomArrow: nilObject; end instance;
Define Class ContainerWindow; inherits from GadgetWindow, Scroller, HasBuiltInScrollArrows, CanContainEntrances, CanBeSearched; field gridSize: Dot; // horizontal and vertical grid spacing field gridOffset: Dot; // horizontal and vertical offset of first grid position from top left of content box field topArrow: Viewable; // scroll up arrow field bottomArrow: Viewable; // scroll down arrow attribute Empty: Boolean, readOnly; // checks for subviews other than scroll arrows attribute GridOffset: Dot; // horizontal and vertical offset of first grid position from top left of content box attribute GridSize: Dot; // horizontal and vertical grid spacing attribute ShouldRespectGrid: Boolean; // setter sets bit in window flags // getter respects bit unless option key is down and window is on screen, // in which case it returns false // called by MovedContents to determine whether new subviews should be placed on grid overrides ArrowState; // uses arrow state cached in windowFlags overrides CanAccept; // allows the desk accessory window to accept deletable items overrides TinyImage; // returns special image for tote bag window overrides InstallEntrance; // if someone tries to install a door or building into this, // we create an icon (by calling CreateEntrance) and install it instead. overrides InstallInto; // allows any viewable to be installed into self. overrides MaximumScrollOffset; // calculates the position of the lowest grid line with contents overrides MinimumScrollOffset; // calculates the position of the highest grid line with contents overrides ChangedContents; // recomputes arrow state overrides MovedContents; // moves item to grid position and recomputes arrow state overrides PageUp; // scrolls up by integral number of grid lines with one-line overlap overrides PageDown; // scrolls down by integral number of grid lines with one-line overlap overrides SetScrollOffset; // repositions scroll arrows overrides ContentsInTransit; // returns true if self is tote bag window overrides RevealViewable; // scrolls to reveal viewable overrides UseBuiltInScrollArrows; // respects noBuiltInArrows flag in window flags end class;