Re: imageSource Stored in Destination Stack

2006-01-05 Thread J. Landman Gay

Kathy Jaqua wrote:

Thanks Jacqueline,

 I have a field with about 350 ImageSources.
 I use the following format:
 set the clipboardData["image"] to image gImage --
(this is the image the user picked)
but on a Paste into the new stack I lose the image
name.


That doesn't matter, because the imagesource references by ID.


If I get the selection of an imageSource from the
field and go to a new stack
should I:
1. paste the original image and then hide it? Is it
the same image as the imageSource since I have lost
the image name on the paste. 


You could do it that way, but the ID will change. The name doesn't 
matter, but you'll need to get the ID of the last image after the paste 
happens. Then use that number of build a new imagesource tag in the field.




2. then paste (at the mouse click) the Imagesource
into the new field?


Yes, but it won't work until you change the ID that the imagesource is 
using. It might be easier to just build a new imagesource tag using the 
correct ID number and insert that into the htmltext before setting the 
field to use the new text.




What is the difference between 'copy img' and
'clipboardData["image"]'?


The "copy  to " command bypasses the clipboard 
entirely and duplicates the image directly to the new location. Current 
clipboard contents are not disturbed. Setting the clipboardData does 
alter the clipboard contents and requires you to paste the content in 
order to get the image duplicated to the new location. You can use 
either method. One advantage to the "copy to location" command is that 
if the image that you are copying is already invisible, it will remain 
invisible after it is duplicated, so the user won't see the image 
flashing on and off as they would if you paste/hide it.



--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: imageSource Stored in Destination Stack

2006-01-04 Thread J. Landman Gay

Kathy Jaqua wrote:
Hi Jim 


Good Idea but it is not what I need.

I actually need the original copied then pasted
imageSource saved in the image library at the time it
is pasted. (It must be a picture of the imageSource). 
I don't want an image tag or a reference. 
(OK.., maybe I don't fully understand image tags :-)


What Jim means is that the imagesource in the field isn't really the 
image itself, it is just a tag -- a description -- of the image's 
location. This is exactly how icons in buttons work too; a button 
doesn't contain an image, it just references one that is stored in the 
stack. Copying the field's htmltext to another field will move the tag 
along with the text to the new field, but the image that is stored in 
the original stack doesn't automatically move to the new stack. You will 
have to script the duplication of the image if the new stack doesn't 
already contain it.


The script that copies the field text must also do something like this:

  copy img "myImg" of this cd of stack "originalStack" to this card

Then set the htmltext of the field, and the imagesource will have an 
image available to use.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: imageSource Stored in Destination Stack

2006-01-04 Thread Jim Ault
On 1/4/06 7:41 PM, "Kathy Jaqua" <[EMAIL PROTECTED]> wrote:
> But, if I select the imageSource in a filed and paste
> it into a field in another stack I am unable to get
> the image stored in the Image Library of the
> destination stack.

I think that if you look at the field 'image' it is actually an  tag.

--In the message box type
put the htmltext of field myField
-- to see the behind-the-scenes stuff (I know, techie speak)

The  tag requires a reference and this may be what you need to update
somehow, or make a copy of the image that can be referenced.

Hope this helps.

Jim Ault
Las Vegas


On 1/4/06 7:41 PM, "Kathy Jaqua" <[EMAIL PROTECTED]> wrote:
> I have a group of imageSources in a field.  I can put
> the clicked on image on the clipboard. I can also copy
> the imageSource as an image to another stack.
> 
> But, if I select the imageSource in a filed and paste
> it into a field in another stack I am unable to get
> the image stored in the Image Library of the
> destination stack. ( I can not reference the images as
> to the nature of my App.)
> 
> Any Ideas?
> 
> Kathy Graves Jaqua
> A Wildest Dream Software
> [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution