Keith,

On preOpen... the control or card isn't open yet and you can't get a screenshot 
of it yet. A stacks or card needs to load completely before you can do such 
things. A very clear example is e.g. the impossibility to get the dimensions of 
a player if the movie of that player is being loaded duing a preOpenStack 
handler and the stack is invisible.

You might want to load a "please wait" picture first and load your custom image 
on openCard.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 1 apr 2011, at 12:31, Keith Clarke wrote:

> Hi folks,
> I'm working on a presentation stack, which has a home card with a set of 
> buttons with thumbnail images (as the icon) that navigate to other cards in 
> the stack. The other cards are evolving, so I'm trying to create an 
> auto-update script to renew the navigation button thumbnail icon images when 
> the home page is re-opened. I'm guessing that the script should end-up in a 
> pre-open card script and iterate through a list of buttons, but I'm trying to 
> get one button to work first.
> 
> Can anyone advise on what am I doing incorrectly with this script?
> 
> on preOpenControl
>   import snapshot from the rect of card "Example"
>   set the icon of me to it
> end preOpenControl  
> 
> Best,
> Keith..



_______________________________________________
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