Re: Image control in a Background

2014-06-26 Thread Simon
se, either place is fine for you to ask questions. Lots of great material here: http://lessons.runrev.com/ Regards, Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680685.html Sent from the Revolution - User ma

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
ot;imageField1" of this card to thePath > else ---here is a new line > set the filename of image "imageField1" of this card to "" ---here is a new > line > end if > > Update your openCard script > > Simon > > > > -- > View this messag

Re: Image control in a Background

2014-06-26 Thread Simon
ur openCard script Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680681.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailin

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
set the loc of image "imageField1" to the loc of group "picgroup" > --/ show the image on the card / > set the filename of image "imageField1" of this card to thePath > --/ destroy the image imported from the library / > delete the

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
ng 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 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 Nabbl

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
;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.278305.n4.nabble.com/Image-control-in-a-Background-tp46

Re: Image control in a Background

2014-06-26 Thread Simon
-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680674.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsu

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
;> set the loc of image "imageField1" to the loc of group "picgroup" >> --/ show the image on the card / >> set the filename of image "imageField1" of this card to thePath >> --/ destroy the image imported from the library /

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
d from the library / > delete the last image of this card >end if >unlock screen > end mouseUp > > There is another change I made in there as well. > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4

Re: Image control in a Background

2014-06-26 Thread Simon
age "imageField1" of this card to thePath --/ destroy the image imported from the library / delete the last image of this card end if unlock screen end mouseUp There is another change I made in there as well. Simon -- View this message in context: http:

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
> Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680668.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > __

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

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

Re: Image control in a Background

2014-06-26 Thread Vaughn Clement
pt 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 > > > > -- > View this message in context: > ht

Re: Image control in a Background

2014-06-26 Thread Simon
-- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680665.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode

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
found > set the loc of the templateImage to -1,-1 > Makes it very slow in coming out of the photo library > set the vis of the templateImage to false > Is much much faster. Both of these things are mobile related only. > > Or... it's just me. > > Simon > > &

Re: Image control in a Background

2014-06-25 Thread Simon
ile related only. Or... it's just me. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680640.html Sent from the Revolution - User mailing list archive at Nabble.com.

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
it appears to be. The test would have been to throw in a > "wait 1 (or can it be 0?) milliseconds with messages" into that script. > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-

Re: Image control in a Background

2014-06-25 Thread Simon
Now as to why that works I didn't test if it was a screen refresh problem which is what it appears to be. The test would have been to throw in a "wait 1 (or can it be 0?) milliseconds with messages" into that script. Simon -- View this message in context: http://runtime-

Re: Image control in a Background

2014-06-25 Thread Vaughn Clement
Now I'm not sure what impact on performance of using it when all the images > get updated but it probably doesn't matter as I think the things like that > are only set when the card opens. > If it does then yes, you have to break the image out of the group. > > Simon > > > &

Re: Image control in a Background

2014-06-24 Thread Simon
ike that are only set when the card opens. If it does then yes, you have to break the image out of the group. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680627.html Sent from the Revolution - User mailing list

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
he image over to specialFolderPath("documents") and read it from there. Maybe I'm misunderstanding all this. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680606.html Sent from the Revolution - User mail

Re: Image control in a Background

2014-06-23 Thread Vaughn Clement
2014 at 12:16 PM, Simon wrote: > >> 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

Re: Image control in a Background

2014-06-21 Thread Vaughn Clement
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 -1,-1 > set the filename of image &q

Re: Image control in a Background

2014-06-20 Thread Vaughn Clement
Up >--/ 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 "" > &g

Re: Image control in a Background

2014-06-20 Thread Simon
ePickPhoto 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 "" Simon -- View this message in context: http://runti

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

Image control in a Background

2014-06-20 Thread Vaughn Clement
Hi All I asked this question recently and I did not get any responses. I have a substack with a background group where there is an Image Control is being populated using the mobilePickPhoto "library" The image is added to the control correctly and displays, but if I leave the card and return th