## The `sourceformats' property

Valid for: All visible controls

Character vector or nested vector of character vectors

The `sourceformats` property is used to control drag-and-drop operations. It determines the names of the drag-and-drop formats which the control can provide. If there is only one format, it is a simple character vector. If the control can provide more than one format, it is a nested vector of character vectors.

When the user attempts a drag-and-drop operation, the names in the source control's `sourceformats` property are matched against the names in the target control's `targetformats` property. If any of the names match, the cursor changes to indicate that drag-and-drop is potentially valid, and one or more of the drag-and-drop callbacks (`onDragOver`, `onDragEnter`, `onDragLeave`, `onDragDrop`) are invoked.

Drag-and-drop format names can be anything you choose. However, by convention, you should use `'TEXT'` for controls which support dragging of text.

Topic: APLX Help : System Classes : Properties : sourceformats

[ Previous | Next | Contents | Index ]