Set the icon to (icon of another stack)
Paul Claude
paulclaude at postino.it
Wed Jan 4 08:44:02 EST 2006
> I made things far too much complicated :-)
>
> put image ID <ID> of stack "x3" into image <Image Name> is enough ;-)
>
Eric, the problem was another:
set the icon of btn x of stack X1 to (image ID <ID> of stack "x3")
doesn't works if also in stack X2 there is an image with the same ID:
Revoultion loads the image of X2 in place of the one of X3, also if these
images have differents names.
> Unfortunately, you're right, Paul. If you have two images with the same ID
> open at the same time, you can't assign an icon to a button by ID and be
> able to clearly pick which one you want. So you either need to renumber the
> IDs (temporarily), or only open one stack at a time and make sure the
> destroyStack property is turned on so that it is purged from memory when it
> closes.
>
Thanks, Ken, now I can surrender...
More information about the use-livecode
mailing list