Re: Not many people know this.

2018-08-16 Thread Geoff Canyon via use-livecode
re: Stack versioning: I personally do that using Git/GitKraken. Any suggestion how it should work? re: text styles: you can edit the contents of any field (hidden/locked, whatever) in Navigator. You can convert the editor on the fly from showing the styled text to the HTMLtext of the field, which

Re: Not many people know this.

2018-08-16 Thread Sannyasin Brahmanathaswami via use-livecode
On 8/16/18 7:49 AM, Richard Gaskin via use-livecode wrote: > but the Release Notes for v5.5 offer a solid overview of the new > field features (starting on p12), I keep that! it is golden. I think they replaced it with a stack showing all the features, I can't find it now. But setting the array

Re: Not many people know this.

2018-08-16 Thread Mark Wieder via use-livecode
On 08/16/2018 11:21 AM, Mark Waddingham via use-livecode wrote: reason we treat that particular 10,000 odd lines of code with a great My goodness. I thought I was the only one who wrote odd lines of code... -- Mark Wieder ahsoftw...@gmail.com

Re: "Effective" characters in a line in a field

2018-08-16 Thread Peter Bogdanoff via use-livecode
Hey, thanks! > On Aug 16, 2018, at 4:51 PM, Terry Judd via use-livecode > wrote: > > Check out the formattedText property. > > Terry... > > On 17/08/2018 8:39 am, "use-livecode on behalf of Peter Bogdanoff via > use-livecode" use-livecode@lists.runrev.com> wrote: > >Hi, > >On

Re: "Effective" characters in a line in a field

2018-08-16 Thread Terry Judd via use-livecode
Check out the formattedText property. Terry... On 17/08/2018 8:39 am, "use-livecode on behalf of Peter Bogdanoff via use-livecode" wrote: Hi, On the subject of chunk references… I want to add a carriage return at the end of every visual line of a paragraph. This would

"Effective" characters in a line in a field

2018-08-16 Thread Peter Bogdanoff via use-livecode
Hi, On the subject of chunk references… I want to add a carriage return at the end of every visual line of a paragraph. This would keep the characters of a visual line constant when transferring from Mac to Windows, and set to any font. Is there a way to find out what is the last character of

Re: Not many people know this.

2018-08-16 Thread Trevor DeVore via use-livecode
On Thu, Aug 16, 2018 at 1:21 PM Mark Waddingham via use-livecode < use-livecode@lists.runrev.com> wrote: > > P.S. You can largely thank Trevor for the above additions, in particular > the styledText and metadata - in terms of providing use-cases which led > to their design and implementation. > >

RE: Not many people know this.

2018-08-16 Thread Clarence Martin via use-livecode
I found this Paragraph Property because of Peter Haworth's LCStackBrowser Plugin. I have had problems using LCStackBrowser as of late - since version 8x.x. I think the problem actually stems from the Behavior Scripts in LCStackBrowser and conflicts with the AutoComplete behaviors - I'm not sure

Re: scaleFactor

2018-08-16 Thread Knapp Martin via use-livecode
Thank you! Works great. > On Aug 16, 2018, at 3:50 AM, Håkan Liljegren via use-livecode > wrote: > > As the screenrect is the same but virtually larger / smaller based on the > scaleFactor you need calculate the scale factor based on the current > scaleFactor and the new scaleFactor > > Try

Re: Not many people know this.

