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

J. Landman Gay jacque at hyperactivesw.com
Fri Jun 24 22:40:48 EDT 2011


On 6/24/11 8:58 PM, Chipp Walters wrote:
> 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 ;-)
>

Try:

   get the long name of img id 21234

or:

   get the long name of img id (the icon of btn "hello")

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list