Can I use grouped objects as an icon button?

Richard Gaskin ambassador at fourthworld.com
Sat Mar 24 12:52:44 EDT 2012


Klaus wrote:
> ...
> lock screen
> import snapshot from rect(the rect of grp "DRAW fake") of grp "DRAW fake"
> put the id of last img into tNewIcon
> hide last img
> set the icon of btn "your button here..." to tNewIcon
> unlock screen
> ...

You can also reuse an existing image by replacing its contents with an 
"export snapshot" to a variable:

   export snapshot from grp "Draw Fake" to tVar as png
   put tVar into img "whatever"


-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list