LiveCode Version 9.6.9-rc-1 Build 15600
Since two days ago, all my stacks that are using "on dragdrop" to drop files to a field that records their filename are no longer receiving the message.
- Entering the card with the mouse kept down and the file selected, the background color of ths stack is hilited.
Then the mousePointer turns to an insert icon with "+ copy" label and the icon of the file type.
- When dropping the text file to the destinatino object (here it is field "input"), a new field is created containing the text of the dropped file and LC sends one "deleteGraphic" message. (Nothing is deleted here...)
- When dropping another LiveCode stack, the stack is opened in a new window.
- Other file types such as pdf cannot be dropped. The mousepointer shows the denial symbol.
- Checking the "dragdrop" message, it does not fire while the "dragEnter" message is recognized.
Expected is that it presents the filename only.
I hope I made some silly mistakes, but the problem exists for all my stacks and prohibits essentially work.
If no one else can see the problem I wonder what it is. A bug in Windows? A but in LiveCode? Some settings? Before filing a bug report, I need to further analyze the problem. What error message to detect and receive and how?
Code: Select all
# Script: Test script for drag and drop
# DT: 230309-1100
# User: RH
# Desc: Dragdrop message not received
local sPaneColor = "white"
local sPaneColorEnter = "255,231,256"
on dragdrop
put CR& "dragDrop" after field "output"
put the dragData["files"] into tDragData
set the text of me to tDragData
set the backgroundcolor of me to sPaneColor
end dragdrop
on dragEnter
put CR& "dragEnter" after field "output"
put keys(the dragData) into tKeys
put CR& tKeys after field "output"
if "files" is in tKeys then
set the dragAction to "copy"
if the result is not empty then put CR&the result after field "output"
set the backgroundcolor of me to sPaneColorEnter
else
set the dragAction to "none"
if the result is not empty then put CR&the result after field "output"
end if
end dragEnter
on dragLeave
put CR& "dragLeave" && the dragAction after field "output"
set the dragAction to "none"
put CR& "dragLeave" && the dragAction after field "output"
set the backgroundcolor of me to sPaneColor
end dragLeave
