Re: Copying text in boxes to clipboard

2017-12-08 Thread Jim Lambert via use-livecode
Jacque's suggestion for PDF printing is excellent. That will get you a file. But you mentioned you want this to end up on the clipboard for pasting into other programs. > Dunbarx wrote: > I did a quick test using the "import snapshot" command, and pasted the > result into another app. It seems

Re: sync LC applications

2017-11-25 Thread Jim Lambert via use-livecode
> Paolo wrote: > > I went through this tutorial about push notifications > ... > According to some comments, this technique is is out of date now, because > C2DM has been officially deprecated as of June 26, 2012. Wouldn’t it be nice if the lessons and any other coding examples posted by the

Re: sync LC applications

2017-11-16 Thread Jim Lambert via use-livecode
> Paolo wrote: > what?s the best way to sync several LC applications installed on many > different devices? > For example, consider having 100 smartphones connected to internet running > the same LC application, how can I send a signal/command so that an image > shows up at the same time

Re: Was I hallucinating? Totally OT, perhaps relevant

2017-11-08 Thread Jim Lambert via use-livecode
RichardG wrote: > > But there's no question that all voice-activated systems (Apple's Siri, > Amazon's Alexa, Microsoft's Corana, Google's voice navigation) must > listen at all times in order to be able to know when you call them by > name. > True. > It wouldn't be possible for them to do

Re: The coming of SVG

2017-11-08 Thread Jim Lambert via use-livecode
Viewer +1 Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: The coming of SVG

2017-11-05 Thread Jim Lambert via use-livecode
FRAME would be good except it is already defined in the Livecode Dictionary as: 'One of the images in the sequence of images that makes up an animation or video.’ And there’s also framecount and framerate relating to animated GIFs. Presumably some video widgets would also refer to movie frames,

Re: The coming of SVG

2017-11-03 Thread Jim Lambert via use-livecode
I like Mark's ‘picture' because it is general. A picture can contain both vectors and bitmaps. Any word with ‘icon’ in it seems overly specific as does ’SVG’-anything; while ‘vectorimage’ implies an image made up of vectors. set the filename of pct 1 to ‘blah blah.blah’ Jim Lambert

Re: results of SPLIT when keys not unique

2017-11-03 Thread Jim Lambert via use-livecode
> Monte wrote: > > Perhaps something like: > > split by and [{replacing | > splitting | ignoring} duplicates] Yes. +1 Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: how to split a list in two directions?

2017-10-28 Thread Jim Lambert via use-livecode
> Tiemo wrote: > > I have a delimiter separated list of two columns, first column is an ID, > second column a name. > > I need two arrays of this list, one with the first column (ID) as the key > and one with the second column (name) as the key. > > With split myArray by CR and ";"I get the

Re: Should engine be applying link or metadata to an LINEFEED (LF) character?

2017-10-25 Thread Jim Lambert via use-livecode
I wrote: put LF into char 15 of line 1 of fld 1 Oops, that should read: put LF into char 15 of fld 1 Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: Should engine be applying link or metadata to an LINEFEED (LF) character?

2017-10-25 Thread Jim Lambert via use-livecode
If you put LF into char 15 of line 1 of fld 1 the appearance of Fld 1 doesn’t change, neither does its the htmltext. Yet the result of running your script does change. You only get ’10’ and no metadata after substituting a LF for a LF in char 15. Jim Lambert

Re: Should engine be applying link or metadata to an LINEFEED (LF) character?

2017-10-25 Thread Jim Lambert via use-livecode
Trevor wrote: > > ... > This is line > 1 > This is line 2 > > … > > set the htmltext of field 1 to the clipboarddata > put 15 into tChar > put charToNum(char tChar of field 1) & cr & the metadata of char tChar of > field 1 As you noted, one gets: 10 90660 Now select before char 1 of line 2

Re: Resizing stack window by scaling

2017-10-23 Thread Jim Lambert via use-livecode
RichardG wrote: > One curiosity, though: what computers offer the 1536x864 resolution that > apparently 5.48% of users are running? I can't recall even seeing that > resolution in any spec listings. A Windows thing?

Re: Resizing stack window by scaling

2017-10-22 Thread Jim Lambert via use-livecode
> RichardG wrote: > > With monitors, 1366x768 screens are by far the most common, the second > leading size only a bit more than half as popular, and it's a long tail > of single-digit market share from there: > > 1366x768: 29.87% > 1920x1080: 16.69% > 1440x900: 6.86% > 1600x900: 5.81% >

