Re: Setting script in object not working...

2012-03-22 Thread Ken Corey
On 21/03/2012 22:01, Glen Bojsza wrote: I have a stack where I generate a series of images. I then set the script of each image to a script that is stored in a custom property. I'm *very* new to all of this but...isn't this when the 'behavior' field would come in handy? Put the script into

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Well it turns out that Jacque is correct it was the script limits... I have resolved the first half of my problem as Mike was also correct on the use of "target" for the group. So, I am over the first hurdle with everything working the second hurdle on how to handle a single new image that is not

Re: Setting script in object not working...

2012-03-21 Thread Mike Bonner
With the mouseup handler at the grouplevel, you can look at 'the target' to determine which image has been clicked. >> The question is how to determine the image below the mouse when the user does click? On Wed, Mar 21, 2012 at 6:48 PM, Glen Bojsza wrote: > I tried a variation of that but for

RE: Setting script in object not working...

2012-03-21 Thread Ralph DiMola
Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Glen Bojsza Sent: Wednesday, March 21, 2012 8:48 PM To: How to use LiveCode Subject: Re: Setting script in object not worki

Re: Setting script in object not working...

2012-03-21 Thread J. Landman Gay
On 3/21/12 7:02 PM, Glen Bojsza wrote: when I try to set the script of the image with the following text in the field it does nothing (does not set the script of the image at all??) on mouseUp lock screen if exists(img tempPlot) then delete img tempPlot copy me paste set the nam

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
I tried a variation of that but for some reason the images aren't taking the script consistently? It's like the images sometimes work when they do get a script and other times it takes several clicks before the script is executed? I was thinking if there was a way to determine if the user clicks

Re: Setting script in object not working...

2012-03-21 Thread Mike Bonner
Might set up a hidden image object with the script already there and just clone or copy it. That way you don't have to worry about whether its a scriptlimits issue if nothing else. On Wed, Mar 21, 2012 at 5:12 PM, Alex Tweedly wrote: > I'd try adding your 'start' and 'test' buttons to the real s

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Further testing points to my main project stack has the problem... I rebuilt a smaller stack that creates an image, and derives it's script in the same fashion as my main stack and it works without any issues. It's going to be a long night... thanks for the ideas and help but I have something that

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Here is where it gets interesting... I created a couple of fields and test buttons one field I add what I want as a script and the button beside it sets the script of the image (just doing one for now) the other button reads what the script is from the image into the field beside it ; also the f

Re: Setting script in object not working...

2012-03-21 Thread Alex Tweedly
I'd try adding your 'start' and 'test' buttons to the real stack, and see if they work there. If they do, add an image 'test1' and have the 'start' button set its script as well. If that works, try doing that *after* you have created all the other images (in case its an issue with total number o

Re: Setting script in object not working...

2012-03-21 Thread Pete
Hi Glen, I guess I'm referring to storing the script of the image, not the image itself. I'm wondering if setting the script of an object invokes a save, same for the tooltip, because you can't save data in a currently executing program. One thing for sure is that the scripts you set would not be

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Hi Pete, I am not trying to save the new images in the standalone but only show them. If the user wants to save the images they are exported as png's. But I am now certain that there is something amiss... I can set the tooltip for the images and it works fine in both ide and the application. I h

Re: Setting script in object not working...

2012-03-21 Thread Pete
Is this another manifestation of not being able to save anything in a stack in a standalone program? Pete On Wed, Mar 21, 2012 at 3:01 PM, Glen Bojsza wrote: > Hello, > > I have a stack where I generate a series of images. > > I then set the script of each image to a script that is stored in a c

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Thanks Alex, I will try the behavior path... The funny thing is I swear that this was working in earlier versions. I even created a new simple stack with two buttons and a field. the stack has a customproperty call mymessage mymessage is on mouseUp put "hello" into fld tOut end mouseUp button

Re: Setting script in object not working...

2012-03-21 Thread Alex Tweedly
Sounds like you're running into something to do with scriptlimits (though I don't see why when you have a very simple short script). It's not clear from your description whether the script you want to set is known ahead of time and simply stored in custom property, or whether it is genuinely d