Re: drag and drop image import?

2005-09-07 Thread FlexibleLearning
I would like to be able to drag an image to a metacard stack, drop the  
image,
and have the stack recognize it as an image and import it.  

I have no idea the properties if that is even possible, I sort  of doubt it. 
I
could script opening a directory and importing the image  no problem, or 
even a
whole folder of images. But what I've not yet  figured out is whether there 
is
any way to poll the cursor for dragged  images (on any platform).

Ideas?


Hi Eric,

I  have uploaded a drag and drop stack for you that will import (or link to) 
image  files, supports multiple drop selections and handles text by way of an  
example...
 
_www.FlexibleLearning.com/xtalk/dragndrop/DragAndDropSampler.rev_ 
(http://www.FlexibleLearning.com/xtalk/dragndrop/DragAndDropSampler.rev) 

/H
FLCo
Home of The Scripters Scrapbook
___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: drag and drop image import?

2005-09-07 Thread Klaus Major

Hi Eric,

I would like to be able to drag an image to a metacard stack, drop  
the image,

and have the stack recognize it as an image and import it.

I have no idea the properties if that is even possible, I sort of  
doubt it. I
could script opening a directory and importing the image no  
problem, or even a
whole folder of images. But what I've not yet figured out is  
whether there is

any way to poll the cursor for dragged images (on any platform).


you could use my nice plug-in 2lz3 for MC (and/or 2lz2 for Rev)  
which

supplies some DnD scripts for newly created stacks (and much more :-).

Or check my Drag and Drop Lite stack, available via Rev-online.


Ideas?


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: drag and drop image import?

2005-09-06 Thread Chipp Walters

Try this:

Create a blank image object on your stack. Set the lockLoc of it to 
true. Set it's script:


on dragenter
  set the acceptdrop to true
end dragenter

on dragDrop
  get the dragdata
  if it is not empty then
put it into tFile
if char -4 to -1 it is .jpg then
  set the filename of me to it
end if  
  end if
end dragDrop

That should get you started :-)

best,

Chipp


Eric Engle wrote:

I would like to be able to drag an image to a metacard stack, drop the image,
and have the stack recognize it as an image and import it. 


I have no idea the properties if that is even possible, I sort of doubt it. I
could script opening a directory and importing the image no problem, or even a
whole folder of images. But what I've not yet figured out is whether there is
any way to poll the cursor for dragged images (on any platform).

Ideas?




__
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard




___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: Drag and drop (2.4)

2001-07-25 Thread Jeanne A. E. DeVoto

