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         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
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

Reply via email to