Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-28 Thread J. Landman Gay via use-livecode
On 6/28/17 9:25 PM, Sannyasin Brahmanathaswami via use-livecode wrote: on addSpaceBelowListLines pField,pSpace put the number of lines of pField # returns 1 -- # -- of course, that's a prop of the var, not the object it refes to repeat with x = 1 to (the number of lines of pField)

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-28 Thread Mike Bonner via use-livecode
Change it to "the number of lines in the text of pfield" and it should work. On Wed, Jun 28, 2017 at 8:59 PM, dunbarx via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi. > > You need a "do" construction to, er, deconstruct the "contents" of the > variable to the object reference of

Re: Sharp as a pound (was Array assignment...)

2017-06-28 Thread dunbarx via use-livecode
James, So do we in the US, though sometimes the word "hash" has been seen to creep about. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sharp-as-a-pound-was-Array-assignment-tp4716340p4716344.html Sent from the Revolution - User mailing list archive at

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-28 Thread dunbarx via use-livecode
Hi. You need a "do" construction to, er, deconstruct the "contents" of the variable to the object reference of that variable. Do you know how to do this? Craig Neman -- View this message in context:

touch issues with the surface

2017-06-28 Thread Jeff Reynolds via use-livecode
Has anyone done multiple stacks with a surface under touch? my app has a video playback substack that the control (master) stack brings up to play video full screen over the control app. works fine on mac and pc and the surface in pc mode (using mice and trackpads) but in tablet mode or in pc

How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-28 Thread Sannyasin Brahmanathaswami via use-livecode
I'm trying to set up a global text only library that includes text handlers for formatting text run time. Typical use case is : clickable list field with titles that wrap. Say you set type size to 16, text height to 20, dontWrap is false, first indent -40, left margin 20. This looks fine, but

Sharp as a pound (was Array assignment...)

2017-06-28 Thread james--- via use-livecode
Alex in a postscript wrote... > btw - whose bright idea was it to not put a 'sharp' key visible on a > British Mac keyboard :-) ? Of course # is a sharp character. Being in Australia which had moved to decimal currency by the time PCs were available we had the # on our keyboards. But being not

Re: Shell - argv limits

2017-06-28 Thread JB via use-livecode
No I have not but it is certainly very interesting info. Thank you, JB > On Jun 28, 2017, at 5:43 PM, Richard Gaskin via use-livecode > wrote: > > JB wrote: > > > When using argv it has a character limit. I think it > > might be different on different systems

Re: Shell - argv limits

2017-06-28 Thread Richard Gaskin via use-livecode
JB wrote: > When using argv it has a character limit. I think it > might be different on different systems but you can > probably use a few thousand characters for each > argument. You can have as many arguments as > memory can handle. Probably thousands. You > should refer to a file for

Re: Shell - argv limits

2017-06-28 Thread JB via use-livecode
I am guessing the is a pretty large number. JB > On Jun 28, 2017, at 4:45 PM, Mark Wieder via use-livecode > wrote: > > On 06/28/2017 04:06 PM, JB via use-livecode wrote: >> When using argv it has a character limit. I think it >> might be different on

Shell - Java compile code

2017-06-28 Thread JB via use-livecode
To compile Java code do the following; 1. Open a text editor and paste the Java code below: public class ArgExample { public static void main(String[] args) { for(int i = 0; i < args.length; i++) { System.out.println(args[i] + " is arg " + (i+1)); } } }

Re: Shell - argv limits

2017-06-28 Thread Mark Wieder via use-livecode
On 06/28/2017 04:06 PM, JB via use-livecode wrote: When using argv it has a character limit. I think it might be different on different systems but you can probably use a few thousand characters for each argument. You can have as many arguments as memory can handle. Probably thousands. You

Re: Speed comparison with imageData 1920x1080

