#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" ê libCursoržon mouseMove if the tool is "browse tool" then put "set the cursor to arrow" into tCursor set the lockCursor to true if word 1 of the target is "button" or word 1 of the target is "player" then put "set the cursor to hand" into tCursor if word 1 of the target is "field" then if the mouseChunk <> "" then if "link" is among the items of the textstyle of the mouseChunk then put "set the cursor to hand" into tCursor end if end if end if do tCursor else set the lockCursor to false end if pass mouseMove end mouseMove on mouseLeave set the lockCursor to false pass mouseLeave end mouseLeave €?cContributingAuthorsVMonte Goulding, mailto:monte@sweattechnologies.com, http://www.sweattechnologies.com; cVersion0.1cLibraryPurpose‡Cursor management library to use the standard system pointer for everything with the exception of buttons or links which use the hand. ÿÿÿÿ cDescription mouseMove‚If you handle the mouseMove message just make sure it is passed unless you want to override the cursor management for that object. mouseLeaveÍThis is mainly for unlocking the cursor when it leaves the stack/card. If you handle the mouseLeave message just make sure it is passed unless you want to override the cursor management for that object.  cREVGeneralscriptChecksumYBÛOmHh£?ðê+ükGL bookmarks handlerListmouseMove mouseLeavescriptSelectionchar 670 to 669 prevHandler tempScriptscript

on mouseMove

if the tool is "browse tool" then

put "set the cursor to arrow" into tCursor

set the lockCursor to true

if word 1 of the target is "button" or word 1 of the target is "player" then put "set the cursor to hand" into tCursor

if word 1 of the target is "field" then

if the mouseChunk <> "" then

if "link" is among the items of the textstyle of the mouseChunk then

put "set the cursor to hand" into tCursor

end if

end if

end if

do tCursor

else

set the lockCursor to false

end if

pass mouseMove

end mouseMove

on mouseLeave

set the lockCursor to false

pass mouseLeave

end mouseLeave

ê @