B4J Question [SOLVED] How to make DragAndDrop2 B4Xlib work with B4XPages?

stevel05

Expert
Licensed User
Longtime User
What doesn't work?

I can drag/drop a jpg file onto the target from file manager and it get's displayed.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Yes, I downloaded your project, and it displays a jpg file dropped on the target.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
I can't do the video, but:

 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
The file you are using has a jpg extension, and not a jpeg or something else?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Just saw your second video, now that's strange. I don't know what to suggest.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
I just ran your project and it works as expected. Try the obvious first. Restart the PC.
 
Upvote 0

DaleA

Member
Keep in mind that I'm a novice at this environment but I don't see why the DragDetected event would fire. It is linked to the 'ivSource' imageview which has nothing in it to be dragged. I tried giving it an image in the Designer and then trying to drag that image around. When I did, the image dragged and the event fired as expected.

As for dragging an image file from the desktop to the ivTarget imageview, it worked fine for me.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Ehm... forget it. I just downloaded... my own project from first post and... now it works!

Please, do not ask me why ? (the only possible thing I think may be that the project I ran was not the one attached. I will try to check it).
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
I FOUND THE INCREDIBLE PROBLEM !!!

It WORKS when I open the project by double-clicking on the main project file.
It DOES NOT WORK if I start B4J with administration rights, open the project by menu and run it!

Note that on my PC a single user exists: mine - administrator (Windows 7).
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Hmmm, now that requires Erel's brain I think.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…