Programmer's Reference

Target types

A target type is a string that represents the type of data transfer to perform when a valid drop occurs. Target types are equivalent to format names, which are used by the Common Widgets clipboard. Common Widgets drag and drop provides two built-in target types that are supported on all platforms:

'STRING'
Specifies that a String is transferred
'PIXMAP'
Specifies that a CgPixmap is transferred

Also can also use their own target types, for example, 'EMPLOYEE.' When Common Widgets drag and drop encounters a target type that is not built in, a ByteArray is transferred. An application must provide a ByteArray on the source side, and interpret the ByteArray data on the destination side. ByteArray data transfer is a flexible way to transfer data without writing any platform-specific code.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]