UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | EditMenu Verbs > editMenu.paste

editMenu.paste

Syntax editMenu.paste ()

Params None required

Action Copies the contents of the Clipboard into the target window. Depending upon what is in the Clipboard and on the type of window that is the target, the pasted information's data format may be converted.

Returns True

Examples Open examples.docs.editText in the Object Database. Select any line of text in the window that has some styled text in it and then type and execute:
editMenu.copy ()


   » true

This will select some data of type TEXT. Click elsewhere in the word processing window and execute:
editMenu.paste ()


   » true

Notice that the copied material is placed into the document at the insertion point.

Now open the outline document examples.docs.editOutline and execute again:
editMenu.paste ()


   » true

Notice that the text is inserted into the outline on the selected line or, if no line is selected, immediately below the line on which the cursor is located. Note, too, that it has lost its styling. This is because text in an outline does not have styles
and the pasted text has now taken on the data type of the contents of an outline.

Notes Performs the same action as selecting the Paste command from the Frontier Edit menu.

If you paste the Clipboard into an outline, the pasted material is inserted as a heading immediately beneath and at the same level as the currently selected heading. The cursor remains on the pasted heading.

The action applies to the Frontier environment only and depends on what kind of window is frontmost.

See Also editMenu.cut

editMenu.copy

Prev | Next | EditMenu Verbs > editMenu.paste

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X