'Close
A Window' Public Handlers
wfsGetWindowToClose
(nameOrSpritenum)
Returns the name or spritenum of the window this behavior is supposed to
close. If nameOrSpritenum is not specified, then the name is returned.
If nameOrSpritenum <> VOID, then the spritenum
of the window is returned (or 0 if the window is not currently instantiated).
In the below, x is the spritenum of the sprite to which the 'Close
A Window' behavior is attached.
windowToClose=sprite(x).wfsGetWindowToClose(nameOrSpritenum) or
windowToClose=sendSprite(x, #wfsGetWindowToClose,
nameOrSpritenum)
EXAMPLES
windowToClose=sprite(x).wfsGetWindowToClose()
windowToClose is the name of the window
to close.
windowToClose=sprite(x).wfsGetWindowToClose(1)
windowToClose is the spritenum of the
manager of the window to close.
wfsSetWindowToClose
(nameOrSpritenum)
Sets the window this behavior is supposed to close to nameOrSpritenum. If
nameOrSpritenum is a string, then it should refer to a
manager name (instantiated or not).
If nameOrSpritenum is an integer, it should refer to the spritenum
of an instantiated manager. In the below, x is the spritenum of the
sprite to which the 'Close A Window' behavior is attached.
sprite(x).wfsSetWindowToClose(nameOrSpritenum) or
sendSprite(x, #wfsSetWindowToClose,
nameOrSpritenum)
EXAMPLES
sprite(x).wfsSetWindowToClose("some
window")
windowToClose is set to "some window".
sprite(x).wfsGetWindowToClose(34)
windowToClose is set to the window whose
manager is sprite 34.
wfsGetCloseEvent
()
Returns the event that closes the window.
Range: "mouseEnter", "mouseDown", "mouseUp", "mouseLeave"
closeEvent=sprite(x).wfsGetCloseEvent() or
closeEvent=sendSprite(x, #wfsGetCloseEvent)
wfsSetCloseEvent
(theEvent)
Sets the event that closes the window.
Range of theEvent: "mouseEnter", "mouseDown", "mouseUp", "mouseLeave"
sprite(x).wfsSetCloseEvent(theEvent) or
sendSprite(x, #wfsSetCloseEvent,
theEvent)
|