Clone image trouble?
William de Smet
williamdesmet at gmail.com
Fri Jan 2 13:37:05 EST 2009
Hi Eric and Jim,
It is so obvious it has to do with the name and of course your suggestion
works.
After playing with it I got the idea of resizing the 'stamp'.
I got a scrollbar to do this but it only works if I limit it to just one
stamp.
So I grouped the whole thing (stamp and scrollbar) and cloned it.
The cloning works of course :-) but now I am stuck with the name again.
The new grouped controlls get the same name and the resizing and dragging
doesn't work anymore.
How do I get a 'unique' name for the grouped controls while cloning the
templategroup?
Thanks!
Greetings,
William
2009/1/2 Jim Sims <sims at ezpzapps.com>
>
> On Jan 2, 2009, at 4:43 PM, William de Smet wrote:
>
> Hi there all,
>> For my son I am starting to create an app in which he use 'stamps' to
>> create
>> his own drawing.
>> So far I have some small icons (graphics) and a dummy graphic.
>> I started with the following code:
>>
>
> <snip>
>
> delete image "dummy" (I put this in the dummy image as well)
>>
>> ---
>>
>> but then the original dummy graphic is deleted and not the cloned one
>> probably because the cloned one is the active image?
>>
>> What am I missing?
>>
>> I want the dummy image to stay as dummy/template image.
>>
>
>
> From the docs:
> If the object is a control, its copy is placed on the current card, 32
> pixels below and to the right of the original object. The copy's name and
> other properties are the same as those of the original.
>
>
> Maybe use:
>
> on newImage
> -- assign name for new image here
> end newImage
>
> That help?
>
> sims
>
> sims at ezpzapps.com
> Skype: sims.jim
> iChat: techietours
> ______________________
> Opportunity by Design
>
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list