Re: Vector Images and the SVGL stack

2015-11-07 Thread Richmond
On 07/11/15 05:01, Alejandro Tejada wrote: Hi All, Just an update. I am building and testing a new parser (or importer) for SVG files based in SVGL and new scripts to import gradients that I used in the attached livecode stack inside a zip file. This new svg parser (not available yet) will be

Re: How to interface with third party API using URLs

2015-11-07 Thread Mike Kerner
A good example is the phx_dropboxLib that Gugliermo wrote that has been updated and tweaked by the community On Sat, Nov 7, 2015 at 12:30 PM, Peter Haworth wrote: > Thanks Devin, I need to remember to always check your site when I'm looking > to get started with something! > >

Re: Using "send...in " wirh private commands?

2015-11-07 Thread Richard Gaskin
Mark Wieder wrote: On 11/07/2015 09:13 AM, Richard Gaskin wrote: This works: command SomeTimer DoSomething send "SomeTimer" to me in 500 millisecs end SomeTimer This doesn't work: private command SomeTimer DoSomething send "SomeTimer" to me in 500 millisecs end SomeTimer I can

Re: Vector Images and the SVGL stack

2015-11-07 Thread Alejandro Tejada
Hi Richmond, Richmond Mathewson-2 wrote > This is really super work: Mark Waddingham and Co. > should "sit up and take notice". > > Frankly, in the light of the fact that Alejandro can do this > single-handedly I cannot help wondering why the LiveCode > team seem to be having some sort of

Re: Overriding system shortcuts in OSX

2015-11-07 Thread Howard Bornstein
Do you know which system-wide shortcuts OS X traps? Cmd-H is the one I found (Hide Apps) and Cmd-Q (for which there is a LC solution). I'm wondering which other ones we might get stung on. Are you aware of a list of these traps? On Sat, Nov 7, 2015 at 10:54 AM, J. Landman Gay

Re: Area of Irregular Polygon

2015-11-07 Thread Scott Rossi
It looks like this could translate to LC if you have the point locations of your polygon: https://www.mathsisfun.com/geometry/area-irregular-polygons.html Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 11/7/15, 2:01 PM, "use-livecode on behalf of Roger Guay"

Re: Using "send...in " wirh private commands?

2015-11-07 Thread Monte Goulding
> On 8 Nov 2015, at 4:13 am, Richard Gaskin wrote: > > This works: > > command SomeTimer > DoSomething > send "SomeTimer" to me in 500 millisecs > end SomeTimer > > This doesn't work: > > private command SomeTimer > DoSomething > send "SomeTimer" to me in 500

Re: Using "send...in " wirh private commands?

2015-11-07 Thread Mark Wieder
On 11/07/2015 12:17 PM, Monte Goulding wrote: I had a look in the source and I don’t think it would be all that tricky to upgrade send so you can send private handlers from the same object. Send without a timer is easy as you already have a handle to the execution context which gives you a

Area of Irregular Polygon

2015-11-07 Thread Roger Guay
Can anyone think of an easy way of getting the area of an Irregular polygon? Thanks, Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Using "send...in " wirh private commands?

2015-11-07 Thread Monte Goulding
> On 8 Nov 2015, at 7:28 am, Mark Wieder wrote: > > Very cool. > What file were you looking at? I'd love the be able to use private callbacks > for socket commands. I just searched for S_SEND and followed the trail. Most of the stuff that needs to be changed is in

Re: How to interface with third party API using URLs

2015-11-07 Thread Peter Haworth
Thanks Mike. Where can I find that? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Nov 7, 2015 at 10:09 AM, Mike Kerner wrote: > A good

Re: Using "send...in " wirh private commands?

2015-11-07 Thread Mark Wieder
On 11/07/2015 09:13 AM, Richard Gaskin wrote: This works: command SomeTimer DoSomething send "SomeTimer" to me in 500 millisecs end SomeTimer This doesn't work: private command SomeTimer DoSomething send "SomeTimer" to me in 500 millisecs end SomeTimer I can kinda understand why,

Using "send...in " wirh private commands?

2015-11-07 Thread Richard Gaskin
This works: command SomeTimer DoSomething send "SomeTimer" to me in 500 millisecs end SomeTimer This doesn't work: private command SomeTimer DoSomething send "SomeTimer" to me in 500 millisecs end SomeTimer I can kinda understand why, but I'd like to be able to manage a timer from

Export snapshot question...

2015-11-07 Thread Paul Dupuis
I am using the "export snapshot from rect tRect to ... " for of the export snapshot command to export the interior of a stack window where and External has drawn in the window. tRect is set to the global (screen) coordinates of the interior area of the window based on its current position. This

Re: Export snapshot question...

