Identifier: stuff

Type

string

Description

Returns the current contents of the stuff buffer. The stuff buffer is a "cut/paste" window manager feature whereby a text item can be grabbed from one window and deposited in another. On Microsoft Windows systems it is often referred to as the "clipboard".

The stuff value will only be valid immediately after a mouse event in one of the modeling windows, so it is best accessed in a callback as a result of pressing a window button as a text "drag and drop" feature.

By assigning a value to this identifier, the contents of the stuff buffer may be set.

Examples

Define a window button so that when pressed the current contents of the stuff button are interpreted as a file name and printed.

win1.buttons[4] = { print ^(stuff) }
win1.button_labels[4] = 'Print File'

See Also

Structures:

window.buttons, wpanel