Table of Contents

REMOVEDRAGDATA message

Description

This message is used to remove the specified data format from the dragged data.

Syntax

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

Parameters

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.

Returns

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

Remarks

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

See Also

DRAGSOURCE property, DROPTARGET property, SETDRAGDATA message, CLEARDRAGDATA message, GETDRAGDATA message

Example

* Change the "TEXT" data being dragged

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

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

if data _eqc 'Rutherford B. Hayes' then

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

end