2015-11-07 Thread Paul Hibbert
Yes this is the expected behaviour. Export snapshot from rect is not be able to take a snapshot of something "off-screen” because it’s not rendered by the display. Export snapshot from rect uses the device's display output to render the image, but if you use Export snapshot of an object

Re: How to interface with third party API using URLs

2015-11-07 Thread Peter Haworth
Thanks Devin, I need to remember to always check your site when I'm looking to get started with something! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Nov 6, 2015 at

Re: How to interface with third party API using URLs

2015-11-07 Thread Mike Kerner
http://www.phoenixsea.ch/downloads/Livecode/phxDropboxLib.zip On Sat, Nov 7, 2015 at 1:28 PM, Peter Haworth wrote: > Thanks Mike. Where can I find that? > > Pete > lcSQL Software > Home of lcStackBrowser and >

Re: Overriding system shortcuts in OSX

2015-11-07 Thread J. Landman Gay
OS X traps and responds to its own system-wide shortcuts and does not pass them on to the app, so LC won't know about those. But Cmd-Q behaves slightly differently. OS X does notify the app so it can put up save dialogs or do other housekeeping. If Cmd-Q isn't working, then there is probably

Re: Area of Irregular Polygon

2015-11-07 Thread Alex Tweedly
Roger, try this (I've done some minimal testing, so do please check it ...) it assumes the polygon is closed function getArea pPts if line 1 of pPts <> line -1 of pPts then return 0 put 0 into tArea put empty into oldL repeat for each line L in pPts if oldL is not empty then

Re: Area of Irregular Polygon

2015-11-07 Thread Alex Tweedly
Actually, you should shorten the maths - makes it a bit more efficient function getArea pPts if line 1 of pPts <> line -1 of pPts then return 0 put 0 into tArea put empty into oldL repeat for each line L in pPts if oldL is not empty then -- put item 1 of L -

Re: Area of Irregular Polygon

2015-11-07 Thread Geoff Canyon
You could speed it up a bit more and simplify a bit like so: put line 1 of pPts into oldL repeat for each line L in line 2 to -1 of pPts add (item 1 of L - item 1 of oldL) * ( item 2 of oldL + item 2 of L) / 2 to tArea put L into oldL end repeat On Sat, Nov

Re: Area of Irregular Polygon

2015-11-07 Thread Roger Guay
Thanks very much, Scott. I do have a long points list that I would have to manipulate even before apply this technique. I’m not looking forward to that, but I may have to go this route. Cheers, Roger > On Nov 7, 2015, at 12:05 PM, Scott Rossi wrote: > > It looks

Re: Export snapshot question...

2015-11-07 Thread Paul Dupuis
On 11/7/2015 1:46 PM, Paul Hibbert wrote: > Yes this is the expected behaviour. Export snapshot from rect is not be able > to take a snapshot of something "off-screen” because it’s not rendered by the > display. > > Export snapshot from rect uses the device's display output to render the >

Re: Area of Irregular Polygon

2015-11-07 Thread Roger Guay
Beautiful, Alex. I was working on this idea myself, but your scripts is so much more elegant! Thanks, Roger > On Nov 7, 2015, at 4:43 PM, Alex Tweedly wrote: > > Actually, you should shorten the maths - makes it a bit more efficient > > > function getArea pPts > if

Re: Overriding system shortcuts in OSX

2015-11-07 Thread J. Landman Gay
On 11/7/2015 2:23 PM, Howard Bornstein wrote: Do you know which system-wide shortcuts OS X traps? Cmd-H is the one I found (Hide Apps) and Cmd-Q (for which there is a LC solution). I'm wondering which other ones we might get stung on. Are you aware of a list of these traps? Apple has a list

Re: Area of Irregular Polygon

2015-11-07 Thread Geoff Canyon
Important to note that this method of calculating the area of a polygon will fail if the polygon crosses itself. As long as the polygon is simple, it works. On Sat, Nov 7, 2015 at 8:30 PM, Roger Guay wrote: > This is great . . . Thanks, guys!!! > > > > On Nov 7, 2015, at 4:56 PM,

Re: Export snapshot question...

2015-11-07 Thread Paul Hibbert
> On Nov 7, 2015, at 4:46 PM, Paul Dupuis wrote: > > On 11/7/2015 1:46 PM, Paul Hibbert wrote: >> Yes this is the expected behaviour. Export snapshot from rect is not be able >> to take a snapshot of something "off-screen” because it’s not rendered by >> the display. >>

Re: Export snapshot question...

2015-11-07 Thread J. Landman Gay
On 11/7/2015 10:59 PM, Paul Hibbert wrote: On Nov 7, 2015, at 4:46 PM, Paul Dupuis wrote: On 11/7/2015 1:46 PM, Paul Hibbert wrote: Yes this is the expected behaviour. Export snapshot from rect is not be able to take a snapshot of something "off-screen” because it’s