Re: LiveCode 8 Library Component: MLT Video Editing Framework

2015-03-21 Thread Mark Wilcox
The framework is free of dependencies and probably quite easy to wrap as a component for LiveCode 8. However, on it's own it doesn't do anything. There are lots of modules that make it incredibly powerful but they do have dependencies, some of them huge, like Qt. The video rendering is via SDL,

Mobile notifications

2015-03-21 Thread J. Landman Gay
Now that the database is working on Android... After the app is first launched, I need to send notifications at regular intervals. The notifications should repeat whether or not the user responds to them. It sounds like the app won't receive any messages if the user ignores a notification. I

Re: Automated Drawing

2015-03-21 Thread Jim Hurley
> > Message: 14 > Date: Sat, 21 Mar 2015 20:13:37 +0200 > From: Richmond > To: How to use LiveCode > Subject: Re: Automated Drawing > Message-ID: <550db4d1.4050...@gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > On 21/03/15 17:35, Jim Hurley wrote: Automated Drawing

Re: printPaperRectangle & LC7

2015-03-21 Thread Paul Hibbert
> On Mar 21, 2015, at 1:44 PM, Terence Heaford wrote: > > Why would printPaperRectangle not be 8,8,834,587 after I set the pagesetup to > landscape on the first pass? Long answer to a short question, skip this if you're not interested in printing on a Mac… If you changed the printer settings

Re: Speed on Android

2015-03-21 Thread J. Landman Gay
On 3/21/2015 7:34 PM, Ralph DiMola wrote: Brain storm. How about the "true" I put in the revOpenDatabase after the password, Could this be it? Oh man. That was it. I think I love you. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: Speed on Android

2015-03-21 Thread J. Landman Gay
On 3/21/2015 7:39 PM, Ralph DiMola wrote: Another thing. Could it be your router/firewall? Did you try over the cellular network? If it were my router I think it would fail on my Mac and it works fine there. I can try on a different network though. How about the "true" I put in the revO

RE: Speed on Android

2015-03-21 Thread Ralph DiMola
Another thing. Could it be your router/firewall? Did you try over the cellular network? I also open the DB once and let the socket close when the app exits I never issue an explicit close. ==>Image of Ralph grasping at straws. Ralph DiMola IT Director Evergreen Information Services rdim...@evergr

RE: Speed on Android

2015-03-21 Thread Ralph DiMola
This is perplexing. I just put in a front script for preopencard and log the current card name to the remote MySQL db(diesel). I just tested it on my Galaxy S4 and still have sub-second card changes. Highlighting of the buttons work. The app is still snappy. I checked the db and the log entries are

Re: A bit of a Mystery

2015-03-21 Thread William Prothero
Michael: This looks like a REALLY useful set of handlers. Thanks, Bill > On Mar 21, 2015, at 9:30 AM, Michael Doub wrote: > > Yesterday, I ported a number of geo routines in to the MasterLibrary that > contained greek characters. I left them in place as I thought it improved > readability of

Re: Speed on Android

2015-03-21 Thread J. Landman Gay
On 3/21/2015 5:24 PM, Ralph DiMola wrote: I just open the remote database like this==> put revOpenDatabase("mysql", "YourDomain.on-rev.com", "DatabaseName" ,"Username" ,"Password" true) into DBID Note there is no"http://"; Yes, I misspoke. There's no "http" in the database path, it's like

Re: unsetting defaultMenuBar

