Image in pop-up window
Shao Sean
shaosean at unitz.ca
Thu Jan 24 01:07:01 EST 2002
on mouseUp
local vTempWindowID
lock screen
if ("picturePalette" is among the lines of the openStacks) then
clone stack "picturePalette"
put it into vTempWindowID
set the title of vTempWindowID to "Viewing Picture:" && the short name
of me
else
go invisible to stack "picturePalette" in a new window
set the title of stack "picturePalette" to "Viewing Picture:" && the
short name of me
show stack "picturePalette"
end if
unlock screen
end mouseUp
you may also want to look at putting it into a function and having the
buttons call the function passing their short name as a parameter..
this code may or may not work 100% with copy-paste, so give it a test and
you may need to tweak it a little..
More information about the use-livecode
mailing list