Anyway to find the long id of an image which you know the id for?

Chipp Walters chipp at
Fri Jun 24 21:58:31 EDT 2011

You can set the icon of a button to an image ID. But if you want to resize
the button based on the size of the image, you need to find a way to
reference the image. Of course the image could be in the topStack, and this
would be no problem. But if not, the following throws an error.:

set the icon of btn "hello" to 21234
put the formattedheight of image id 21234 into tH

I suspect one can 'walk' all open stacks, and perhaps that's what I'll end
up doing, but was hoping someone had an easier solution-- or the stack
walking code ;-)

Chipp Walters
CEO, Shafer Walters Group, Inc.

More information about the Use-livecode mailing list