drag image from browser or desktop into RR

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

drag image from browser or desktop into RR

Post by billworld » Thu Oct 30, 2008 3:58 pm

Is it possible to drag an image from a browse or the OS desktop into RR?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Thu Oct 30, 2008 4:25 pm

Yep: check out the dictionary, filtering with "drag" to bring all the drag-related tokens up.

To see how they all fit together in context, Eric Chatonet has put together a wonderful tutorial on Rev's drag-and-drop abilities, including a working example of dragging to and from the desktop:
http://www.sosmartsoftware.com/download ... 0Drop2.rev
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

Post by billworld » Thu Oct 30, 2008 6:45 pm

Thanks. I found that and looked at it briefly but wasn't able to quickly get the examples to accept an image/graphic from outside of rev and I thought I read something about the data types supported and image/graphic wasn't one of them (as it pertains to drag-and-drop from outside of Rev). Maybe that's a bit over my head currently. But, my first concern is making sure that it CAN be done. Then, I'll figure out how to do it later.
FourthWorld wrote:Yep: check out the dictionary, filtering with "drag" to bring all the drag-related tokens up.

To see how they all fit together in context, Eric Chatonet has put together a wonderful tutorial on Rev's drag-and-drop abilities, including a working example of dragging to and from the desktop:
http://www.sosmartsoftware.com/download ... 0Drop2.rev

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Thu Oct 30, 2008 7:17 pm

Hi Bill,

I have a stack on RevOnline that shows one way to handle drag and drop TO rev:
User: klausimausi
Stack Drag and drop Lite.

Hint:
If QuickTime is installed you can also use a player object (set its "alwaysvbuffer" to true then) to display ALL the image formats that QT support like: TIFF, PSD etc.!


Best from germany

Klaus

billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

Post by billworld » Fri Oct 31, 2008 5:54 pm

Thanks Klaus. I'll give this a close look when I switch back to develop mode (currently in UI design mode).

Best,

Bill
Klaus wrote:Hi Bill,

I have a stack on RevOnline that shows one way to handle drag and drop TO rev:
User: klausimausi
Stack Drag and drop Lite.

Hint:
If QuickTime is installed you can also use a player object (set its "alwaysvbuffer" to true then) to display ALL the image formats that QT support like: TIFF, PSD etc.!


Best from germany

Klaus

Post Reply