Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Keith Clarke
I tried 'import' first purely because I wanted to bring the snapshot of the unopened card into the 'home' card rather than export to file, etc. There are some notes in the dictionary about setting the absolute rectangle coordinates depending on the target object - it didn't work until I defined

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread J. Landman Gay
On 4/1/11 1:42 PM, J. Landman Gay wrote: On 4/1/11 1:05 PM, Richard Gaskin wrote: Jacque wrote: While you can take snapshots of objects that aren't open, you can't take them of cards that aren't open. Cards are not objects. I was unable to get a snapshot of another card unless I went there firs

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Richard Gaskin
Jacque - I see Keith is using "import snapshot" and specifying a card. That isn't in the docs and I always got an error when I tried to specify an object with "import", I could only specify one with "export". Ah, that may be it. I almost never use "import", using "export" instead. If one suppo

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread J. Landman Gay
On 4/1/11 1:05 PM, Richard Gaskin wrote: Jacque wrote: While you can take snapshots of objects that aren't open, you can't take them of cards that aren't open. Cards are not objects. I was unable to get a snapshot of another card unless I went there first. I didn't know I couldn't do that so I

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Bob Sneidar
I wonder if this is because export snapshot puts the stack in memory, along with the first card in the stack? Try it with the second card. Bob On Apr 1, 2011, at 11:05 AM, Richard Gaskin wrote: > Jacque wrote: >> While you can take snapshots of objects that aren't open, you can't take >> them

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Richard Gaskin
Jacque wrote: While you can take snapshots of objects that aren't open, you can't take them of cards that aren't open. Cards are not objects. I was unable to get a snapshot of another card unless I went there first. I didn't know I couldn't do that so I tried it a long time ago and it seemed t

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Bob Sneidar
Welcome to the New World sir! Bob On Apr 1, 2011, at 10:30 AM, Keith Clarke wrote: > In my case, PowerPoint was my 'IDE for non-functioning wish-list-ware' for a > couple of decades . > Best, > Keith.. ___ use-livecode mailing list use-livecode@li

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Keith Clarke
Hi Jaque, Thanks for responding. This is what I ended up with for updating a single button. I'm quite pleased with the result, because, as there are 'moving parts' on the visited cards, when I return to the home screen it is updated with thumbnails reflecting the current 'just left' view of the

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Bob Sneidar
That's worth saving in my Livecode Keepers! Someday I am going to make a stack of this stuff! Bob On Apr 1, 2011, at 10:09 AM, J. Landman Gay wrote: > On 4/1/11 11:14 AM, J. Landman Gay wrote: >> >> Since you are taking snapshots of other cards and the "preopen" is for >> the control, I'm not

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread J. Landman Gay
On 4/1/11 11:14 AM, J. Landman Gay wrote: Since you are taking snapshots of other cards and the "preopen" is for the control, I'm not sure you need to wait for the control to load. I think the issue is the ID of the icon. I just tried the handler you posted and there's more wrong than just th

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread J. Landman Gay
On 4/1/11 6:31 AM, Keith Clarke wrote: Thanks Mark - that's clear. I'll move my script onto the card, use 'openCard' as its base and provide something to distract the viewer whilst the thumbnails update! Best, Keith.. It still won't work unless you use the ID of the snapshot image rather than

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Keith Clarke
Thanks Mark - that's clear. I'll move my script onto the card, use 'openCard' as its base and provide something to distract the viewer whilst the thumbnails update! Best, Keith.. On 1 Apr 2011, at 11:49, Mark Schonewille wrote: > Keith, > > On preOpen... the control or card isn't open yet and

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Mark Schonewille
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

Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Keith Clarke
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 imag