previous chapter contents page top page next chapter


LogWindow

March 15, 1996

inherits from GadgetWindow;

Class Description

When the user touches the log button in the name cards scene, Magic Cap displays the log window, a window that shows all objects in memory that are related to the entity on the current name card. Magic Cap defines class LogWindow for this purpose.

Remember that if the documentation and the software (especially the definition files) disagree, always trust the software.

Programming information

Instantiate: rarely
Subclass: rarely
Call its methods: never

You probably won't ever create an object or a subclass of class LogWindow. The information in this chapter is provided for debugging and curiosity only.

Methods defined by class LogWindow

Class LogWindow defines the following methods:

Method Description
AboutToHide Overridden to clear the log of entries before hiding the window.
AboutToShow Overridden to fill the log with entries and scroll to the top.
Label Overridden to append name of current card to label.

Fields defined by class LogWindow

Class LogWindow 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 LogWindow
logFlags Unsigned Reserved for future use by Magic Cap
logScene Scene Scene that uses this log window

Method Descriptions

AboutToHide

overrides AboutToHide
Call: rarely
Override: sometimes

Class LogWindow overrides AboutToHide to clear all entries from the log before the window is closed.

AboutToShow

overrides AboutToShow
Call: rarely
Override: sometimes

Class LogWindow overrides AboutToShow to get all the log entries for the entity on the current card before displaying the window. After all the entries are filled in, the window is scrolled to its top.

Label

overrides Label
Call: rarely
Override: sometimes

Class LogWindow overrides Label to construct the label by appending the name of the current card to the name of the responder.