2015-03-21 Thread J. Landman Gay
On 3/21/2015 4:30 PM, Dr. Hawkins wrote: I just want the plain old IDE. If these stacks are open, it's bec ause the user is me, and I am editing them. At which point I have various traps & overrides so that openfield and my field sliding handlers don't work. If you click on any IDE stack (to

Re: Speed on Android

2015-03-21 Thread Mike Bonner
Oh. DOH, never mind, you aren't using an intermediate layer, so yeah. what ralph said. On Sat, Mar 21, 2015 at 4:24 PM, Ralph DiMola wrote: > I just open the remote database like this==> put revOpenDatabase("mysql", > "YourDomain.on-rev.com", "DatabaseName" ,"Username" ,"Password" true) > in

Re: Speed on Android

2015-03-21 Thread Mike Bonner
Hmm. I thought you could still get URL "blah blah" on mobile and it would work. In fact, though the functionality differs slightly, you can use the load command on mobile too. Perhaps this would be useful? If you're using http urls, the only real difference in load between desktop and mobile, is

RE: Speed on Android

2015-03-21 Thread Ralph DiMola
I just open the remote database like this==> put revOpenDatabase("mysql", "YourDomain.on-rev.com", "DatabaseName" ,"Username" ,"Password" true) into DBID Note there is no "http://"; Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message-

Re: Speed on Android

2015-03-21 Thread J. Landman Gay
On 3/21/2015 1:44 PM, Richard Gaskin wrote: J. Landman Gay wrote: > Richard Gaskin wrote: >> Que a post from Mark Wieder about the benefits of web APIs >> for DB connectivity in three...two...one... ... > ...the conclusion is: remote database connections are not supported. But GET and PUT a

Re: 7.0 just let me paste from a PDF!

2015-03-21 Thread Mike Bonner
Some pdf's are just that. An image of a page, so it would probably only work for some pdfs. However, if you can get an entire page showing on screen appearing as you like it, you might be able to set up a hotkey for "import snapshot" with no other arguments, at which point you get a crosshair cur

Re: How to disable single menu items of a pull down menu?

2015-03-21 Thread dunbarx
Hmmm.. I make a pullDown, and in another button: on mouseUp disable menuitem 2 of btn "pulldown" end mouseUp Click that button a bunch of times. Now if I make yet another button with; on mouseUp enable menuitem 2 of btn "pulldown" end mouseUp And click it once, the menuItem becom

Re: Speed on Android

2015-03-21 Thread J. Landman Gay
On 3/21/2015 2:07 PM, Ralph DiMola wrote: Ralph DiMola wrote: >> Richard Gaskin wrote: >> >>>How does LC connect to the database socket on platforms where it >> provides no socket support? >> >> Magic. Richard Gaskin wrote: I'm intrigued. Does this magic work on Android as well?

Re: Speed on Android

2015-03-21 Thread J. Landman Gay
On 3/21/2015 1:51 PM, Ralph DiMola wrote: I see what libURL is all about but I don't see what it has to do with opening a MySQL db from an app. The database is on a remote server, so it uses an http URL rather than a file path and requires some method of internet communication. That's usually

7.0 just let me paste from a PDF!

2015-03-21 Thread Dr. Hawkins
OSX/Yosemite. I apparently selected the entire page by accident while selecting text to cut and paste. I ended up with the entire page as an image when pasting into livecode. But I can't replicate it. This would be *really* useful . . . Even better would be converting it to fields, but . . .)

Re: unsetting defaultMenuBar

2015-03-21 Thread Dr. Hawkins
On Sat, Mar 21, 2015 at 11:18 AM, J. Landman Gay wrote: > > That's when I usually turn on editmenus. That would be going the other direction :) I just want the plain old IDE. If these stacks are open, it's bec ause the user is me, and I am editing them. At which point I have various traps &

Re: unsetting defaultMenuBar

2015-03-21 Thread Dr. Hawkins
On Sat, Mar 21, 2015 at 10:03 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > It looks like setting the defaultMenubar to empty doesn't work (I'm using > LC 7 today). Instead, you could set the menubar to the long id of grp > "revMenuBar" of stack "revMenubar". This will restore

Re: printPaperRectangle & LC7

2015-03-21 Thread Terence Heaford
> On 21 Mar 2015, at 18:17, J. Landman Gay wrote: > > So your printer has a print area of 8,8,834,587 I have just identified an issue. On my first pass through the routines the printPaperRectangle = 18,18,801,577 and the chart is offset to the left. On my second and subsequent passes throug

Re: printPaperRectangle & LC7

2015-03-21 Thread Terence Heaford
> On 21 Mar 2015, at 18:17, J. Landman Gay wrote: > > So your printer has a print area of 8,8,834,587. The printmargins you set > will be offset by that area. If you set the left print margin to 10, on the > actual paper it will be 18 (10 for your margin + 8 from the printer.) Yes, the docs a

RE: Speed on Android

2015-03-21 Thread Ralph DiMola
>>Ralph DiMola wrote: >> Richard Gaskin wrote: >> >>>How does LC connect to the database socket on platforms where it >> provides no socket support? >> >> Magic. >Richard Gaskin wrote: >I'm intrigued. Does this magic work on Android as well? >I wonder if we can leverage this for other soc

