[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

MagicWindow

inherits from GadgetWindow
inherits from InfoTopic

... <- Box <- Window <- TitledWindow <- GadgetWindow <- MagicWindow



Operations

Get list of all operations

Appear
CanAccept
CanAcceptCoupon
CloseCategory
ConstrainToolTarget
Disappear
DisplayInfo
Draw
InstallInto
Tap
TouchTarget


Attributes

Get list of all attributes

AuthoringMode
CategoryBox


Fields

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
InfoTopic: info: Object
MagicWindow: categoryBox: CategoryBox
userLevelList: ObjectList
authoringMode: Boolean


Instance template

instance MagicWindow 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;
           info: nilObject;
    categoryBox: nilObject;
  userLevelList: nilObject;
  authoringMode: false;
end instance;

Class definition

Define Class MagicWindow;
    inherits from GadgetWindow, InfoTopic;

    field categoryBox:  CategoryBox, getter;
        // used by CategoryBox attribute
    field userLevelList:    ObjectList;
        // lists of viewables for top level of normal mode and authoring mode
    field authoringMode:    Boolean;
        // stores whether self is currently in authoring mode

    attribute CategoryBox: CategoryBox;
        // the CategoryBox that owns the currently-displayed viewables
        // setter changes displayed viewables to those owned by parameter
        // override rarely
    operation CloseCategory();
        // called internally when switching back to top level;
        // override rarely

    overrides Appear;
        // switches back to default state if option key is not down;
        // also sets iCurrentTool to the touch tool and hides the info window
    overrides Disappear;
        // restores iCurrentTool to what it was at Appear time
    overrides CanAccept;
        // prevents dropping items in if current tool is a writing or touch tool
    overrides CanAcceptCoupon;
        // accepts coupons only if option key is down
    overrides ConstrainToolTarget;
        // sets self as tool and immediate subview as target, 
        // unless target returns true to MustTrack
    overrides DisplayInfo;
        // gets information from the current category
    overrides Draw;
        // draws the "return to top level" image and text in title bar
    overrides InstallInto;
        // install a new category box
    overrides Tap;
        // handles taps in title bar;
        // if option key down, toggles authoring mode of self;
        // otherwise returns to top level or displays info based on hit-test
    overrides TouchTarget;
        // drops a copy of target out of the window

    overrides SetAuthoringMode;
        // switches to top level of hierarchy for new mode
end class;