Button Icon IDs

J. Landman Gay jacque at hyperactivesw.com
Fri Oct 24 16:32:56 EDT 2014


On 10/24/2014, 12:22 PM, Peter Haworth wrote:
> When setting the icon of a button, there is a hierarchy of locations that
> LC uses to find the image.  However, if I subsequently try to reference the
> image id in a script, LC won't find it unless I fully qualify where it is
> (unless it's on the current card of course).
>
> I want to set the height and width of the button to the height and width of
> its icon image.  Is there any way to find the location of the icon image
> from its ID?

If it's in the same stack, you should be able to:

   get the long name of control id x

But if it's in another stack then you need to reference the stack it's in:

   get the long name of control id x of stack y

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




More information about the use-livecode mailing list