A Clipboard component monitors the system clipboard. It is used to implement "Edit" menu functionality. There is a clipboard component in the system module. Most applications that need custom Edit menu behavior will interact with this component. For example, to determine whether the current clipboard can be pasted as a string, one would use the following code:
IF system:clipboard!QueryItem("string") THEN
...
END IF
Applications may have their own Clipboard components, useful if you wish to handle its events.
Standard Properties:
class, parent, proto, version
activeSelection component
This read-only property keeps track of the component which has the active selection: the component which most recently gained the exclusive focus (its focusState property became 2) while its clipboardable property was set. If no component is the active selection, then this property will be the null component: you may test for this condition with the IsNullComponent() function.
copyable integer (0-1)
The copyable property is read-only, and specifies whether the current active selection is a possible candidate for being copied to the clipboard.
deletable integer (0-1)
The deletable property is read-only, and specifies whether the current active selection could be deleted.
pastable integer (0-1)
The pastable property is read-only, and specifies whether the active selection could accept the current contents of the clipboard.
format string
The data type of interest. Possibilities include:
"array," "fax," "float," "graphic," "integer," "long," "sound," "spreadsheet," and "string."