2017-06-28 Thread hh via use-livecode
The canvas2d dataURL-methods (and LC's base64-methods) are so far optimized that it is even slower if one directly sends and receives arrays, I tried it. There could be more gain (what would give a speed-up-factor of up to 500) by using webGL, but this has issues with some 'black-listed' graphic

Re: Creating installers when packaging a Levure application

2017-06-28 Thread William Prothero via use-livecode
Trevor: Thanks for your support with Levure. It looks like a wonderful resource, but for my current needs, it looks like a pretty big investment for me to figure it out and the ROI is probably not enough to justify the learning curve. Thanks, Bill > On Jun 25, 2017, at 12:09 PM, Trevor DeVore

Shell - argv limits

2017-06-28 Thread JB via use-livecode
When using argv it has a character limit. I think it might be different on different systems but you can probably use a few thousand characters for each argument. You can have as many arguments as memory can handle. Probably thousands. You should refer to a file for larger data. If you want

Re: Speed comparison with imageData 1920x1080

2017-06-28 Thread Richard Gaskin via use-livecode
hh wrote: Here is a stack that compares simple grayLevel- and invert-filter for an image of size 1920x1080, needs LC 8 or 9. It shows the power of this "external" we have via LC Builder/the browser widget. go stack url ("http://hh.on-rev.com/xstacks/speedComparison.livecode;) or download the

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Rounding to the nearest whole number could explain the direction bias. Sent from my iPhone > On Jun 28, 2017, at 4:31 PM, jonathandly...@gmail.com wrote: > > Are you saying the down scroll has less momentum? > > I have no idea why it would do that, but you can increase the momentum > overall

Speed comparison with imageData 1920x1080

2017-06-28 Thread hh via use-livecode
Here is a stack that compares simple grayLevel- and invert-filter for an image of size 1920x1080, needs LC 8 or 9. It shows the power of this "external" we have via LC Builder/the browser widget. go stack url ("http://hh.on-rev.com/xstacks/speedComparison.livecode;) or download the file

Array assignment / initialization [was Re: synonyms]

2017-06-28 Thread Alex Tweedly via use-livecode
On 28/06/2017 16:55, Richard Gaskin via use-livecode wrote: Fully agreed, as I wrote in my post introducing this arg format to the discussion a couple days ago: And as much as I like it in R, I'm not sure I would advocate it in an xTalk as any sort of necessity. It might be ideal

Re: synonyms

2017-06-28 Thread Alex Tweedly via use-livecode
On 28/06/2017 15:27, Paul Dupuis via use-livecode wrote: Your solution illustrate more so than mine how easy it is to make handler and functions that use name/value pairs if someone prefers that model. The xtalk language really doesn't need any extensions or enhancements to enable this. I

Re: Momentum Scrolling Script

2017-06-28 Thread Alejandro Tejada via use-livecode
I made this change in the script and now it reversed the behavior. Probably everyone interested could test this script on different mobile devices and computers to confirm this behavior. Al On Wed, Jun 28, 2017 at 4:31 PM, wrote: > Are you saying the down scroll has

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Are you saying the down scroll has less momentum? I have no idea why it would do that, but you can increase the momentum overall by changing tRemainingDistance/15 to a lower divisor, like tRemainingDistance/10. Sent from my iPhone > On Jun 28, 2017, at 4:23 PM, Alejandro Tejada via

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Actually - the problem I just mentioned has to do with some different. Sent from my iPhone > On Jun 28, 2017, at 4:20 PM, jonathandly...@gmail.com wrote: > > Thanks Scott > > I also found something else. Mousedown stops the momentum scroll, but then > one must lift up the finger and start

Momentum Scrolling Script

2017-06-28 Thread Alejandro Tejada via use-livecode
Really nice script, Jonathan! Thanks a lot for sharing. Previously Bernd and many LC Developers have published similar scripts. By the way, this script seems to works faster when users drags upward from Line 20 to Line 1 than dragging downwards from Line 1 to 20 Dragging upwards from Line 20

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Thanks Scott I also found something else. Mousedown stops the momentum scroll, but then one must lift up the finger and start again to do more scrolling. That should be fixable, though. Sent from my iPhone > On Jun 28, 2017, at 3:00 PM, Scott Rossi via use-livecode >

Re: 8.1.4 Export snapshot

2017-06-28 Thread Paul Hibbert via use-livecode
Hi Panos, I’ve just come to the same conclusion, when I checked the LC app bundle, the test files were in there. A search in the Mac Finder doesn’t reveal files inside the app bundle, so this is where I went wrong until the penny dropped! Setting the default folder first does remedy the

Re: 8.1.4 Export snapshot

2017-06-28 Thread panagiotis merakos via use-livecode
Hi all, I have tried in LC 8.1.5 RC-2: export snapshot from Field 1 to file "File1.png" as PNG This works as expected, and creates a "File1.png" in **the defaultFolder** (in my case in /Applications/LiveCode Indy 8.1.5 (rc 2).app) @Paul Can you "put the defaultFolder", and check if there is a

Re: Momentum Scrolling Script

2017-06-28 Thread Scott Rossi via use-livecode
Hi Jonathan: Just doing some simple tests, your script is great. Thanks for sharing it on the list. Two minor improvements I would suggest: 1) After the mouseUp handler, add a mouseRelease handler to trigger deceleration/stop when the mouse is released outside of the target control. on

Re: 8.1.4 Export snapshot

2017-06-28 Thread Richmond Mathewson via use-livecode
On 6/28/17 7:45 pm, Paul Hibbert via use-livecode wrote: This looks like it may be a bug on Mac OS, or just a difference in the way the OS works. I see the same problem using LC 8.1.5(rc1) on Mac OS Sierra 10.12.4, but if I give the file a more complete path (which I would normally do),

Re: Momentum Scrolling Script

2017-06-28 Thread Tom Glod via use-livecode
nice going to try this out...I had a good scrolling script, but definitely not momentum based... will give it a shot...thanks. On Wed, Jun 28, 2017 at 1:04 PM, Jonathan Lynch via use-livecode < use-livecode@lists.runrev.com> wrote: > I just realized I had the wrong way of checking to see if

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
I just realized I had the wrong way of checking to see if scrolling should stop. Somehow it still worked, which is kinda weird. Here is the revised script, with checking for tCount < 1 rather than tCount > 50 - Momentum Scrolling Code Local StartDrag Local AllowDrag Local

Re: Obtaining the "active" Desktop/Monitor under OSX?

2017-06-28 Thread Paul Dupuis via use-livecode
Thank you all, the screen of stack is the answer! On 6/28/2017 12:15 PM, Bob Sneidar via use-livecode wrote: > confirmed. > > Bob S > > >> On Jun 28, 2017, at 08:41 , Trevor DeVore via use-livecode >> wrote: >> >> I am not at my computer to confirm this but I

Re: Momentum Scrolling Script

2017-06-28 Thread Sean Cole (Pi) via use-livecode
Jonathan, I would also recommend using the var name prefixes as recommended by LC in thier Tips for Writing Good Code when sharing publicly. Like this I mean: Local sStartDrag Local sAllowDrag Local sStartDragMil Local sCumulativeMomentum on mousedown focus on nothing if word 1 of the name

Re: 8.1.4 Export snapshot

2017-06-28 Thread Paul Hibbert via use-livecode
This looks like it may be a bug on Mac OS, or just a difference in the way the OS works. I see the same problem using LC 8.1.5(rc1) on Mac OS Sierra 10.12.4, but if I give the file a more complete path (which I would normally do), then it does work: export snapshot from group "abc" to file

Re: Did queryRegistry break?

2017-06-28 Thread Richard Gaskin via use-livecode
Thanks for confirming, Mike. Submitted: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
That's a good tip - it actually will affect one of my groups quite a bit - drat. Thanks Sean Sent from my iPhone > On Jun 28, 2017, at 12:29 PM, Sean Cole (Pi) via use-livecode > wrote: > > This is excellent Jonathan, Thanks. > > Another tip is to make sure

Re: Did queryRegistry break?

2017-06-28 Thread Mike Bonner via use-livecode
One can use the shell to do this.. *get* shell("reg query HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KeyboardClass") I used KeyboardClass because SERIALCOMM doesn't exist for me. (windows 10) but at least when i tried it I got back a helpful message telling me that it doesn't exist. On Wed, Jun 28,

Re: Did queryRegistry break?

2017-06-28 Thread Mike Bonner via use-livecode
listRegistry still seems to work, though when I list HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\ SERIALCOMM is there. (seems like it should be) If I ignore serialcomm and try queryRegistry on one of the subkeys returned by listRegistry, its still a no-go. Does indeed look like its broken. On Wed,

Re: Momentum Scrolling Script

2017-06-28 Thread Sean Cole (Pi) via use-livecode
This is excellent Jonathan, Thanks. Another tip is to make sure that the Group object you wish to scroll the contents of is not nested in any other groups as the will negate the AcceleratedRendering. This is not documented in the API dictionary but is a known functionality. The documentation will

Re: Obtaining the "active" Desktop/Monitor under OSX?

2017-06-28 Thread Bob Sneidar via use-livecode
confirmed. Bob S > On Jun 28, 2017, at 08:41 , Trevor DeVore via use-livecode > wrote: > > I am not at my computer to confirm this but I believe the "screen > "property of a stack returns the number of the screen that the stack is on. > That number represents

Re: synonyms

2017-06-28 Thread Mark Wieder via use-livecode
On 06/28/2017 08:55 AM, Richard Gaskin via use-livecode wrote: The ability to use single-quotes and double-quotes interchangeably so they can be nested. http://quality.livecode.com/show_bug.cgi?id=16941 -- Mark Wieder ahsoftw...@gmail.com ___

Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Hi everyone, I just created and tested a momentum scrolling script on my iPhone, and it appears to work quite well, so I thought I would share it here. It also works on desktop with mouse dragging. If you see improvements, please share them. 1. Make sure to have accelerated rendering on for the

Did queryRegistry break?

2017-06-28 Thread Richard Gaskin via use-livecode
I ran a test for a user in the forums and was surprise to find I can't get strings back from the queryRegistry function - here's his thread: Any of you having luck with queryRegistry in recent builds? I searched the bug DB and came up empty.

Re: synonyms

2017-06-28 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote: > Mike, > > Even better. > > You solution illustrate more so than mine how easy it is to make > handler and functions that use name/value pairs if someone prefers > that model. The xtalk language really doesn't need any extensions > or enhancements to enable this. Fully

Re: Obtaining the "active" Desktop/Monitor under OSX?

2017-06-28 Thread Trevor DeVore via use-livecode
I am not at my computer to confirm this but I believe the "screen "property of a stack returns the number of the screen that the stack is on. That number represents the line offset of the screen in the screenrects property. -- Trevor DeVore On Wed, Jun 28, 2017 at 9:59 AM Paul Dupuis via

Re: Obtaining the "active" Desktop/Monitor under OSX?

2017-06-28 Thread Mark Schonewille via use-livecode
If I execute this put (the loc of this stack is within -1440,-132,0,768) on my primary screen, I get false in the message box. Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language:

Obtaining the "active" Desktop/Monitor under OSX?

2017-06-28 Thread Paul Dupuis via use-livecode
I remember when the multiple Desktop feature was introduced on OSX (Yosemite I think?) there was a very active discussion on this email list about how to tell what monitor (in a multiple monitor configuration) your application was starting up on. I have tried searching for this but my search

Re: Server Installation

2017-06-28 Thread Bob Sneidar via use-livecode
+1 > On Jun 27, 2017, at 17:12 , Mike Bonner via use-livecode > wrote: > >>> When I teach I feel it's important to include WHY in addition to HOW. > > This. > I can't tell you how often I've helped people out (non-paid) and right in > the middle of an

Re: synonyms

2017-06-28 Thread Paul Dupuis via use-livecode
Mike, Even better. You solution illustrate more so than mine how easy it is to make handler and functions that use name/value pairs if someone prefers that model. The xtalk language really doesn't need any extensions or enhancements to enable this. On 6/28/2017 10:14 AM, Mike Bonner via

Re: How do we access the clipboard on mobile devices?

2017-06-28 Thread Richard Gaskin via use-livecode
Thierry Douez wrote: > J. Landman Gay > ​: > ​ > > They can paste text normally if you use a native field. The only >> restriction is that LC can't manage the clipboard through script >> alone. But if you create a mobile field the OS handles it as >> expected. >> >> In other words, copy and

Re: 8.1.4 Export snapshot

2017-06-28 Thread Richard Gaskin via use-livecode
Richmond Mathewson wrote: > Mac OS 10.7.8 > > in LC 7.1.4 if I type this sort of thing into the Message box: > > export snapshot from group "abc" to file "abc.png" as PNG > > it exports a snapshot of my group! > > But that doesn't work in 8.1.4. FWIW it works for me in 8.1.5rc2 on Ubuntu 14.04.

Re: synonyms

2017-06-28 Thread Mike Bonner via use-livecode
Even easier would be to just pass a single string like so.. myhandler "type=blue,name=fred,something=234" And use split split pVar by comma and "=" ending up with an array keyed by name. On Wed, Jun 28, 2017 at 5:41 AM, Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: >

Re: synonyms

2017-06-28 Thread Paul Dupuis via use-livecode
Here is some code to pass params by name - value pairs. It is relatively easy with the paramCount and param functions of livecode. on mouseUp myHandler "type=blue","name=fred","something=234" end mouseUp on myHandler repeat with i=1 to the paramCount put param(i) into tArg set

Re: Petya attack

2017-06-28 Thread Mark Schonewille via use-livecode
Hi Richmond, Probably not, because the offending file(s) need(s) to be installed in the Windows directory to be effective. A Mac doesn't have a Windows directory. Any guest OS's running in a virtual machine however may be affected. I could imagine that other Office packages running on

Re: Server Installation

2017-06-28 Thread Lagi Pittas via use-livecode
I was just about to suggest the Abyss webserver when I read your post. I can confirm that after trying about 6 webservers to run ActiveVFP - a system to run the FoxPro language on the Web ALL other webservers crashed.either at start or after a few minutes, Abyss is running without a problem.

Re: How do we access the clipboard on mobile devices?

2017-06-28 Thread Thierry Douez via use-livecode
J. Landman Gay ​: ​ They can paste text normally if you use a native field. The only > restriction is that LC can't manage the clipboard through script alone. But > if you create a mobile field the OS handles it as expected. > > In other words, copy and paste is currently limited to manual user

8.1.4 Export snapshot

2017-06-28 Thread Richmond Mathewson via use-livecode
Mac OS 10.7.8 in LC 7.1.4 if I type this sort of thing into the Message box: export snapshot from group "abc" to file "abc.png" as PNG it exports a snapshot of my group! But that doesn't work in 8.1.4. Richmond. ___ use-livecode mailing list

Re: Petya attack

2017-06-28 Thread Richmond Mathewson via use-livecode
" This ransomware is exploiting a vulnerability in Microsoft Office when handling RTF documents" Although the article seems to say that this thing only affects Windows I wonder whether this thing can do damage to Macs via Microsoft Office for Mac or opening one of these RTF documents with one

Re: synonyms

2017-06-28 Thread FlexibleLearning.com via use-livecode
This is how ChartMaker (www.flexibleLearning.com/chartmaker ) works, with only the required name-value pairs and in any order. It does make implementing modifications to chart displays a lot easier for exactly the reasons you give! Hugh Senior FLCo > -Original Message- > I don't know