Re: [OT] Myst and The Manhole

2017-10-20 Thread Jim Lambert via use-livecode
Last year my wife and I visited Meow Wolf’s House of Eternal Return. It was clear there was a Myst-like puzzle at the heart of it. But we didn’t bother much trying to figure it out. It was just splendid fun to walk, dash, crawl, slide and climb through the wacky spaces. Even 67 year olds can get

Re: is a date

2017-10-15 Thread Jim Lambert via use-livecode
Roger wrote: > > put "11/20/2017" is a date > returns true > > put "10" is a date > returns true > > put "raccoon" is a date > returns false > > > WHY is "10" seen as a date? Because it is legitimately a date expressed in seconds? convert 10 to long date = Wednesday, December

Re: not really OT: The Coming Software Apocalypse

2017-10-04 Thread Jim Lambert via use-livecode
> Richmond wrote: > > once a system constructed by humans reaches a certain level of complexity > those humans are unable to predict how it will behave in certain > circumstances. And sometimes we’re unable to explain WHY a system behaved as it did, which is increasingly common with certain AI

Re: A modest proposal for a new property

2017-09-27 Thread Jim Lambert via use-livecode
> Herman wrote: > > Make a circular arc showing 70% of a pie and then tell us when clicking > into the oval which part is hit, the 70% or the transparent 30%. > > A one-liner? Here’s a kludge. But it’s no one liner. It takes a few milliseconds depending on size of the graphic. on mouseUp

Re: Scrolling Groups on Mobile - Show a little of what is below

2017-09-21 Thread Jim Lambert via use-livecode
Some mobile UI’s, when first showing a scrolling list that extends below the visible area, will slightly “bounce” the list contents up then back down. This does double duty. It briefly reveals the hidden content and indicates that the list is scrollable. And it works regardless of screen

RE: TSNet error 6

2017-09-02 Thread Jim Lambert via use-livecode
RalphM wrote: > The first thing I do before any network access is to ping my server with a > https request to a LC backend server script that returns "OK". I set the > timeout for 2 seconds. If the returned data is not "OK" or take more than 2 > seconds then I put the app into off-line mode. On

Re: [OT] Hello World

2017-09-01 Thread Jim Lambert via use-livecode
Richmond, Congratulations on your Hello World article. Very nice. Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: LC and Google Analytics?

2017-08-29 Thread Jim Lambert via use-livecode
Perhaps a widget could encapsulate the Google Analytics SDK. Alternately just using their regular API calls might work too. LiveCode Connect is all about API interfacing. Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: slow listserv

2017-08-29 Thread Jim Lambert via use-livecode
I wonder if the Texas flooding affected it. Swimming increases latency. Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Bad Crash on Attempt to Group Radio Buttons

2017-08-28 Thread Jim Lambert via use-livecode
RichardG wrote: > >> I have used cantSelect before to stop selection of a background image >> that has lots of objects on top. It means you can drag select them and >> won?t accidentally click-drag and move your background. > > How? Disable it in addition to setting the cantselect. Jim

Re: CouchDB, DayBed, etc.

2017-08-23 Thread Jim Lambert via use-livecode
Alex, > local storage, and that data is subsequently > synched to "the cloud” You might want to take a look at Mark Talluto’s LiveCloud. http://livecloud.io And I agree Greg's Daybed library and CouchDB course are very good. Jim Lambert ___

Re: Forum: Waves of Russian Nonsense

2017-08-14 Thread Jim Lambert via use-livecode
> Klaus wrote: > > I deleted the 49 slavic spam postings manually a couple of minutes ago… Спасибо ;) Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Web vs Native (was Re: HTML5 limitations?)

2017-07-29 Thread Jim Lambert via use-livecode
On 7/28/17 1:14 PM, Mark Waddingham via use-livecode wrote: > > I think the first thing we would need would be builtin > gesture support. In this case, this isn't even 'a gesture has happened' > but 'it looks like a swipe is just starting' (I think at least). e.g. > swipeBegin / swipeContinue

Swipe transitions

2017-07-19 Thread Jim Lambert via use-livecode
It would be cool if LiveCode could tap into underlying OS animation functions. For example, at WWDC 2017 Apple showed how UI KIT can support interactive and interruptible animations. These are very handy for doing smooth and interactive transitions. LiveCoders are used to building things like

