Re: PDF Reader using LiveCode

2011-04-01 Thread Gerry Orkin
You can't run apps in the status bar, period. Gerry -- http://gerryorkin.com On 31/03/2011, at 2:59 PM, Jesse Sng ipeng...@mac.com wrote: On Mar 31, 2011, at 11:50 AM, Scott Rossi wrote: Recently, Jesse Sng wrote: No. There's a status bar at the top of the iPhone/iPad and I did

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

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

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

practical size limitations?

2011-04-01 Thread Louis Janus
Dear use-livecode I am beginning work on a learner's dictionary for Norwegian, and am looking into using LiveCode. A few basic questions: 1. I assume it would be best to use a database as a backend to the ultimate dictionary, but I am quite sure that I don't have the skills to set up SQLite or

Re: practical size limitations?

2011-04-01 Thread dunbarx
Hi. I don't think you need an external database. Unlike Hypercard, LC does not handle tens of thousands of cards quickly. But it can easily and instantly handle what you have in mind. Place your data in a field or custom property and load it into a variable on openstack. You might also use

Code Documentation

2011-04-01 Thread Pete
I'm at the stage in my project where I want to produce some documentation on the various handlers I've written - a few words about purpose, list of parameters and what they contain, and any returned values. I've documented all this in a comment block at the start of each handler. I know, how

Currently playing song on iPod Touch

2011-04-01 Thread Terry Vogelaar
I want to make an app that uses data from the currently playing song on my iPod Touch, like song title, artist, comments, etc. Is there a way to see data like that in a LiveCode app? Probably not 'out of the box'. Is there a workaround? I know Xcode can do it. So is there someone who can make

Re: Code Documentation

2011-04-01 Thread Trevor DeVore
On Fri, Apr 1, 2011 at 11:54 AM, Pete p...@mollysrevenge.com wrote: I'm sure I could write a script to go through all my handlers and extract the comment block but before I start down that road, are there any code documentation aids out there for Livecode? I use NativeDoc and like it a lot.

Re: Currently playing song on iPod Touch

2011-04-01 Thread Scott Rossi
Terry, please add your vote: http://quality.runrev.com/show_bug.cgi?id=9339 Best Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Terry Vogelaar wrote: I want to make an app that uses data from the currently playing song on my iPod Touch, like song title, artist,

Re: practical size limitations?

2011-04-01 Thread Pete
I don't have much experience using LC as a storage method but the manual recommends that if you have more than 2000 records to store you should consider using an external database. SQLite is not hard to learn and there are a lot of tutorials out on the web, plus free SQLite management tools. I'd

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: Bark Dark

2011-04-01 Thread Bob Sneidar
Hey pretty clever. You could even trap for newCard and deleteCard to add and delete entries in the custom Property. That way you wouldn't have to repeat through all the cards again except for maintenance. It looks like the repeat loop is getting the value of a shared field on each of the

Re: novice question re marked and customkeys

2011-04-01 Thread Bob Sneidar
Yes I did figure it out. I was getting the ID of this card, which always seems to refer to the first card that the group the button belonged to was placed on, hence always getting 1002 for the ID. Getting the name seems to do the same thing. But getting the NUMBER returns the correct result. As

Re: Bark Dark

2011-04-01 Thread Pete
Just for my own education, what is it about the standard mark and unmark commands that doesn't achieve what Tim wants to do? I might want to use those commands in the future and if they should be avoided for some reason, I'd like to know! Thanks, Pete On Fri, Apr 1, 2011 at 9:38 AM, Bob Sneidar

Re: practical size limitations?

2011-04-01 Thread Bob Sneidar
I'm a quarter Norwegian! I'd buy that! I like the idea of using an array, given that all the data you could ever conceivably have will fit into memory snugly. For a dictionary, that may not be the case. SQLite would be the way to go if not. Lots of cards, no buenos. SQL is not that hard to

Re: Currently playing song on iPod Touch

2011-04-01 Thread Peter Brigham MD
Tom McGrath put together an iTunesLibrary in LC. I can't seem to find it in my LC files, but I'm sure he would make it available to you. I used his library to make a little thing called iTunesWidget. Pop it into your plugins folder, and any time you're running in the IDE, you can open it

Re: Bark Dark

2011-04-01 Thread Jim Ault
On Apr 1, 2011, at 9:38 AM, Bob Sneidar wrote: Hey pretty clever. You could even trap for newCard and deleteCard to add and delete entries in the custom Property. That way you wouldn't have to repeat through all the cards again except for maintenance. Yes, to do a full implementation, you

Re: Bark Dark

2011-04-01 Thread Bob Sneidar
I think the idea was to have multiple values to mark cards with. Mark and unmark are one dimensional. Using the alternate method that Jim proposed, there would be no limit to the values a card could be marked with using custom handlers. Better yet, there should be a feature addition in some

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 sure

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: practical size limitations?

2011-04-01 Thread dunbarx
I know databases are the grownup way to do things. But I loaded 1,000,000 words into 1,000,000 lines of a field by generating random strings of six chars. Takes no time to do that (0.6 seconds). I retrieved a random word from that field. Takes no time at all (3 ticks). If you had a million

Re: novice question re marked and customkeys

