Set the icon to (icon of another stack)

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Jan 4 08:04:42 EST 2006


Hi Paul,

Well :-)
Sorry if I misunderstood.
You could try this tested workaround:

on SetImage pID
   local tFlag
   ------
    if there is an image ID pID then
     set the ID of image ID pID to 250000
     put true into tFlag
    end if
    put image ID pID of stack "X3" into image "Template"
    -- or what you want :-)
    if tFlag then set the ID of image ID 250000 to pID
end SetImage

Le 4 janv. 06 à 13:44, Paul Claude a écrit :

>> Eric Chatonet
>> Images are the only objects the IDs of which can be changed:
>> Just change the IDs of some images to avoid any conflict :-)
>> And keep on hand the IDs list :-)
>>
>> In order to be meticulous, you can store all images in a stack or a
>> substack, or put them onto a specific card dedicated to them.
>
> Right, Eric, it's a Columbus egg, but you must consider that I  
> cannot change
> those Ids and that stack X2 and X3 are not mine and they are  
> changing often.
> So I need another solution.

Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ 
----------------------
http://www.sosmartsoftware.com/    eric.chatonet at sosmartsoftware.com/





More information about the use-livecode mailing list