Re: Speed on Android

2015-03-21 Thread Richard Gaskin
Ralph DiMola wrote: > Richard Gaskin wrote: > >>How does LC connect to the database socket on platforms where it >> provides no socket support? > > Magic. I'm intrigued. Does this magic work on Android as well? I wonder if we can leverage this for other socket comms... -- Richard Gaskin Fou

RE: Speed on Android

2015-03-21 Thread Ralph DiMola
Richard Gaskin wrote: >How does LC connect to the database socket on platforms where it provides no socket support? Magic. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net ___ use-livecode mailing list use-livecode@li

Re: Speed on Android

2015-03-21 Thread Richard Gaskin
Ralph DiMola wrote: > I see what libURL is all about but I don't see what it has to do with > opening a MySQL db from an app. All I do is open the dB with a: > > put revOpenDatabase("mysql", tDatabasePath, DBName ,"username" ,"Password" > true) into DBID > > The DB remains open during app e

RE: Speed on Android

2015-03-21 Thread Ralph DiMola
>> Que a post from Mark Wieder about the benefits of web APIs >> for DB connectivity in three...two...one... I agree. I am actively changing all my mobile DB access to a web service. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- Fr

RE: Speed on Android

2015-03-21 Thread Ralph DiMola
Jacqueline Landman Gay wrote: >Here's my new theory. Mobile doesn't support libURL, which is what handles the connections on desktop. When I ask for a remote connection to a database, >something takes over that seems to repeatedly try to connect and times out (10+ secs or so.) In between timeouts

Re: Speed on Android

2015-03-21 Thread Richard Gaskin
J. Landman Gay wrote: > Richard Gaskin wrote: >> Que a post from Mark Wieder about the benefits of web APIs >> for DB connectivity in three...two...one... ... > ...the conclusion is: remote database connections are not supported. But GET and PUT are. :) Snappy, and more secure than exposing the

Re: Speed on Android

2015-03-21 Thread J. Landman Gay
On 3/21/2015 12:58 AM, Ralph DiMola wrote: I access a remote MySQL db(diesel) when the app starts up. It takes a couple of seconds to do a few reads and writes. I will put a db write inbetween cards and see how long it takes. Here's my new theory. Mobile doesn't support libURL, which is what h

Re: printPaperRectangle & LC7

2015-03-21 Thread J. Landman Gay
On 3/21/2015 3:38 AM, Terence Heaford wrote: The docs state "The four numbers represent the left, top, right and bottom of the rectangle being printed to. The rectangle is relative to the top-left of the page, and the left and top will currently always be 0. This isn't very well written. What

Re: unsetting defaultMenuBar

2015-03-21 Thread J. Landman Gay
On 3/21/2015 10:05 AM, Dr. Hawkins wrote: Once the defaultMenubar is set, is there any way to unset it? Particularly, when in the IDE, I want to set it to empty while editing my "source" graphical stacks that the user never sees That's when I usually turn on editmenus. -- Jacqueline Landman

Re: Automated Drawing

2015-03-21 Thread Richmond
On 21/03/15 17:35, Jim Hurley wrote: Automated Drawing Richmond richmondmathewson at gmail.com Sat Mar 21 16:12:16 CET 2015 Previous message: Automated Drawing

Re: Automated Drawing

2015-03-21 Thread Mike Bonner
Here: function getLineByLen pX,pY,pLen,pAngle put pi * pAngle / 180 into tRadians -- sin and cos require radians, so convert from degrees put pX + pLen * cos(tRadians) into pX2 -- get the end x point put pY + pLen * sin(tRadians) into pY2 -- get the end y point return px2,py2 -- return

LiveCode 8 Library Component: MLT Video Editing Framework

2015-03-21 Thread David Bovill
This framework is great and written in C - http://www.mltframework.org/bin/view/MLT/Framework It's the basis for most of the best cross platform video editors. On OSX I can recommend http://www.shotcut.org/ Does that look like a good candidate for a new LiveCode 8 library component? _

Re: unsetting defaultMenuBar

2015-03-21 Thread Mark Schonewille
Hi Richard, It looks like setting the defaultMenubar to empty doesn't work (I'm using LC 7 today). Instead, you could set the menubar to the long id of grp "revMenuBar" of stack "revMenubar". This will restore the original situation in the IDE. Since setting the defaultMenubar to empty seems

