guides:programming:programmers_reference_manual:setdragbitmap_message

SETDRAGBITMAP message

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

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

The function has the following parameters:

ParameterDescription
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.

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

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.


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

retval = Send_Message(dragSource,"c:\my_image.jpg","","","")
 
 
 
 
  • guides/programming/programmers_reference_manual/setdragbitmap_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1