How about trying something like:
set the icon of btn "myButton" to the short ID of image "imageForIcon" of cd "MyIcons" of stack "myStuff"
(watch out for the line wrap)


Cheers,
Sarah

On Thursday, September 11, 2003, at 08:41 am, Graham Samuel wrote:

I'm trying to set the icon of a button to an image in a different substack from the one where the button is. I note from the TD that this is possible, but it appears that such an image must have a unique name. I mean the script has to be like

set the icon of btn "myButton" to "imageForIcon"

The engine then goes and finds "imageForIcon" and uses its unique ID to set the icon of the button.

It appears you can't write

set the icon of btn "myButton" to image "imageForIcon" of cd "MyIcons" of stack "myStuff".

So the name of the image has to be unique in the whole app. Am I right about this, and if so, are there any other situations where RR breaks the ordinary scope rules, where a name is in principle qualified by group, card and stack names (some of which may in many circumstances remain implied)? I have a feeling the issue may also apply to objects in nested groups, but I'm not sure.

Graham
--
-------------------------------------------------------------------
         Graham Samuel / The Living Fossil Co. / UK & France
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution




_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to