A bit of a Mystery

2015-03-21 Thread Michael Doub
Yesterday, I ported a number of geo routines in to the MasterLibrary that contained greek characters. I left them in place as I thought it improved readability of the code as it was a lot of math. I had no problems at all during the port or testing. Today, however I started up and noticed t

How get my file from attachment under Android ?

2015-03-21 Thread Ludovic THEBAULT
> Le 19 mars 2015 à 20:39, Ludovic THEBAULT a > écrit : > > > Le 18 mars 2015 à 17:57, Mark Schonewille > a écrit : > >> Hi Ludovic, >> >> You need to add intent filters to the manifest. More info at >> http://stackoverflow.com/questions/3760276/andr

Re: Automated Drawing

2015-03-21 Thread Jim Hurley
Richmond, I wrote this Turtle Graphics library in the dark ages of RR, before “sum” became a reserved word. So, comment out the “sum” handler in the stack script. Jim >> Automated Drawing >> >> Richmond richmondmathewson at gmail.com  >>

Re: Automated Drawing

2015-03-21 Thread Jim Hurley
>> Automated Drawing >> >> Richmond richmondmathewson at gmail.com  >> >> Sat Mar 21 16:12:16 CET 2015 >> >> Previous message: Automated Drawing >>

Re: Automated Drawing

2015-03-21 Thread Michael Doub
Richmond, Check out the xyAD routine from the masterlibrary: Calculate point x1,y1 that is distance dis and angle ang from point x,y You will have to do the actual drawing. -= Mike On 3/21/15 11:12 AM, Richmond wrote: On 21/03/15 17:09, Richmond wrote: On 21/03/15 13:57, Jim Hurley wrote:

Re: Automated Drawing

2015-03-21 Thread Richmond
On 21/03/15 17:09, Richmond wrote: On 21/03/15 13:57, Jim Hurley wrote: Message: 21 Date: Sat, 21 Mar 2015 09:02:23 +0200 From: Richmond > To: How to use LiveCode > Subject: Automated Drawing Message-ID: <550d177f.10...@g

Re: Automated Drawing

2015-03-21 Thread Richmond
On 21/03/15 13:57, Jim Hurley wrote: Message: 21 Date: Sat, 21 Mar 2015 09:02:23 +0200 From: Richmond mailto:richmondmathew...@gmail.com>> To: How to use LiveCode mailto:use-livecode@lists.runrev.com>> Subject: Automated Drawing Message-ID: <550d177f.10...@gmail.com

unsetting defaultMenuBar

2015-03-21 Thread Dr. Hawkins
Once the defaultMenubar is set, is there any way to unset it? Particularly, when in the IDE, I want to set it to empty while editing my "source" graphical stacks that the user never sees -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode m

Re: Problems with movies in latest LiveCode versions

2015-03-21 Thread Devin Asay
On Mar 20, 2015, at 5:06 PM, stgoldb...@aol.com wrote: > > The problem is the same regardless of whether the script mentioned below is > applied. Namely, I can't get a > player object to remember a relative path to a movie. As soon as I try to > put a relative path into the player control >

Re: Automated Drawing

2015-03-21 Thread Jim Hurley
> > Message: 21 > Date: Sat, 21 Mar 2015 09:02:23 +0200 > From: Richmond > > To: How to use LiveCode > > Subject: Automated Drawing > Message-ID: <550d177f.10...@gmail.com > > Content-Type:

Re: printPaperRectangle & LC7

2015-03-21 Thread Terence Heaford
Here’s an image on DropBox that demonstrates the problem. The left margin is clearly less than the right margin. I don’t know why? https://dl.dropboxusercontent.com/u/98788898/LiveCode/printing.png Thanks Terry __

printPaperRectangle & LC7

2015-03-21 Thread Terence Heaford
I have been trying to overcome the issue of printing/scaling part of a card to a print rect by using printScale with print card and have come across this issue. I have placed various “put” statements in my code to obtain the data before it prints. Here is the data: chart width = 814 This

Automated Drawing

2015-03-21 Thread Richmond
I set up a little stack with THIS in a button: on mouseUp choose pencil tool drag from 100,100 to 200,200 end mouseUp and it drew me a jolly diagonal line . . . super! HOWEVER I wonder if it is possible to do something like THIS: drag for 100 pixels at 60 degrees probably not, BUT ??