Here's an example of how I generate the icon, and all the ways that this doesn't work:
var /icon/dynamic_icon = icon('some_file.dmi', "icon_state", NORTH)
winset(src, "control_id", "image=[dynamic_icon]")
winset(src, "control_id", "image='[dynamic_icon]'")
winset(src, "control_id", "image=\ref[dynamic_icon]")
winset(src, "control_id", "image='\ref[dynamic_icon]'")
src << browse_rsc(dynamic_icon, "test.png")
winset(src, "control_id", "image='test.png'")
None of those file attempts cause errors or any other odd behavior, except that they simply don't work. As it stands, I don't see any way to set a button's image parameter to a dynamically generated image.
Anyone else have any ideas?
[link]