RE: intersect . . . invisible images

2017-07-17 Thread Jim Lambert via use-livecode
> Richmond wrote: > > all the cheap American series... Oh, and, inevitably "Mission Impossible”. Yesterday the actor Martin Landau, who appeared in that show, died at the age of 89. Jim Lambert ___ use-livecode mailing list

Re: Verbosity and Lines of code

2017-06-30 Thread Jim Lambert via use-livecode
> RICHARDG wrote: > > This would allow us to exit a specific loop when loops are nested. > > I can't recall the specifics of his proposed syntax, but I remember > being impressed by how natural it seemed. Maybe it was along the lines of: > > repeat with i = 1 to tSomething named

Re: synonyms

2017-06-26 Thread Jim Lambert via use-livecode
OOOPS! I left out an important word Then simply set the icon of each to the ID of the appropriate image. should read Then simply set the icon of each BUTTON to the ID of the appropriate image. JimL ___ use-livecode mailing list

Re: synonyms

2017-06-26 Thread Jim Lambert via use-livecode
> BobS wrote: > > For the record, I have given up on my Object Library. The problem is buttons. > Button can have icons. That means that I would need to copy all the linked > icons along with the button, then manage the relinking of the copied icons > that now have their own ID's, then manage

Re: RIP Dan Shafer

2017-06-22 Thread Jim Lambert via use-livecode
But Dan’s excellent work lives on. Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LC Global - my experience

2017-06-18 Thread Jim Lambert via use-livecode
> Alex Tweedly wrote: > > the replay link gives you a web page showing the video and the scrolling > 'chat' alongside it. The video responds *only* to "pause" (and then to > "play") - there's no > - rewind (say 30 seconds) if you got distracted > - fast forward / backward > - go directly to

Re: "clipsToRect" property

2017-06-14 Thread Jim Lambert via use-livecode
‘Visible rectangle’ I can see that. ;) Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: clipsToRect property (was Re: Instantiaing Grouped Controls - Templates - Responsive)

2017-06-13 Thread Jim Lambert via use-livecode
or ‘Clip Group to rect’ Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: clipsToRect property (was Re: Instantiaing Grouped Controls - Templates - Responsive)

2017-06-13 Thread Jim Lambert via use-livecode
Group crops to rect > Jacque wrote: > I agree with the concept in general, but the word "crop" implies permanent > removal. When you crop an image, it permanently erases the parts outside the > rectangle. Unfortunately I can't think of a better term. Maybe something like > "prevent

Re: looking for a smart approach to "sort" an array

2017-05-06 Thread Jim Lambert via use-livecode
> Jacque wrote: > I've done this often, it's a nice clean solution. And now that we can > set tabstops to 0, the second item won't be visible whether there's a > horizontal scrollbar or not. That’s right! tabwidths are handy for this hiding too. But I realized Tiemo might not even need to

Re: looking for a smart approach to "sort" an array

2017-05-06 Thread Jim Lambert via use-livecode
Tiemo, > I have a list field of words and a correspondent array with the words of the > field as the keys plus some data per key. I can store the array in a file, > read it later from file and rebuild the list of words from the keys of the > array. Up to now, I had this list of words

Re: looking for a smart approach to "sort" an array

2017-05-05 Thread Jim Lambert via use-livecode
Might a numbered array work for you, where the key corresponds to the line number? [1][theWordonLineOne][otherData] [2][theWordonLineTwo][otherData] Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: mouseMove & backgoundBehavior

2017-04-27 Thread Jim Lambert via use-livecode
RichardG wrote: > when you set the backgroundBehavior of a group to true... that group's script > then occupies a different > place in the message path, between the card and the stack Ah, yes, the light dawns - the message path. Because LC ‘backgrounds” can be smaller than the card, checking the

mouseMove & backgoundBehavior

2017-04-26 Thread Jim Lambert via use-livecode
Make a group that is smaller than your card. Place this in the group’s script: on mousemove newMouseH, newMouseV put newMouseH, newMouseV end mousemove When the cursor moves around within the group the current mouseLoc is put into the message box. When the cursor

Re: Import or export snapshot at current scaleFactor

