Re: Image control in a Background

2014-06-26 Thread Simon
Hi Vaughn, I'm glad to hear you got it working. The following is opinion and you may ignore it. I think you could benefit by going to Jacque's site and reviewing the stacks: http://www.hyperactivesw.com/revscriptconf/scriptingconferences.html There are also the forums: http://forums.livecode.co

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi Simon This is a real pleasure to say it is working as designed now. Your a real wizard at scripting. Looking at this from start to finish I can say I have learned a lot about the image control, but more over I have a better perspective on how to work to find solutions in scripting. Thanks for y

Re: Image control in a Background

2014-06-26 Thread Simon
Yes, if there is no file "thePath" And I think we've discussed enough why this happens. So to fix it so that it doesn't show an image at all if there is no file "thePath": if there is a file the short id of this card then put (specialFolderPath ("documents") & "/photos/" & the short ID of this c

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi Simon I used the script in a button a aligned and edited as shown: The image was added from the button to the image control. But all the cards in the stack now have the last added image. This is where I was a few days ago where the script did this same thing? Did I edit it wrong? *on* mouseUp

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi Simon OK, thanks for the assistance. I will try the script in a button on the card. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.

Re: Image control in a Background

2014-06-26 Thread Simon
Hi Vaughn, Nope I don't need to see the stack. Everything is running correctly here. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680678.html Sent from the Revolution - User mailing list archive at Nabble.com.

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi Simon The original email had a on OpenCard Stack script and a script in the image control to manage the card image.. The button on the buyer's order "Button" is my script test. The black buttons are the main buttons. If you send me an email address I will send you the stack. Thank you Vaugh

Re: Image control in a Background

2014-06-26 Thread Simon
Vaughn Clement wrote > Hi Simon > I aasume that the current stack script is replaced with your card script? errr... you are confusing me, I don't have a card script. I posted a button script. Your original card script was ok. Simon -- View this message in context: http://runtime-revolution.27

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi Simon I aasume that the current stack script is replaced with your card script? On Thursday, June 26, 2014, Vaughn Clement wrote: > Hi Simon > > Let me try this to test my stack for errors. > > On Thursday, June 26, 2014, Simon > wrote: > >> Yep >> >> on mouseUp >>--/ the image from mob

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi Simon Let me try this to test my stack for errors. On Thursday, June 26, 2014, Simon wrote: > Yep > > 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 -1,-1

Re: Image control in a Background

2014-06-26 Thread Simon
Yep 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 -1,-1 set the vis of the templateImage to false --NEWLINE --delete file (specialFolderPath("documents

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi Simon Is this the email: Hi Vaughn, Aside from a spelling mistake just add parentheses around all the folder paths e.g. put (specialFolderPath("documents") & "/photos/" & the short ID of this card) into thePath and then delete the current filename on mouseUp --/ the image from mobilePickPh

Re: Image control in a Background

2014-06-26 Thread Simon
Hi Vaughn, You did see that I posted everything was working after a few small changes in your original script? I never received an answer that you tested it and it didn't work for you. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Ba

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi Simon I really don't understand the image control in a background group yet. I just added a new blank card with the background group and it opened with the last image that was edited on an existing card. I am just not grasping the group and control logic to make it do what I am trying to do? T

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi Simon I was testing to see what might work to finish adding the image without having to leave the card and return to trigger the openCard script again? I thought a button script "Update Image" button might trigger the update? I used a portion of the open card script thinking it would work. Sin

Re: Image control in a Background

2014-06-26 Thread Simon
Hi Vaughn, Still not clear on what you are doing because it looks like you are just repeating the openCard script from your original posting, so... on mouseUp openCard end mouseUp You should not see anything happen because it just loads the same image in. Unless I read this too quickly. Simon

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
Hi This morning I did some testing to address the image updating in the current card in the image control and did not come up with a solution that worked. I have the On OpenCard script that is working to add the image to the image control, and as before the on OpenCard script cannot update the im

Re: Image control in a Background

2014-06-25 Thread J. Landman Gay
That's good to know. My app is desktop only and it must be different there. Thanks for the heads up. On June 25, 2014 4:51:44 PM CDT, Simon wrote: >Hi Jacque, >"But for image objects it isn't needed, and you can omit that >instruction." >Actually it was the only way to get the script to work

Re: Image control in a Background

2014-06-25 Thread Vaughn Clement
Hi So many great suggestions, I am pleased to see the variety of solutions. Scott pointed out that LC has many ways to be coded and it is the designers choice. Now I need to finish testing to see if I can get the desired result. I have a lot to consider and to try each suggestion to see what work

Re: Image control in a Background

2014-06-25 Thread Simon
Hi Jacque, "But for image objects it isn't needed, and you can omit that instruction." Actually it was the only way to get the script to work on mobile when I actually put it on my device. You are correct in that aside from the small errors the code should run perfectly. I figured it had something

Re: Image control in a Background

2014-06-25 Thread J. Landman Gay
On 6/25/2014, 9:56 AM, Vaughn Clement wrote: Very interesting link you included. The stack is another great reference material that is undocumented. The User Guide is often overlooked. A pretty good explanation of groups and backgrounds, and their differences and behavior, begins on page 107

Re: Image control in a Background

2014-06-25 Thread Vaughn Clement
Hi Simon If you read the reply to Scott you will see the full description of the solution I am trying to come up with. On Wednesday, June 25, 2014, Simon wrote: > Here: > "on mouseUp >--/ the image from mobilePickPhoto uses the template image construct >--set it off screen so we don't s

Re: Image control in a Background

2014-06-25 Thread Simon
Here: "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 -1,-1 set the filename of image "imageField1" of this card to "" " Now as to why that works I didn't

Re: Image control in a Background

2014-06-25 Thread Vaughn Clement
Hi Simon Very interesting link you included. The stack is another great reference material that is undocumented. It only took me about three minutes to understand what he was trying to accomplish here. I did a version similar to this in FileMaker while back so that I could do quick searches by a w

Re: Image control in a Background

2014-06-24 Thread Simon
Hi Vaughn, First off "The answer I get is it just takes a long time to learn?" No, but I understand that if you have been a programmer using another language then it is more difficult. Lots of times I just think of a word to describe what I want to do and there it is in the dictionary. This plugin

Re: Image control in a Background

2014-06-24 Thread Scott Rossi
Vaughn: I can't tell if you understand the basics of groups/backgrounds, so apologies if this is redundant for you. First, try to forget anything Hypercard related and start over. In fact, it will probably help you ignore the term "background" and consider groups only (the terms "group" and "bac

Re: Image control in a Background

2014-06-24 Thread Vaughn Clement
Hi Your comments: The "then" is superfluous, so its removal shouldn't affect anything. A "then" can only occur at the end of a line that begins with "if". The engine must be ignoring the extra "then" because it isn't throwing an error. At any rate, you don't need it. Question: Not new to coding b

Re: Image control in a Background

2014-06-24 Thread J. Landman Gay
On 6/24/2014, 10:35 AM, Vaughn Clement wrote: I am somewhat closer to the solution? I tested the correction that J. Landman Gay suggested where I remove the "then" at the end of the this line: "set the defaultfolder to specialFolderPath ("documents") & "/photos/" then <--" This had the effect of

Re: Image control in a Background

2014-06-24 Thread Vaughn Clement
Hi I am somewhat closer to the solution? I tested the correction that J. Landman Gay suggested where I remove the "then" at the end of the this line: "set the defaultfolder to specialFolderPath ("documents") & "/photos/" then <--" This had the effect of not updating the image in any card. When I

Re: Image control in a Background

2014-06-23 Thread Simon
Hi Vaughn, Did you get this sorted out? > When I edit the script to add the " EXAMPLE; put url ("file:" & > specialFolderPath("engine") & slash & "foo.txt") into tFileContents foo.txt has to be in the Copy Files of the standalone settings. (We're talking mobile right?) "...why would it

Re: Image control in a Background

2014-06-23 Thread Vaughn Clement
Hi I am trying to understand the usage of a image control when it is used in a group background: 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

Re: Image control in a Background

2014-06-21 Thread Vaughn Clement
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 it

Re: Image control in a Background

2014-06-20 Thread Vaughn Clement
Hi Thanks for the help, my dyslectic eyes are subject to misspelling and not even able to see the error. Great for scripting right! I've lived with it all my life? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/

Re: Image control in a Background

2014-06-20 Thread Simon
Hi Vaughn, Aside from a spelling mistake just add parentheses around all the folder paths e.g. 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

Re: Image control in a Background

2014-06-20 Thread J. Landman Gay
On 6/20/2014, 10:23 AM, Vaughn Clement wrote: The image control is supposed load when the card opens and the last photo is to be displayed? > *on* openCard *set* the defaultfolder to specialFolderPath ("documents") & "/photos/" *--answer the files* *if* the number of this car