setting the dragImage under LC 9.6.3

panagiotis m merakosp at gmail.com
Thu Aug 26 10:29:46 EDT 2021


Hello all,

Yes, unfortunately the dragImage is broken on Windows:

https://quality.livecode.com/show_bug.cgi?id=21562

Kind regards,
Panos
--

On Thu, 26 Aug 2021 at 17:13, Craig Newman via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Hi.
>
> 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.
>
> Craig
>
> > On Aug 25, 2021, at 5:36 PM, Paul Dupuis via use-livecode <
> use-livecode at lists.runrev.com> 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 lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list