|
|
|
Copy and Paste inside non-editable fields
Added on 10/2/2000
|
|
Compatibilities:
Required Xtras:
Buddy API
|
This item has not yet been rated
|
This behavior alows non-editable field members to use the Ctrl + C, command for copy. This is not a variable, it actually writes to the windows clipboard so the data is available to other fields as well as other programs.
Note- this will only work with field members, not text members and it does not function correctly in authoring mode, only in projectors.
Requires the Copy key down script.
property spriteNum
global currentField, startChar, endChar
on mouseDown me
currentField = sprite(spriteNum).member
startChar = the mouseChar
endChar = the mouseChar
add the actorList, me
end
on stepFrame me
endchar = the mouseChar
if endChar > startChar then
hilite char startChar to endChar of field(currentField)
else
hilite char endChar to startChar of field(currentField)
end if
end
on mouseUp me
if endChar > startChar then
hilite char startChar to endChar of field(currentField)
else
hilite char endChar to startChar of field(currentField)
end if
deleteOne(the actorList, me)
end
on mouseUpOutside me
if endChar > startChar then
hilite char startChar to endChar of field(currentField)
else
hilite char endChar to startChar of field(currentField)
end if
deleteOne(the actorList, me)
end
on getBehaviorDescription me
describe = "This behavior alows non-editable field members to use the Ctrl + C, command for copy. This is not a variable, it actually writes to the windows clipboard so the data is available to other fields as well as other programs." & return & "Note- this will only work with field members, not text members and it does not function correctly in authoring mode, only in projectors." & return & "Requires the Copy key down script."
return describe
end
|
|