EventDropType()

Syntax

Result = EventDropType()
Description
After a #PB_Event_GadgetDrop or #PB_Event_WindowDrop is received by WaitWindowEvent() or WindowEvent(), this function returns the format of the dropped data.

Parameters

None.

Return value

Returns one of the following values, or an OS specific ID for a custom format (see DragOSFormats() for more information)
  #PB_Drop_Text   : Text was dropped.       (use EventDropText()  to retrieve it)
  #PB_Drop_Image  : An image was dropped.   (use EventDropImage() to retrieve it)
  #PB_Drop_Files  : Filenames were dropped. (use EventDropFiles() to retrieve them)
  #PB_Drop_Private: A "private" operation finished. (use EventDropPrivate() to know its type)

Remarks

To handle OS specific formats, EventDropBuffer() and EventDropSize() can be used.

See Also

EnableGadgetDrop(), EnableWindowDrop(), EventDropAction(), EventDropText(), EventDropImage(), EventDropFiles(), EventDropPrivate(), EventDropBuffer(), EventDropSize(), EventDropX(), EventDropY()

Supported OS

All

<- EventDropText() - DragDrop Index - EventDropX() ->