How to handle one images with many images inside

Devin Asay devin_asay at byu.edu
Tue Jul 28 11:23:50 EDT 2009


On Jul 28, 2009, at 8:21 AM, Josep wrote:

>
> Hi List,
>
> I want to customize the buttons and I found some resources images in  
> png
> that inside the file have the three status for the button. Now I cut  
> and
> export to three diferents files each of the status images and asign  
> them.
> The question is if is posible handle in some way the dinamic asign  
> of one
> part of the image to the status of the button. I don't know if I  
> explain
> myself... :)

Josep,

I don't think it can be done dynamically. When you assign an image to  
a button as an icon, the button will display the entire image. The  
best you could do is to write a handler that would dynamically split  
the image into separate image objects within the stack.

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list