2018-08-16 Thread Ben Rubinstein via use-livecode
Sorry, did somebody just give me an excuse to indulge in nostalgia? On 16/08/2018 18:48, Richard Gaskin via use-livecode wrote: AFAIK all xTalks have supported styled text.  It may be that HC 1.0 only provided that for the whole field (I can't recall), It was definitely the case that HC 1.0

Re: Not many people know this.

2018-08-16 Thread Devin Asay via use-livecode
On Aug 16, 2018, at 1:01 PM, Richmond Mathewson via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Of course it was too good to last . . . I merrily filled a field up with a series of letters from 2 different fonts and then did this: * **set the text of fld "f2" to the text of

Re: Not many people know this.

2018-08-16 Thread Richmond Mathewson via use-livecode
Of course it was too good to last . . . I merrily filled a field up with a series of letters from 2 different fonts and then did this: * **set the text of fld "f2" to the text of fld "f1"* and all my font stuff disappeared and everything ended up in the textFont of field "f2". So . . .

Re: Not many people know this.

2018-08-16 Thread Devin Asay via use-livecode
On Aug 16, 2018, at 11:48 AM, Richard Gaskin via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Paragraph-level formatting opens up wholly new opportunities, beyond any xTalk I've ever seen. I'm not sure if this info has been incorporated into the docs system yet, but the

Re: Not many people know this.

2018-08-16 Thread Mark Waddingham via use-livecode
On 2018-08-16 19:48, Richard Gaskin via use-livecode wrote: I'm not sure if this info has been incorporated into the docs system yet, but the Release Notes for v5.5 offer a solid overview of the new field features (starting on p12), most of which are paragraph-level properties like indent,

Re: Not many people know this.

2018-08-16 Thread Richard Gaskin via use-livecode
Clarence wrote: > So, is this the same thing as the "paragraph" property? I find that > this is also super useful. Related, but different enough to draw attention to. AFAIK all xTalks have supported styled text. It may be that HC 1.0 only provided that for the whole field (I can't recall),

RE: Not many people know this.

2018-08-16 Thread Clarence Martin via use-livecode
So, is this the same thing as the "paragraph" property? I find that this is also super useful. Sincerely, Clarence Martin Email: chi...@themartinz.com Cell: 626 696-5561 -Original Message- From: use-livecode On Behalf Of Mark Waddingham via use-livecode Sent: Thursday, August 16, 2018

Re: Not many people know this.

2018-08-16 Thread Mark Waddingham via use-livecode
On 2018-08-16 11:32, Richmond Mathewson via use-livecode wrote: Possibly I am reinventing the wheel here: set the textFont of word 3 to "Charcoal" This IS incredibly useful when one is typing to Mum in Sanskrit (as one does) and wants to use a variant glyph (as one does continuously) as it

Re: Cropping a referenced image

2018-08-16 Thread Bob Sneidar via use-livecode
If you want it to be even easier, get Trevor's sqlYoga! It's a bit of a learning curve, but the benefits are substantial. Virtually everything about connecting and querying a SQL database can be saved as a property of a button (called the dbObject). Even common queries that you use a lot, and

Re: copying large string from clipboard is slooooooooooooooooooooooooooooow

2018-08-16 Thread Brian Milby via use-livecode
Correct - when importing from the system clipboard they are created as needed. When a copy is done inside LC, then all the variants are created and placed on the system clipboard (which is what caused the plain text paste problem originally). Thanks, Brian On Aug 16, 2018, 9:47 AM -0500, Bob

Re: Not many people know this.

2018-08-16 Thread Bob Sneidar via use-livecode
I thought I had the last tape of me doing that destroyed! DAMN YOU RASPUTIN!!! Bob S > On Aug 16, 2018, at 02:32 , Richmond Mathewson via use-livecode > wrote: > > No: I know that that will not make many of you run out into the road madly > waving your > underpants over your heads

Bluetooth detection and use?

2018-08-16 Thread Graham Samuel via use-livecode
After a long long interval of not really coding anything, I’m thinking of a cross-platform app that uses Bluetooth devices. I see that mergNIC can tell me if my iOS has something connected via Bluetooth, but that raises a lot more questions than it answers, such as “what kind of device have we

Re: copying large string from clipboard is slooooooooooooooooooooooooooooow

2018-08-16 Thread Bob Sneidar via use-livecode
Oh no kidding! I didn't realize that! I thought the clipboard created ALL the key types when it imported, but it makes more sense (more efficient) doing it on the fly. Bob S > On Aug 15, 2018, at 19:44 , Brian Milby via use-livecode > wrote: > > As you can see from the above, the system

Re: Data Persistence

2018-08-16 Thread Bob Sneidar via use-livecode
This is right. I do a similar thing, but I have a command I wrote that gets all the objects on a card, excluding groups and fields that are in a datagrid, then loops through each one for a property I set in them indicating the array key I want to populate the field with. This way I can load

Re: Cropping a referenced image

2018-08-16 Thread Sannyasin Brahmanathaswami via use-livecode
Yes I thank "Livecode" but really should thank Trevor for the code (Datagrid) behind my little handler. Suddenly going from dBase-query --> lcArray --> to a form with multiple controls became easy. I just hope it scrolls smoothly on Mobile (have yet to test it). On 8/15/18 6:57 AM, Trevor

Re: Not many people know this.

2018-08-16 Thread Tom Glod via use-livecode
u r right...did not know this ...cool trick. ..so if i want a fontawesome icon at the beginning of a paragraph. i can do that and not use imagesource. great tip. On Thu, Aug 16, 2018 at 6:43 AM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > *Mucking

Re: copying large string from clipboard is slooooooooooooooooooooooooooooow

2018-08-16 Thread Tom Glod via use-livecode
Brian, I appreciate the in-depth explanation . i have to put a stack together that shows the bug i ran into when working with rawclipboarddata. i will give it another go...i really hope it was my code.. but its unlikely since it was just a loop that loads each key. thanks again. On

Re: scaleFactor

2018-08-16 Thread Håkan Liljegren via use-livecode
As the screenrect is the same but virtually larger / smaller based on the scaleFactor you need calculate the scale factor based on the current scaleFactor and the new scaleFactor Try this: on changeScaleFactor pNewScale    put the scaleFactor of this stack into tScale    put tScale / pNewScale 

Re: Not many people know this.

2018-08-16 Thread Richmond Mathewson via use-livecode
*Mucking around further, I discovered one can set the textFont for ** **a char that does NOT exist, this is extremely useful insofar as ** **one does not have to populate 100s of buttons with "corrective" code:** ** **on mouseUp** ** put "x" after fld "ff"** ** put the number of chars in fld

Re: Not many people know this.

2018-08-16 Thread Richmond Mathewson via use-livecode
In fact, one can "fine tune" this operation to have this sort of effect: put the number of chars in fld "ff" into NF if char NF of fld "ff" = "a" then set the textFont of char NF of fld "ff" to "MonsterMash" else set the textFont of char NF of fld "ff" to "UsualBoring" end if Richmond.

Not many people know this.

2018-08-16 Thread Richmond Mathewson via use-livecode
So, mucking around as one does during one's Summer holiday I went looking in the documentation of LiveCode (shock, horror) and could NOT find something that had bubbled up in my diseased mind, so I tried it anyway, and . . . Ye Gods! It worked. Possibly I am reinventing the wheel here: set

Re: Memory related crash??

2018-08-16 Thread David V Glasgow via use-livecode
In the great tradition of answering your own question. I just tried the identical process in LC7 Loading the text file takes memory up to a similar size as in LC 8.1.10, but the script runs successfully and even repeats for multiple collections of keywords without memory pressure rising at