2011-04-01 Thread Jim Ault
On Apr 1, 2011, at 9:43 AM, Bob Sneidar wrote: Yes I did figure it out. I was getting the ID of this card, which always seems to refer to the first card that the group the button belonged to was placed on, hence always getting 1002 for the ID. Getting the name seems to do the same thing.

Re: Currently playing song on iPod Touch

2011-04-01 Thread Bob Sneidar
I will say that I have had a long staning issue in Livecode where I have to hold the mouse button a bit longer for the click to register. That may be your problem. I have not troubleshot this at all, but of course the first thing to do is remove all your plugins (except the one you are testing)

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 gulp!. Best, Keith.. ___ use-livecode mailing list

Re: novice question re marked and customkeys

2011-04-01 Thread Bob Sneidar
Yes, but I was not getting the ID of the group, but the ID of this card (note currentCard is now obsolete). What is odd is that the ID of this card is 1002 no matter which card you are on, (given it still exists otherwise it would be the ID of first card of the stack) and the name of this card

Re: novice question re marked and customkeys

2011-04-01 Thread Bob Sneidar
I think the difference may have been that my button was part of a background group. Also, I locked the screen but did not lock messages. Not sure if that had anything to do with it. Also, I did not go to a card number. I used go next. Bob On Apr 1, 2011, at 10:38 AM, Jim Ault wrote: On

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

Re: novice question re marked and customkeys

2011-04-01 Thread Timothy Miller
Hey Bob, This still sounds wrong. The ID of this card should be the same, regardless of the object containing the script that retrieves it. I'm not aware that lockMessages or lockScreen would have any effect on getting the ID of this card. The problem more likely lies with this card. If

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 of

Name of control in a given group

2011-04-01 Thread James Hurley
Put the name of control 1 in group id 1005 doesn't work. Any suggestions? Best I can do is get the number of controls in a group. I need the names. Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Name of control in a given group

2011-04-01 Thread Scott Rossi
Recently, James Hurley wrote: Put the name of control 1 in group id 1005 doesn't work. Any suggestions? Best I can do is get the number of controls in a group. I need the names. Try: put the name of control 1 *of* group id 1005 Regards, Scott Rossi Creative Director Tactile Media, UX

Re: Currently playing song on iPod Touch

2011-04-01 Thread Peter Brigham MD
On Apr 1, 2011, at 1:44 PM, Bob Sneidar wrote: I will say that I have had a long staning issue in Livecode where I have to hold the mouse button a bit longer for the click to register. That may be your problem. I have not troubleshot this at all, but of course the first thing to do is

Re: novice question re marked and customkeys

2011-04-01 Thread Bob Sneidar
Okay sorry dislexia has set it. I saw 1022 and it looked like 1002. I looked at it 20 times and saw them as identical. I am so embarrassed. Bob On Apr 1, 2011, at 11:15 AM, Timothy Miller wrote: Hey Bob, This still sounds wrong. The ID of this card should be the same, regardless of the

Re: Currently playing song on iPod Touch

2011-04-01 Thread Bob Sneidar
Actually, now that I remember better I DID troubleshoot this a bit and found that it had to do with my using a Kensington trackball. The Kensington driver is getting in the way I think so belay my last. Bob On Apr 1, 2011, at 11:32 AM, Peter Brigham MD wrote: On Apr 1, 2011, at 1:44 PM,

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

Re: Code Documentation

2011-04-01 Thread RevList
How to use LiveCode use-livecode@lists.runrev.com on April 1, 2011 at 8:54 AM -0700 wrote: I'm at the stage in my project where I want to produce some documentation on the various handlers I've written - a few words about purpose, list of parameters and what they contain, and any returned values.

Re: novice question re marked and customkeys

2011-04-01 Thread Peter Brigham MD
On Apr 1, 2011, at 2:37 PM, Bob Sneidar wrote: Okay sorry dislexia has set it. I saw 1022 and it looked like 1002. I looked at it 20 times and saw them as identical. I am so embarrassed. Bob I make stupid mistakes all the time, especially when I've just hit the send button. :-) As I

Re: Code Documentation

2011-04-01 Thread Pete
Thanks Stewart, I'll take a look. By the way, there are actually only three types of people - those who can count and those who can't... Pete On Fri, Apr 1, 2011 at 11:59 AM, RevList revl...@createchsol.com wrote: How to use LiveCode use-livecode@lists.runrev.com on April 1, 2011 at 8:54 AM

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: Name of control in a given group

2011-04-01 Thread James Hurley
Message: 20 Date: Fri, 01 Apr 2011 11:32:00 -0700 From: Scott Rossi sc...@tactilemedia.com To: LiveCode Mail List use-livecode@lists.runrev.com Subject: Re: Name of control in a given group Message-ID: c9bb6830.529e8%sc...@tactilemedia.com Content-Type: text/plain; charset=US-ASCII

Code Documentation on steroids

2011-04-01 Thread dunbarx
I wish that each line in the script editor could have a tooltip associated with it. Annotation takes up so much room if done right, that it is hard to separate the code from the comments. Or maybe a secondary parallel scrolling field that is attached to the editor? I like my code to be

Re: Code Documentation on steroids

2011-04-01 Thread Pete
I like that idea. Maybe something as simple as just hiding comment lines might work. Pete On Fri, Apr 1, 2011 at 6:45 PM, dunb...@aol.com wrote: I wish that each line in the script editor could have a tooltip associated with it. Annotation takes up so much room if done right, that it is hard