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:
Parameters | Description |
---|---|
ctrlEntID | Must be a current drag source control. |
bmp | The path of hte bitmap image to use |
xOffset | X offset of the image from the cursor hotspot |
yOffset | Y offset of the image from the cursor hotspot |
TC | Color 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 property, DROPTARGET property, SETDRAGDATA message, CLEARDRAGDATA message, GETDRAGDATA message
Example
dragSource = Get_Property("SYSTEM","DRAGSOURCE") retval = Send_Message(dragSource,"c:\my_image.jpg","","","")