QDrop
![]() |
![]() |
QD_SetDroppableFileExtensions(areaRef; fileExtensions):error | |||
![]() |
areaRef | Longint | Area reference |
![]() |
fileExtensions | Array string | Droppable file name extensions |
![]() |
error | Longint | Error result |
Configures a QDrop plug-in area to accept specific file extensions.
Parameter areaRef is the reference to the plug-in area.
Parameter fileExtensions is a string array and it specifies the file extensions that are to be accepted by the area. The file extensions have to be specified without the period (".") separator.
In addition to standard file extensions like "txt" and "jpg", a set of magic file types that provide extra matching criteria can also be used.
qd_anyFileMagic | "any*" | Accept any file |
qd_folderMagic | "dir*" | Accept folders |
qd_QTImageMagic | "qti*" | Accept image files supported by QuickTime |
qd_QTMovieMagic | "qtm*" | Accept movie files supported by QuickTime |
Example
`Accept text files, QuickTime images, and folders C_LONGINT($error) ARRAY STRING(15;$fileExtensions;3) $fileExtensions{1}:="txt" $fileExtensions{2}:=qd_QTImageMagic $fileExtensions{3}:=qd_folderMagic $error:=QD_SetDroppableFileExtensions (xDrop;$fileExtensions) |
Related commands
QD_GetDroppableFileExtensions | Returns the file extensions that are accepted by a QDrop plug-in area |