[futurebasic] Re: [FB] Re: Drag and Drop onto Application window

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2007 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Tue, 21 Aug 2007 14:31:23 -0700
On Aug 21, 2007, at 1:58 PM, David Bailey wrote:

> I have searched the archives for drag and drop and find a lot of  
> info about from field to field or window to window or onto a finder  
> icon but I do not find anything about an open application window  
> receiving an image file when dropped into a specific rectangle.   
> Has this been discussed? Some other phrase I might search for?

Sounds like you are looking for a specific scenario for dragging and  
dropping. The Drag manager basically provides the ability to track  
when an item is dragged and where it is dropped. The user code needs  
to set up functions to handle these while calling the drag manager  
and decide if the locations are important to the processing. A full  
example of drag and drop manager that isn't yet ancient but still  
serviceable is "carbon_pleasureDome".  It is on the FB4 CD in  
Examples/Drag & Drop Manager. Again, the Drag manager does not cater  
to only a specific drag and drop scenario, it is up to the user  
(that's the programmer) to decide what drags and what drops are  
important.

Depending on your needs,  it might be possible to use overlay windows  
as Bernie showed us with his slick example 2 years ago. It allows  
drag copying of an icon from one window to another.

I've mentioned Bernie's code a few times lately (and I know David C  
requested the CEUtil/NibUtil code) hoping Bernie would chime in and  
repost the code but I know he is busy with other matters at the  
moment. I'll contact Bernie offlist and request his permission to  
post his code.

Brian S.