At 4:29 PM -0700 7/24/2001, Geoff Canyon wrote:
I understand that -- I'd just like another way to cancel a
drag and drop (again, at the OS level -- not suggesting MC
try to set a new standard here. If the thing being dragged is
small, it can be hard to hit.

Tip: You can standardly cancel a drag (on MacOS) by dragging up into the
menu bar. Just tried it in b4, and it looks like it doesn't do this -
instead it appears to drag to the closest point inside the field.

I'd suggest the drag should be canceled when you drop outside the field,
with the special cursor canceled when the mouse moves outside the field.
(Later on when field-to-field drags are possible, this would turn into
outside any eligible field.)

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Drag and drop (2.4)

2001-07-24 Thread Geoff Canyon

At 10:59 AM +0100 7/24/01, Dave Cragg wrote:
In the current beta, after selecting text, clicking down on the selection 
*immediately* switches to the Drag and Drop cursor, and any subsequent dragging of 
the mouse will move the selected text.

Isn't this the way it happens everywhere? On the Mac, in Eudora, iCab, and the 
NotePad, it does.

regards

Geoff

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Drag and drop (2.4)

2001-07-24 Thread Dave Cragg

At 8:39 am -0700 24/7/01, Geoff Canyon wrote:
At 10:59 AM +0100 7/24/01, Dave Cragg wrote:
In the current beta, after selecting text, clicking down on the 
selection *immediately* switches to the Drag and Drop cursor, and 
any subsequent dragging of the mouse will move the selected text.

Isn't this the way it happens everywhere? On the Mac, in Eudora, 
iCab, and the NotePad, it does.

You're right. I should have done my homework more thoroughly.

However, all the serious text editing tools I use (word processors, 
graphic tools) have an option to turn off Drag and Drop, or allow use 
of a modifier key to switch it on. And, with one exception, they all 
show an outline box as you drag the text, making it more obvious what 
you are doing before it's too late.

Personally, I just don't like Drag and Drop as a text editing method. 
Once you start dragging, you're in a kind of no-man's-land with a 
live bomb where you can't simply abort the mission. You've got to 
drop it somewhere. But if no one else here is bothered, then I guess 
the users of my programs won't complain either.  But I feel I'm going 
to be in the position of making software that I wouldn't be 
comfortable to use myself.

Cheers
Dave Cragg

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Drag and drop (2.4)

2001-07-24 Thread Geoff Canyon

At 8:52 PM +0100 7/24/01, Dave Cragg wrote:
Personally, I just don't like Drag and Drop as a text editing method. Once you start 
dragging, you're in a kind of no-man's-land with a live bomb where you can't simply 
abort the mission. You've got to drop it somewhere. But if no one else here is 
bothered, then I guess the users of my programs won't complain either.  But I feel 
I'm going to be in the position of making software that I wouldn't be comfortable to 
use myself.

I know that feeling of whoops, now what do I do with _this_? It would be nice if 
there were a way to cancel a drag. Of course, that's an OS issue, not a MetaCard issue.

regards,

Geoff


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Drag and drop (2.4)

2001-07-24 Thread Geoff Canyon

At 4:58 PM -0500 7/24/01, Jacqueline Landman Gay wrote:
Geoff Canyon wrote:

 I know that feeling of whoops, now what do I do with _this_? It would be nice if 
there were a way to cancel a drag. Of course, that's an OS issue, not a MetaCard 
issue.

If you drop the text anywhere within the original selection, it should
all just go back where it was.

I understand that -- I'd just like another way to cancel a drag and drop (again, at 
the OS level -- not suggesting MC try to set a new standard here. If the thing being 
dragged is small, it can be hard to hit. 


I've gotten very spoiled with drag and drop -- I use it all the time.
Cutting and pasting seems like too much work to me now. I was happy to
see it appear in MC.

Agreed. I think drag and drop is great, and really important to MC. I'd rank it right 
alongside a multi-column listbox for developing professional applications.

regards,

Geoff


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Drag and Drop

2001-03-28 Thread Phil Davis


- Original Message -
From: "Simon Lord" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 3:17 PM
Subject: Drag and Drop


 Does MC support dragging an image, text file or folder onto a field
 or button in a open stack?  Ideally, I'd like to drag a set of images
 onto a button or field and have the stack categorize them via a
 custom script.  I'd also like it to work from the desktop of any
 platform so using an external is out of the question.


This would be nice. So how would it work, anyway?


DISCLAIMER: I have no idea how difficult it would be to implement what I'm
talking about here. This is just an idea. Some other approach may be a dozen
times better.


What if MC had a new "fileDrop" message? It could be sent to the topmost
control whose rectangle contained "the dropLocation" (a new prop or func).

SYNTAX:
on fileDrop

PARAMETERS:
A list (or array?) containing one multi-item line of info per dropped file
- item 1 = file type ("text",...)
- item 2 = file location (path or url)

EXAMPLE:
-- text field handler example

on fileDrop pDropFiles
  -- hide the changes until done
  lock screen
  put text of me into tOriginalText
  put empty into me

  -- put new text (if any) into field
  repeat for each line tFileDescription in pDropFiles
if item 1 of tFileDescription  "text" then next repeat
put url ("file:"  item 2 of tFileDescription) after text of me
  end repeat

  -- restore old text if no new text was dropped
  if text of me = empty then
put tOriginalText into me
  end if

  -- show the completed changes
  unlock screen
end fileDrop


Food for thought.
Phil Davis

 --


 Cheers,
 Simon

 All your .com .net and .org domains for only $14.50 each.
 Get them while they last... http://www.amigo-3.com/hosting/

 --
 "The great discoveries in science are not punctuated by 'Eureka! I've
 found it!' but rather "Hmmm,that's funny" Isaac Asimov

 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.