Download E-Slate manual 0.9.5.. - Educational Technology Lab

Transcript
E-Slate
User’s Manual and Tutorial
V0.9.5
Appendix B’: Scripting interface common to all E-Slate
components
The following are component primitives supported by all E-Slate components (in
addition to context specific primitives supported by each component as described
in their corresponding documentation). See the description in Appendix C for the
Tell, Ask and Each commands on how to instruct specific components to execute
their primitives. Finally note that primitive names are not case sensitive.
Primitives related to a component's behavior within E-Slate
MOVE <xLocation>, <yLocation>: Moves a component to the location specified by
the arguments of the command.
LOCATION: Returns the coordinates of the top-left corner of a component in the
coordinate space of E-Slate. The coordinates are returned in the form of a two
element Logo list.
MAXIMIZE: Maximizes a component.
HIDE: Hides a component.
RESTORE: Restore a component from the maximized or invisible state.
SETRESIZABLE: Enables component resizing.
SETUNRESIZABLE: Disables component resizing.
RESIZABLE: Returns TRUE if a component is resizable. Returns FALSE if the
component which receives the command is unresizable.
SETTITLEON: Displays the component's title bar.
SETTITLEOFF: Hides the component's title bar.
CLOSECOMPONENT: Removes one or more component's from the current
microworld. The component's to be removed from the microworld, are the ones
which execute this command, i.e. the components specified by the last TELL
command.
ACTIVATECOMPONENT: Activates component.
DEACTIVATECOMPONENT: Deactivates (deselects) component.
SETCOMPONENTSIZE: Resizes one or more components.
COMPONENTSIZE: Returns the size of a component. The size is reported as a twoelement Logo list.
<xLocation>,
<yLocation>,
<width>,
<height>:
SETCOMPONENTBOUNDS
Relocates and resizes one or more components in the current microworld
COMPONENTBOUNDS: Returns the current bounds
component's bounds are returned as a Logo word.
of
SETRENAMINGALLOWEDFROMBAR <yes|no>.
component from the menu bar is allowed.
whether
Sets
the
component.
The
renaming
the
RENAMINGALLOWEDFROMBAR: Returns whether renaming the component from the
menu bar is allowed.
SHOWHELP: The equivalent of clicking on a component's
displays help for the component.
COMPUTER TECHNOLOGY INSTITUTE
25
bar button, that is,
November ‘99