February 29, 1996 inherits from GadgetWindow
Magic Cap defines class CommandWindow for the window that appears when the user touches the lamp. Magic Cap has just one command window object.
Instantiate: never Subclass: never Call its methods: never
You probably won't ever create an object or a subclass of class MagicWindow. The information in this chapter is provided for debugging and curiosity only.
Class CommandWindow defines the following methods:
Method | Description |
---|---|
AdjustSize |
Overridden to resize content to fit around subviews. |
Appear | Overridden to install appropriate commands. |
CanAccept | Overridden to reject items if writing tool or touch tool is current. |
Disappear | Overridden to remove commands from window. |
InstallInto | Overridden to install commands. |
Tap | Overridden to toggle authoring mode if option key down. |
SetAuthoringMode | Overridden to install appropriate commands for user level. |
Class CommandWindow defines the following fields:
Field | Type | Description |
---|---|---|
Inherited from SingleLinkable | ||
next | Object | Next item in view list |
Inherited from Linkable | ||
previous | Object | Previous item in view list |
Inherited from Viewable | ||
superview | Viewable | Container for this object |
subview | Viewable | Object contained by this object |
relativeOrigin | Dot | Origin relative to superview |
contentSize | Dot | Size of content rectangle |
viewFlags | Flags | Property settings |
labelStyle | TextStyle | Text style of object's label |
color | Color | Color of object's content |
shadow | Shadow | Shadow drawn with object |
sound | Sound | Sound associated with object |
Inherited from HasBorder | ||
border | Border | Framed border drawn around object |
Inherited from Window | ||
windowFlags | Flags | Stores various boolean attributes of the window |
Inherited from TitledWindow | ||
titleColor | Unsigned | RGB color for title box |
titleHeight | Micron | Height of title box |
dependents | ObjectList | List of dependent windows |
Inherited from BalloonSpout | ||
balloonDot | Dot | Cached dot position, used by Magic Cap |
inherited from GadgetWindow | ||
target | Object | Target for this window |
defined by CommandWindow | ||
userLevelList | ObjectList | Viewables for normal and authoring modes |
authoringMode | Boolean | Records mode setting during last display |
topMargin | Micron | Reserved for future use |
communicationBox | Viewable | Box containing communication commands |
localCommandBox | Viewable | Box containing local scene's commands |
rulesGadget | Viewable | Rules gadget that appears in window |
overrides AdjustSize Call: rarely Override: sometimes
Class MagicWindow overrides AdjustSize to resize the content box to fit the current subviews with a margin around the sides.
overrides Appear Call: rarely Override: sometimes
Class MagicWindow overrides Appear to install global and scene-specific commands into the command window.
overrides CanAccept Call: rarely Override: sometimes
Class MagicWindow overrides CanAccept to reject items if the current tool is a writing or touch tool.
overrides Disappear Call: rarely Override: sometimes
Class MagicWindow overrides Disappear to remove commands from the window when it closes.
overrides InstallInfo Call: rarely Override: sometimes
Class MagicWindow overrides InstallInto to install commands into the local or global set.
overrides Tap Call: rarely Override: sometimes
Class MagicWindow overrides Tap to toggle authoring mode if the user taps the title bar and the option key is down.
overrides SetAuthoringMode Call: rarely Override: sometimes
Class MagicWindow overrides SetAuthoringMode to install the appropriate commands when the user switches authoring modes.