guides:programming:programmers_reference_manual:cleardragdata_message

CLEARDRAGDATA message

This message removes all data from the drag source data object. This can be used during a DRAGSTART event to cancel the drag.

retVal = Send_Message(ctrlEntId,"CLEARDRAGDATA",format)

The function has the following parameters:

ParameterDescription
ctrlEntIDMust be a current drag source control.
formatName of the format you want to clear. This can be a custom format or one of the following standard OpenInsight data formats.

Format - Description
TEXT - Sets textual data in both ANSI and Unicode format.
FILENAME - Sets a filename data format.
BITMAP - Sets BITMAP, a bit dta format. The data should be a bitmap path.

A boolean value. TRUE for successful, FALSE if unsuccessful.

The message can only be used during the DRAGSTART event for drag source control. This effectively cancels all current drag activity.

DRAGSOURCE property, DROPTARGET property, SETDRAGDATA message, REMOVEDRAGDATA message, GETDRAGDATA message

* Change the "TEXT" data being dragged

dragSource = Get_Property("SYSTEM","DRAGSOURCE")

data = Send_Message(dragSource,"GETDRAGDATA","TEXT","","")

if data _eqc 'Zachary Taylor' then

  data = Send_Message(dragSource,"CLEARDRAGDATA","TEXT")

end
  • guides/programming/programmers_reference_manual/cleardragdata_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1