Topic: APLX Help : System Classes : Properties : targetformats
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

The 'targetformats' property


Valid for: All visible controls

Character vector or nested vector of character vectors

The targetformats property is used to control drag-and-drop operations. It determines the names of the drag-and-drop formats which the control can accept if the user drags another control on to it. If there is only one format, it is a simple character vector. If the control can accept 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 : targetformats
[ Previous | Next | Contents | Index | APL Home ]