setting the dragImage under LC 9.6.3

Craig Newman craig at
Thu Aug 26 10:12:19 EDT 2021


I have done this sort of thing for decades, starting with HC. But I used an invisible field to “carry” the line of interest, not an image. I do not know if this will help your issue. If you need a description of that let me know.


> On Aug 25, 2021, at 5:36 PM, Paul Dupuis via use-livecode <use-livecode at> wrote:
> I have a situation I just noticed running under LC 9.6.3.
> I have a field where you can drag lines to drop on other specific lines. on dragStart, take a snapshot of the line just clicked and make set and existing image object to the image data of the snapshot.
> i.e.
>   put pText into fld "DragList"
>   export snapshot from fld "DragList" to tImg as PNG
>   put tImg into img "CodeBookDrag"
> I have check all this in the debugger. The field "DragList" has the text of the line clicked on at the start of the drag. The image "CodeBookDrag" is set to an image of the field containing the text - all is good
> In my dragStart handler, I have:
> set the dragImage to the id of image "CodeBookDrag" of this cd
> on macOS (Mojave), as I perform the drag, the cursor changes to the line of text image (YEA!)
> on Windows (same exact code) , the cursor remains a circle with a slash (default) when over a line that can not be dropped on and a plus icon over a lien that can be dropped on.
> This used to work cross-platform. The code is the same across macOS and Windows. Has anyone else seen an issue like this? is dragImage broken on Windows?
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list