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. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode