Set the icon to (icon of another stack)

Paul Claude paulclaude at postino.it
Tue Jan 3 08:09:08 EST 2006


> Hi, Paul,
> 
> Don't confuse the "script of an object in the hierarchy" with the order of
> stack windows you ³see².
> 
> Invoking 'start using' places the *stack script* of that stack in the
> *message* hierarchy, not the stack itself.
> 
> Construct a reference to a stack by name and that will be the location
> eg "image 1 of card id 1265 of stack "Image Lib People"
> 
> Also
>  if stored in a different folder use
> ³/Users/MyLogin/Documents/RevLibStacks/ImageLib.rev² for example.
> In Rev, the filePath is the location and name of the file or folder whose
> long equivalent you want.
> put the longfilepath of the filename of this stack
> If you specify a name but not a location, Revolution assumes the stack is in
> the defaultFolder.

Hi Jim,

My problem is a little different.

Think to have 3 open stacks, named x1, x2 and x3, and opened in this order.
Stack X2 and Stack X3 have two images with the same ID (i.e. 1008).

How you set the icon of a button in stack x1 with the image id 1008 of stack
x3?

1) Using: set the icon of btn y to 1008 shows the icon of stack x2
2) Using: 
set the icon of btn y to (image ID 1008 of stack thelongfilepath) shows
nothing
3) 'Start using' or 'set defaultStack' does'nt change the things.





More information about the use-livecode mailing list