Set the icon to (icon of another stack)

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Jan 4 08:53:09 EST 2006


Sorry: you will have rectified:

set the icon of btn pButton to 250000

Le 4 janv. 06 à 14:51, Eric Chatonet a écrit :

> Then use the previous script a bit modified:
>
> on SetImage pID,pButton,pStackName
>   local tFlag
>   ------
>    set the cantAbort of this stack to true
>    if there is an image ID pID of stack pStackName then
>     set the ID of image ID pID of stack pStackName to 250000
>     put true into tFlag
>    end if
>    set the icon of btn pButton to image ID 250000 of stack pStackName
>    -- or what you want :-)
>    if tFlag then set the ID of image ID 250000 of stack pStackName  
> to pID
>    set the cantAbort of this stack to false
> end SetImage
>
> As Ken told you too and as far as I know, you have not another  
> solution.
>
> Le 4 janv. 06 à 14:44, Paul Claude a écrit :
>
>>> 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.

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





More information about the use-livecode mailing list