Image control in a Background
vclement at gmail.com
Mon Jun 23 09:13:47 EDT 2014
I am trying to understand the usage of a image control when it is used in a
The issue: when I add a image from the IOS library to the BG image control
in the background it replaces the current card image and all other images
in all card backgrounds in the stack that uses that image control.
So, here is my question; when I set the special folder path and the card id
and put the last image in the control of that card ID on openCard, why
would it replace all of the images in all of the cards?
- Is there a special way to Set the image from the Photos folder in the
- Can the image control be used in a group background?
- It was suggested to use a custom property to set the image for the image
control. But, I cannot find any examples of where to script the custom
control for this purpose.
- I read about the custom control, searched the dictionary, viewed all of
the RunRev lessons on using the image control, and the User Guide, the IOS
reference document. I still have not found the answer to the issue I need
Apps by Vaughn Clement (Support)
FaceTime: vclement at gmail.com
LogMeIn also avaialble
Call on "ooVoo" at address: vaughnclement or 9282549062
On Sat, Jun 21, 2014 at 5:41 PM, Vaughn Clement <vclement at gmail.com> wrote:
> Hi Simon
> I found the following in the dictionary:
> iOS Note: iOS imposes strict controls over what you can and cannot
> access. Each application in iOS is stored in its own 'sandbox' folder
> (referred to as the home folder). An application is free to *read* and
> *write* files within this folder and its descendants, but it is not
> allowed to access anything outside of the 'sandbox'.
> *Examples: *
> set the defaultFolder to specialFolderPath("desktop")
> put specialFolderPath("asup") into appSupportFolder
> put url ("file:" & specialFolderPath("engine") & slash & "foo.txt") into
> set the folder to specialFolderPath("engine") & slash & "myimages"
> put the files into tMyImages
> Use the *specialFolderPath* function to place preferences in the
> Preferences folder, save files to the Documents folder, find out which
> files are installed in the System or Fonts folders, and so on.
> folderIdentifier - One of the items below.
> ******** When I edit the script to add the " EXAMPLE; put url ("file:" &
> specialFolderPath("engine") & slash & "foo.txt") into tFileContents
> the script gives and error.
> J. Landman Gay
> I edited the spelling error, and the image is now retained in the group
> image control for the card it was added too. The problem is all of the
> cards now have the same image that was added on the first card? The image
> on each card background needs to retain the one that was added on that
> card. Is the a setting or a script issue?
> Thank you
> Vaughn Clement
> Apps by Vaughn Clement (Support)
> Skype: vaughn.clement
> FaceTime: vclement at gmail.com
> LogMeIn also avaialble
> Call on "ooVoo" at address: vaughnclement or 9282549062
> Ph. 928-254-9062
> On Fri, Jun 20, 2014 at 12:16 PM, Simon <simon at asato-media.com> wrote:
>> Hi Vaughn,
>> Aside from a spelling mistake just add parentheses around all the folder
>> put (specialFolderPath("documents") & "/photos/" & the short ID of this
>> card) into thePath
>> and then delete the current filename
>> on mouseUp
>> --/ the image from mobilePickPhoto uses the template image construct
>> --set it off screen so we don't see ift flash /
>> set the loc of the templateImage to -10000,-10000
>> set the filename of image "imageField1" of this card to ""
>> View this message in context:
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
More information about the Use-livecode