2017-04-05 Thread Jim Lambert via use-livecode
Terry, Try this import snapshot from ObjRef at size (the width of ObjRef * scaleBy),(the height of ObjRef * scaleBy) Where ObjRef is the object whose snapshot you want to import and scaleBy is the scaling factor. So something like: import snapshot from grp 1 at size (the

Re: Cheesed off by 32xxx

2017-04-03 Thread Jim Lambert via use-livecode
> RichardG wrote: > > the memory and CPU requirements for working with tens of thousands of objects > can be onerous Not to mention how onerous it would be for the poor end user to work with tens of thousands of objects! Jim Lambert ___

Re: Cheesed off by 32xxx

2017-04-02 Thread Jim Lambert via use-livecode
A little fancier. on mouseup put token 2 of the value of the clickline into MAGIC put baseConvert(MAGIC, 16, 10) into WAL put 0 into KOUNT lock screen for visual effect in rect (the rect of grp "BOXES") repeat for 128 times set the label of

Re: Cheesed off by 32xxx

2017-04-02 Thread Jim Lambert via use-livecode
Richmond, You could give this a try. Drag a scrolling list field onto the card. Name it ‘UNIlist’. This will eventually replace for group ‘UNIlist', which contains your problematic number of buttons. Put this in the script of the scrolling list field ‘UNIlist' on mouseup put token 2 of

Re: Line numbers for soft-wrapped styled text?

2017-03-29 Thread Jim Lambert via use-livecode
Hermann wrote: > In sum I learned very important things in this thread: > Using a styledText array (by Alex Tweedly). > Using liststyles for _any_ field (by Jim Lambert). > You could now think about making a "Sample stack" for that (livecodeshare). > > One thing to remark: > One has to adjust

Re: Line numbers for soft-wrapped styled text?

2017-03-29 Thread Jim Lambert via use-livecode
Richard wrote: > This morning Jim Lambert emailed me a very different solution that I > thought would be worth sharing here. > > Here he uses the engine's own metrics for calculating vertical line > spacings, by having the number field placed below the editable text > field, setting its width

Re: LC & OS X 10.12.4

2017-03-27 Thread Jim Lambert via use-livecode
Klaus wrote: > no problems with LC 8.1.3 and 9 dp6 on macOS 10.12.4! Klaus, thanks for checking. Problem must be mine. I can’t launch any version of LC from 5.5.5 through Business 9 dp 6. Guess I’ll start trashing preference files! Jim Lambert

LC & OS X 10.12.4

2017-03-27 Thread Jim Lambert via use-livecode
Anyone else unable to launch LC on mac OS X 10.12.4? Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Magnification

2017-03-24 Thread Jim Lambert via use-livecode
> Vokey, John wrote: > ...the ability to magnify those images... I am seeking the code in a bit of a > rush. This may also help: http://forums.livecode.com/viewtopic.php?f=7=8288 Jim Lambert ___

Re: Help test please? GoLiveNet in v9

2017-03-15 Thread Jim Lambert via use-livecode
Fine in LC 9.0.0 dp6 OSX 10.12.3 Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Translating escape sequence

2017-03-14 Thread Jim Lambert via use-livecode
> Jacque wrote: > > I'm dealing with non-English languages, and JSON data retrieved from a > database comes in with unicode escape sequences like this: Eduardo > Ba\u00f1uls. > > I need to translate those. I can do it by replacing the "\u" with "0x" > and then using numToCodepoint() to get

Re: Messages sent while mouse is down?

2017-03-12 Thread Jim Lambert via use-livecode
> Tim wrote: > > Click and drag the mouse through > adjacent letters to make words. > > Without clicking, simply moving the mouse through the tiles > (fields) triggers mouseenter, mouseleave, etc. which makes it > easy to pick up the letters. > > But when the mouse is down, it seems

Re: UI design problem

2017-03-06 Thread Jim Lambert via use-livecode
> tbodine wrote: > > I'm using the mouseStillDown message to make either the text or image > follow the mouse until released. Glad you solved it. Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: UI design problem

2017-03-05 Thread Jim Lambert via use-livecode
Food for thought. Presumably text in the field is editable by the user. Therefore the field text cannot be locked and mousedowns will be used for text selection rather than grabbing of the entire field, correct? Is the field user resizable? If so, do you present the user with dotted border and

Re: [ANN] Release 9.0.0 DP-5

2017-02-23 Thread Jim Lambert via use-livecode
LC Team, Congratulations and many thanks for this feature-packed release. Brilliant! Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Write to file at end

2017-01-19 Thread Jim Lambert via use-livecode
Bob, 'for UPDATE’ works as well for your case as long as you write ‘at END' Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

<    1   2