Import as image as control. Where is it?

Ralph DiMola rdimola at evergreeninfo.net
Fri Apr 10 12:09:01 EDT 2015


Thanks All!! I get it now.

This works like a charm Mike.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Bonner
Sent: Wednesday, April 08, 2015 8:16 PM
To: How to use LiveCode
Subject: Re: Import as image as control. Where is it?

if the filename property is empty, store the text of the image to a property or variable, pop in your new image, then to revert, set the text of image whatever to the text you stored in the property.  If there IS a filename set, and you want to do the flippy floppy, store the filename instead, and set it back when you're done.

On Wed, Apr 8, 2015 at 1:47 PM, Klaus major-k <klaus at major-k.de> wrote:

> Hi Ralph,
>
> > Am 08.04.2015 um 20:37 schrieb Ralph DiMola <rdimola at evergreeninfo.net>:
> >
> > Klaus,
> > I don't think I get it. 2 questions:
> >
> > How is......
> > Set the filename of your image to the modified file on disk
>
> this will only reference the external image file.
>
> > Different from.......
> > put url("binfile:" & the filename of img "Your image here“) into img
> "Your image here“
>
> this will put a copy of that file on disk into the existing image 
> object (again).
> Just like „Import as control“ does.
>
> > This is for a mobile app. So even though the stack is carrying the
> weight of the imported image I still need to put the original imported 
> image into the copy file pane of the standalone setting if I want 
> change it and then return to the original image?
>
> No!
>
> Once the image has been „imported“, what: put url(„bifile: … into 
> image XYZ does) you do not need the image file, since it is not 
> referenced anymore.
>
> Hope that helps! :-)
>
> > Thanks!!
> >
> > Ralph DiMola
>
> > Subject: Re: Import as image as control. Where is it?
> >
> > Hi Ralph,
> >
> >> Am 08.04.2015 um 19:52 schrieb Ralph DiMola 
> >> <rdimola at evergreeninfo.net
> >:
> >>
> >> I have an image control that was created by "Import image as control".
> >> In some cases I want to change the image to one located on disk and 
> >> then back to the original. In the property inspector the filename 
> >> is empty. Where is the imported image and how do I reference it?
> >
> > "Import image as control“ will put a copy of the image file into 
> > your
> stack, so there is no reference to the file on disk anymore.
> >
> > Do like this:
> > 1. Set the filename of your image to the modified file on disk 2. 
> > Then
> later use the message box:
> > put url("binfile:" & the filename of img "Your image here“) into img
> "Your image here“
> >
> >> Ralph DiMola
> >> IT Director
> >> Evergreen Information Services
> >> rdimola at evergreeninfo.net
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list