Description

This message sets the bitmap used by the system when dragging data from the drag source.

Syntax

retVal = Send_Message(ctrlEntId,"SETDRAGBITMAP",bmp,xOffset,yOffset,TC)

Parameters

The function has the following parameters:

ParametersDescription
ctrlEntIDMust be a current drag source control.
bmpThe path of hte bitmap image to use
xOffsetX offset of the image from the cursor hotspot
yOffsetY offset of the image from the cursor hotspot
TCColor tuse as the transparent color if the image has transparent parts.

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. The xOffset and yOffset arguments are used to place the image top left pixel relative to the cursor’s hotspot.

See also

DRAGSOURCE propertyDROPTARGET propertySETDRAGDATA messageCLEARDRAGDATA messageGETDRAGDATA message

Example

dragSource = Get_Property("SYSTEM","DRAGSOURCE")
retval = Send_Message(dragSource,"c:\my_image.jpg","","","")
  • No labels