Re: LC Roadmap

2021-02-15 Thread Jim Lambert via use-livecode
> Andre wrote:
> 
> LC is a small company regardless of how much we love them. They can't provide 
> solution to all our needs. It is not because they don't want to, they have 
> limited resources. We can't treat LC as we treat Apple or Microsoft. 

So true. I absolutely marvel at how much the LiveCode Team have accomplished 
and are able to accomplish at their size and budget. I'm grateful for that.

It helps to remember a map is not a journey. Journeys very often diverge from 
the planned map route. See the sad story of TechTV's James Kim.

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: MP3 ID3 tag writer

2020-11-24 Thread Jim Lambert via use-livecode
Thank you for this, Matthias.
Danke sehr.

Jim Lambert

> Matthias wrote:
> 
> Re: MP3 ID3 tag writer
> I just noticed, that the files are not available anymore.
> 
> I've uploaded a zip archive of those files here
> 
> https://dl.qck.nu/?dl=MarkSmith.zip 
> 
> 
> -
> Matthias Rebbe

___
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: reading QR-code on Mac from an imported image

2020-11-23 Thread Jim Lambert via use-livecode
Klaus,

Would this help you?
https://zxing.org/w/decode.jspx

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: Design Question

2020-11-17 Thread Jim Lambert via use-livecode


> The application's core is access to Earth data (that scientists used to 
> develop the theory of plate tectonics) and capturing and annotating plots 
> that can be incorporated into student writing.

If the 'student writing' is created in some other program then wouldn't it be 
sufficient to allow a student to copy text, data and plots from your program 
and paste them into whatever writing program the student uses?

If the 'student writing' is created in your program could their work be 
exported as PDF that is then imported into the 'learning management system" 
and/or shared with the teacher?

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:TIL: JSON validator

2020-10-01 Thread Jim Lambert via use-livecode
Mark,

Thanks for those useful links.

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: Possible : stack with transparent backgound?

2020-09-11 Thread Jim Lambert via use-livecode
Here's an example:
go stack url "https://netrin.on-rev.com/misc/TransparentStack.livecode;


JimL
___
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: Possible : stack with transparent backgound?

2020-09-11 Thread Jim Lambert via use-livecode
> DavidB wrote:
> 
>  the text and some other elements to be visible but the stack background to 
> be transparent 


Start with a card having a field and a button.
1. Create a GRC retangle the same rect as the card.

2. Set its opaque to false.

3. Set its linesize to 0.

4. Send it to back.

5. Group it with the field and a button.

6. Set the threeD of the Group to false.

7. Set both the borderwidth and margins of the group to 0.

8. Import snapshot from this card.

9. Hide last image.

10. Set the windowshape of this stack to the id of the last image.


This results in the field and button 'floating independently' over whatever 
else is on your screen. That is, the rest of the card is invisible.
___
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: Cross Platform Font Layout

2020-08-25 Thread Jim Lambert via use-livecode
Sean wrote:

> Jim,
> 
> You might want to give me more time for this kind of testing 
Granted! I give you all the time in the world.

>  and have a word with my clients to ensure this.
Ah sorry, can't help there, for that would be your job when responding to 
requests for proposals.

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: Cross Platform Font Layout

2020-08-25 Thread Jim Lambert via use-livecode
> Sean wrote:
> 
> So, after developing at a stupid rate, 12 solid 14-18hr days, we have the 
> finished app ... ready for deployment out to Mac and PC. Tick the boxes in 
> the standalone settings, build and open in their respective platforms. 
> 
> Only to find that everything you had laid out perfectly matching on PC is 
> totally screwed on the Mac. Opening up the stack on the Mac, it?s the same 
> thing.  Now with only one day to go 

Knowing that the deliverables would be required to run on Windows and Mac, 
prudent project management would dictate repeated testing on both platforms 
during the "12 solid 14-18 hour days" of development. You might want to adjust 
your testing approach for future projects.

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: Browser Widget and Twitter on iOS 13

2020-08-15 Thread Jim Lambert via use-livecode
Ralph,

Thanks for that switch statement.

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: ProtonMail vs Apple

2020-08-10 Thread Jim Lambert via use-livecode
Yes, Apple's approach is very proprietary. But it is simply not monopolistic. 
Apple does not have a monopoly on smartphones or smartphone OSes.
What they do have is a very strict proprietary control of their products. Some 
argue an overly strict control of their products.

I like my Rolls Royce Phantom, but it's so unfair of Rolls Royce not to offer a 
Phantom with an engine from Volkswagen! ;)

As a consumer or developer if one doesn't like Apple's products and policies 
simply choose to buy and develop elsewhere. If enough folks do likewise, Apple 
will soon change as sales plummet. They did this back in the 90s when they were 
hanging by the thinnest thread and allowed other vendors to sell Mac-compatible 
hardware.

And yes, our laws may indeed need to be adapted for 21st century realities.

I'm going to stop now and this is recursion! ;)

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: ProtonMail vs Apple

2020-08-08 Thread Jim Lambert via use-livecode
BrianM wrote:
> One thing that seems to be missing in this discussion is the point of view of 
> the ?client?, the one who downloads the app and pays for it

True. 
In the U.S. the laws against monopoly (the Sherman Act of 1890, the Clayton Act 
of 1914 and the Federal Trade Commission Act of 1914) are there to promote 
competition amongst companies for the benefit of consumers.   Or our end users.

Do Apple's actions and policies monopolistically harm consumers? Consumer 
behavior itself argues against that. Quite the contrary, consumers are willing 
to pay a premium for Apple products and services. 

Andre notes that Apple exercises a monopoly WITHIN the iOS system. But that is 
a misnomer. Apple has a proprietary system not a monopolistic one. And they 
strictly control it. It's simply not true that "there is nothing iOS users can 
do about that." Yes, there is. Consumers who don't want to buy into Apple’s 
closed system are free to buy elsewhere. Consumers can choose Android or any 
other alternative products. No one is forcing consumers to buy and use Apple 
products, which is what would happen if Apple had an actual monopoly. In fact, 
some consumers prefer Apple's strict proprietary control and are willing to pay 
mucho dinero for it. 

Now look at it from the developers' point of view. Apple makes us jump through 
many more hoops than Android developers do. Apple constantly changes these 
hoops which can seem inexplicably capricious. But is it? Or is it a constant 
effort to assure safe computing for their consumers?

There seems to be an assumption that the 30% cut Apple takes is outrageous. But 
what does a developer get for that Apple %? If you think you can replace what 
Apple offers for less money, then just sell your app on Android and rake in the 
extra bucks. What's stopping you?

The reality is that the vast majority of smartphone apps make little or no 
money, regardless of OS. 
So is it painful to surrender 30% of nothing? ;)

But back to the purpose of this list, aren't we lucky to have LiveCode, a 
development platform that gives us the power to develop for whatever platforms 
make sense for us?

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: ProtonMail vs Apple

2020-08-07 Thread Jim Lambert via use-livecode
"A monopoly refers to when a company and its product offerings dominate a 
sector or industry. Monopolies can be considered an extreme result of 
free-market capitalism  in 
that absent any restriction or restraints, a single company or group becomes 
large enough to own all or nearly all of the market (goods, supplies, 
commodities, infrastructure, and assets) for a particular type of product or 
service. The term monopoly is often used to describe an entity that has total 
or near-total control of a market.”
https://www.investopedia.com/terms/m/monopoly.asp

Even with 58% of the US smartphone market Apple does not actually have a 
monopoly.
Now there may be plenty of good reasons to object to Apple’s app store policies 
but let’s not misuse the term monopoly.

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: ProtonMail vs Apple

2020-08-04 Thread Jim Lambert via use-livecode
That article is an interesting read.

Still these two sentences:

Apple is using its monopoly to hold all of us hostage
Apple’s iOS controls 25% of the global smartphone market (the other 75%, is 
largely controlled by Google’s Android).

are self contradictory. By definition a company with 25% of the market is not a 
monopoly.

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: [ANN] Release 9.6.1 RC-1

2020-07-30 Thread Jim Lambert via use-livecode
LC Team,

Thanks for this release.

FYI. I noticed something I hadn’t seen before when installing earlier LC 
releases on OSX.
I was unable to mount "LiveCodeBusiness-9_6_1_rc_1-Mac.dmg” because a LC 
resource was in use.

Fix. Quit any open LCs first, then mount the dmg.

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: Object naming

2020-07-28 Thread Jim Lambert via use-livecode
Zanzibar Buck-Buck McFate was my lawyer.
One day I asked if I could call him Zanz.
He said, “Nah. Just call me Dave!”

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: Is "import snapshot" without parameters broken?

2020-07-25 Thread Jim Lambert via use-livecode
Brian,

Import Snapshot sans parameters works fine for me in LC 9.6.0 on macOS 10.15.5

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: tsnetGetFile() example using HTTP?

2020-07-18 Thread Jim Lambert via use-livecode
Phil,

Here’s some info on tsnet

https://www.techstrategies.com.au/tsnet-resources/ 


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: [off-topic-ish] do you prefer LC-related content as books or video courses?

2020-07-08 Thread Jim Lambert via use-livecode
Hi André,

I previously always favored printed books.

But now I prefer digital materials that are a combination of text (with 
copiable code!), interactive elements, and supplementary video.
As Richard pointed out LC itself provides "the many learning benefits of direct 
engagement with interactive media.”

IMO, Video is most appropriate when used to convey visual, spatial and temporal 
examples. It’s can also provide a bit of a human touch to the instruction, even 
though it’s utterly mechanical.

So, yeah, I like a combo.

Hope this helps!

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


Platform Divergence

2020-06-23 Thread Jim Lambert via use-livecode
This year’s WWDC shows Apple is moving to a unified ‘system' for all their 
products: Mac, iPhone, iPad, Apple Watch, AppleTV.
The Apple development environment promises to produce a single app capable of 
running on all, or almost all, of Apple devices. This unification promises to 
be quite convenient for Apple developers.

In contrast, over the last decade or so there has been an ever increasing 
divergence in UX between major operating systems: Apple, Windows, Linux, 
Android. The days when systems were so similar that you could rely on the 
commonality of a handful of UI elements across platforms seems over to me. 
That’s troubling because such commonality is fundamental to LiveCode’s approach 
- write once, run everywhere.

In watching WWDC sessions it’s pretty clear that even simple UI elements have 
become more like UX elements having intrinsic and complex properties, such as 
certain visual and behavioral animations. Users readily learn to expect these 
behaviors. Yet such things are increasing difficult to fake with LiveCode’s 
basic palette of objects.

Enter LiveCode Builder and LC Widgets. They offer the promise of 
platform-specific UI elements - a promise fulfilled with some simple elements 
like iOS Native Button or Android Native Field. But I’m concerned that as 
platforms diverge in the interface experiences they present to users, that LC 
and LC developers will have difficulty satisfying users' divergent expectations.

Is my concern valid?

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: Unicode and languages

2020-06-06 Thread Jim Lambert via use-livecode
Not LC native but take a look at Google Translate API 


Jim Lambert

> Language detection
> When you don’t know your source text language — for instance, in 
> user-generated content that doesn’t include a language code — our translation 
> products automatically identify languages with high accuracy.
___
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: Scrolling jitter

2020-06-05 Thread Jim Lambert via use-livecode
Clearly jitterbugs!

___
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: upcoming online conferences

2020-05-10 Thread Jim Lambert via use-livecode
Mark,

Thank for the links and for the Machine Learning intro link.

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: Counting unique items in a file

2020-04-28 Thread Jim Lambert via use-livecode
function getUniqueNames inData,pColumn
split inData by column

split inData[pColumn] by return and return

combine inData[pColumn] by return and space

return inData[pColumn]

end getUniqueNames


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: MP3s

2020-04-13 Thread Jim Lambert via use-livecode
> Richard wrote:
> 
> I miss the simplicity of delivering true stand-alone apps, but with so 
> many of the most lauded features of LC 8-and-later having been 
> implemented as externals, adding some media files to the mix doesn't 
> affect deployment options much.


I suppose one could store the binary data of MP3s or other media within a 
stack’s properties, then extract them to disk for use by a player object.

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: use-livecode Digest, Vol 198, Issue 20

2020-03-18 Thread Jim Lambert via use-livecode
> We are all sorted now.
> 
> Best Regards,
> 
> Heather


Thanks, Heather and Team!

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


Happy 2020!

2020-01-01 Thread Jim Lambert via use-livecode
Have a Happy LiveCode New Year!

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: Setting hidden of lines very slow

2018-12-08 Thread Jim Lambert via use-livecode
>  So I am looking to hide any line that contains no textcolor anywhere.

You might save into a variable the HTMLTEXT of all the lines that contain the 
textcolor.
Also save the HTMLTEXT of the whole field into another variable.
Then in a blink of an eye you can instantly switch between the entire text and 
just the lines with colored characters - and back again.

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: Will it ever be possible place controls over browser widget?

2018-10-05 Thread Jim Lambert via use-livecode

> Herman wrote:
> 
> See my demo here:
> 
> http://forums.livecode.com/viewtopic.php?p=152773#p152773 
> 
> 
> Overlays the widget while this plays a video.

So floating a second stack over the browser as I suggested does work and is 
beautifully demonstrated in Herman’s DemoVideoBack.livecode.zip.

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: Will it ever be possible place controls over browser widget?

2018-10-05 Thread Jim Lambert via use-livecode
> Herman wrote:
> 
> See my demo here:
> 
> http://forums.livecode.com/viewtopic.php?p=152773#p152773 
> 
> 
> Overlays the widget while this plays a video.

So floating a second stack over the browser as I suggested does work and is 
beautifully demonstrated in Herman’s DemoVideoBack.livecode.zip.

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: Will it ever be possible place controls over browser widget?

2018-10-04 Thread Jim Lambert via use-livecode
> Does anyone know if it will ever be possible to place controls on
> layers above a browser widget?


I don’t know if that is in the works or when it may be available.

But you might be able to kludge it now on desktop:
1- place the control (say, a button) that you want to position within the 
browser’s rect in a separate stack;
2- set the window shape of that stack to match the shape of the button;
3- position that ‘button’ stack on top of the browser widget that is in the 
underlain stack.

I haven’t tried it but it may work.

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: [ANN] animationEngine is free now

2018-09-28 Thread Jim Lambert via use-livecode
Malte,

Best of luck!
AE was and is a wonderful tool.

Viele Danke,
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: Being stupid for a change

2018-09-09 Thread Jim Lambert via use-livecode
Richmond, you’re not stupid, just ‘clude’-less. ;)

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: use-livecode Digest, Vol 180, Issue 17

2018-09-08 Thread Jim Lambert via use-livecode
> MarkR wrote:
> 
> Can LiveCode communicate with Bluetooth devices?

There is an extension that comes with an Indy/Business license. mergBLE

From the Dictionary:
"mergBLE is a LiveCode external for iOS and OS X that enables CoreBluetooth 
(BLE) functionality. You can use the external to discover and interact with 
peripherals or advertise your app as a peripheral for others to interact with.”

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: This is disturbing!

2018-09-07 Thread Jim Lambert via use-livecode

> Bob S wrote:
> There is already a string keyword. 
> 

True.   ‘Stringify()’  or ‘’evaluateAsString()’

It’s easy enough to write a function to force string comparisons for those rare 
edge cases like  "6. " is equal to "6.” where the engine automatically converts 
the strings to numbers.

function compareAsStrings string1, string2
return string1 & "a" = string2 & "a"
end compareAsStrings

compareAsStrings("6. ","6.") returns FALSE.

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: This is disturbing!

2018-09-06 Thread Jim Lambert via use-livecode

> RichardG wrote:
> Any suggestions for a new operator token to specify numeric equivalence?

Or maybe to specify string equivalence.

> Did anyone know that "6. " is equal to "6."???

string( "6. “) is not equal to string( "6.”)

where the function string() would tell LC not to try to convert the string into 
a number, but simply leave it as a literal string for comparison purposes.

Of course, another way to prevent LC from converting a textual number into an 
actual number is to append a string to the textual number:

whereas  "6. “  =  "6.”   returns TRUE
 "6. “ & “a” =  "6.” & “a”  returns FALSE.

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: This is disturbing!

2018-09-06 Thread Jim Lambert via use-livecode
> Did anyone know that "6. " is equal to "6."???

It’s somewhat similar to 
value(“h “) is equal to value(“h”), 
while 
“h “ is not equal to “h”.

I’m not disturbed but appreciative that the engine tries to convert both sides 
to numbers when doing a comparison. Just must remember that and use more 
“string-y” ways to compare strings as only strings.
For example other functions can reveal the strings “6. “ and “6.” are not the 
same string, such as length(“6. “) is not equal to length( “6.”).

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: ANN: LC Documentation Cache Cleaner

2018-09-03 Thread Jim Lambert via use-livecode
Mark,

Very handy!

Thanks,
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: [OT] Accommodation in Edinburgh

2018-09-01 Thread Jim Lambert via use-livecode
> Hugh wrote:

> We are (finally!) taking a week's holiday north of the border and want to
> visit Edinburgh 10-15 September.
> Any hotel recommendations? Does not have to be in the city centre!
> 


These are not hotels. But we have stayed at both of these charming apartments.
Hidden Glen was quite near the Tollcross location of the previous LC Conference.
Both are owned by the family that owns The Three Chimneys on Skye, which is an 
exceptionally elegant inn/restaurant.

Old School Tower @ Holyrood Park
1/9 Saint Leonard's Crag, Edinburgh, EH8 9SP
https://www.airbnb.com/rooms/2667737?sug=50 


Hidden Glen Apartments: Glendale
22 Glen Street, Tollcross, Edinburgh, EH3 9JE
https://www.airbnb.com/rooms/8354483?sug=50 


These and others are also directly available through Gillian Taylor & Ewen 
MacAskill’s own site:
www.edinburghhideaways.com 

Stayed at The Scotsman once. They gave us a free upgrade to the penthouse. 
Spectacular! So, of course, we recommend that hotel. ;)
Also The George in New Town is nice.

Hope this helps.

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: How to get word offset all instances of a string in a chunk of text?

2018-08-30 Thread Jim Lambert via use-livecode
> I wrote:
> 
> Then there is also this repeat-less approach using arrays and filter:

> function findWordOffsets pText, pSearchTerm
>   put replaceText(pText,"\W+"," ") into pText
>   split pText by space
>   combine pText with cr and tab
>   filter pText with "*" & tab & pSearchTerm
>   sort numeric pText
>   return pText
> end findWordOffsets

This just doesn’t work in all cases because splitting by space does not assure 
one is splitting by true words.
:(
Sorry about that.

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: How to get word offset all instances of a string in a chunk of text?

2018-08-30 Thread Jim Lambert via use-livecode
> On 30/08/2018 10:24, Keith Clarke via use-livecode wrote:
>> Folks,
>> Is there a single-pass mechanism or more efficient way of returning the 
>> wordOffset of each instance of ?the? in ?the quick brown fox jumped over the 
>> lazy dog? than to use two passes through the text?

Then there is also this repeat-less approach using arrays and filter:

function findWordOffsets pText, pSearchTerm
put replaceText(pText,"\W+"," ") into pText
split pText by space
combine pText with cr and tab
filter pText with "*" & tab & pSearchTerm
sort numeric pText
return pText
end findWordOffsets

put "Then the quick brown fox jumped over "The" very,

very lazy

red dog on the sofa.” into temp   — note the extra spaces and line breaks.

put findWordOffsets(temp, “the”)   
returns:
2   the
8   The
15  the

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: fullscreenmode and rect of a substack on mobile device ?

2018-08-21 Thread Jim Lambert via use-livecode
A shootout between FSM vs. scripted resizing might make a good LC Global 
presentation.
The pros and cons of each. Cases where one may be better than the other. Etc.
Examples.

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: drawing a Barcode without a Barcode font

2018-07-23 Thread Jim Lambert via use-livecode
> Matthias wrote:
> 
> If we print the labels with a thermo printer (203 dpi) then the code cannot 
> be scanned with the values i posted before.
> We  had set the line thickness of the rectangles to 0 and had to increase the 
> width of the black bars and decrease the width of the clear ones.


I wonder if it would make a difference to print snapshots of the graphic group 
rather then the group itself?

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: Regex (matchChunk) help...

2018-06-15 Thread Jim Lambert via use-livecode
Building on what Mark Wieder elegantly wrote:

> MarkW wrote:
> 
>  filter lotsOfText with "*selkirkst*skyrider1*”

function extractStrings lotsOfText, startWord, endWord

replace cr with space in lotsOfText -- Makes sure lotsOfText is just a 
single line

replace startWord with cr & startWord in lotsOfText -- Makes sure a 
line starts with the startWord

replace endWord with endWord & cr in lotsOfText -- Makes sure a line 
ends with the endWord

filter lotsOfText with "*" & startWord & "*" & endWord  — Mark’s 
suggestion

return lotsOfText

end extractStrings


Try it with your original gibberish. I‘ve added a second instance of the string 
you want to extract to show that the function will return all instances.


Use the *selkirkst* function to check whether a *string* contains a

specified pattern. If *selkirkst* includes a pair of parentheses, the

position of the substring matching the part of theregular expression inside

the parentheses is placed in the variables in the *positionVarsList*. The

number of the first character in the matching substring is placed in the

first variable in the positionVarsList, and the number of the last

*selkirkst is

placed in the second **skyrider1*. Additional starting and ending

positions, matching additional parenthetical expressions, are placed in

additional pairs of variables in thepositionVarsList. If the

*selkirkst* function

returns false, the values of the variables in the positionVarsListare not

*selkirkst is

placed in the third **skyrider1*. changed. The string and regularExpression are 
always case-sensitive,

regardless of the setting of the caseSensitive property. (If you need to

make a case-insensitive comparison, use "(?i)" at the start of the

regularExpression to make the match case-insensitive.)


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: Rotating PNG images

2018-03-05 Thread Jim Lambert via use-livecode
With the added WAIT this is a bit more fun to look at.
And it checks for angles > 32767.
You get an error if you set the angle of an image to greater than 32767.

local ang

on spin
   repeat forever
  add 13 to ang
  if ang > 32767 then 
 beep
 put 0 into ang
  end if
  set the angle of image 1 to ang
  if the commandKey is down then 
 --set the angle of image 1 to 0
 exit spin
  end if
  wait 0 ticks
   end repeat
end spin

Again this illustrates that setting the angle of an image does not distort the 
image, whereas rotating an image can distort the image.

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: Rotating PNG images

2018-03-05 Thread Jim Lambert via use-livecode
Richmond wrote:
> LiveCode is incapable of rotating anything other than SVG images
> without a bad case of the "jaggies".

RichardG wrote:
> have you tried setting the angle property instead?

Richmond wrote:
> I set the angle on PNG images and they deteriorate.



I find that

rotate image 1 by 13

will often produce jaggies even if resize quality is best. 
And the distortion increases with every iteration.

However, if find that

set the angle of image 1 to 13

never deteriorates the image.

You can do the following all the livelong day without any jaggies in the image.

local ang

on spin
   repeat forever
  add 13 to ang
  set the angle of image 1 to ang
  if the commandKey is down then 
 set the angle of image 1 to 0
 exit spin
  end if
   end repeat
end spin

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-Magick #11

2018-02-14 Thread Jim Lambert via use-livecode
The LC-Magick Collection is very useful and instructional.
Herman et al, Thank you so much for this.

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: [ANN] Release 9.0.0 DP-11

2017-12-22 Thread Jim Lambert via use-livecode
Nice release!

For anyone playing with the new MAP widget, the dictionary entry for 
regionChanged states:

on regionChanged
   UpdateCoordinateDisplay the centerCoordinate of the target
end regionChanged

command UpdateCoordinateDisplay pCenter
   put item 1 of pCenter into field "latitude"
   put item 2 of pCenter into field "longitude"
end UpdateCoordinateDisplay


That won’t work because it should read ‘the centerCoordinates’not ‘the 
centerCoordinate’.

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: 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 to have the same resolution as the img in
> the LC stack. You cannot improve that without a lot of doctoring, of course,
> because that is the resolution of the source.
Well, the relatively new ‘at size’ addition to snapshot might help here.

Charles, try something like this:

An area of your card holds the fields you want to copy. Put that rect of that 
area into variable myFieldRects
Calculate the width of that rect and place it into variable myRectWidth
Calculate the height of that rect and place it into variable myRectHeight

Now here is where improving the resolution comes in. By using the ‘at size’ 
parameter you can essentially ‘enlarge' the image you capture.
Just put amount of the enlargement you want into variable multiplier.
Let’s say 10 times.
So altogether we have:
Put "20,100,700,150" into myFieldRects

Put 680 into myRectWidth

Put 50 into myRectHeight

put 10 into multiplier

put the windowID of this stack into winID

export snapshot from rect(myFieldRects) of window winID at size (myRectWidth * 
multiplier),(myRectHeight * multiplier) to myimg as JPEG

set clipboarddata["image"] to myimg

Paste into, say, a Word doc.

Now change multiplier to 1 - that will give you an ‘unbenlarged’ image.
Now paste that into the same Word doc and look closely at the difference in 
resolution.

You could try 'as PNG', too.

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: 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 
Mothership contained a prominent field stating the current viability of that 
lesson. Also the lesson’s compatibility/incompatibility with various LC 
versions. 

Perhaps several fields, something akin to the dictionary’s Edition, Introduced, 
OS & Platforms fields.

And if a technique has been deprecated a link to the current alternative 
technique, if any.

Ditto for extensions & widgets.

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: 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 in every smatphone?
> AFAIK a solution is to set up a text file in a web server and let the app 
> installed in each device to check (every second)  if any change occour , but 
> this solution is not efficient.
> Any idea?

Perhaps sockets or pushing app notifications.

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: 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 what they do without an always-on 
> mic connected to the Internet.

Also true. But I suspect recognizing the wake up command can be done entirely 
locally.

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-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, keyframes, etc.

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-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


___
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: 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 manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 first column (the ID) as the key.
> 
> Which is the most straight forward approach to get the second array with the
> name from the second column as the key? 
> 

Not a one-liner!

set the columnDelimiter to ";"
split myList by column -- your original delimiter separated list of two columns
put myList[2] into mySecondArray[1]
put myList[1] into mySecondArray[2]
combine mySecondArray by column
split mySecondArray by CR and “;”

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: 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 your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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

___
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: 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 and hit the delete key, so that all the text 
is on line 1.
Next hit the return key, so that the text is again on two lines and looks just 
as it did before.
Next run:
> put 15 into tChar
> put charToNum(char tChar of field 1) & cr & the metadata of char tChar of
> field 1

Now you only get ’10’, no metadata!

Check the htmltext and it’s identical to the original.

Odd!

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: 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?
https://answers.microsoft.com/en-us/windows/forum/windows_8-performance/screen-resolution-is-lowering/a67543fb-1013-41df-82f3-476a0757627c?auth=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: 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%
> 1280x800:   5.14%
> 1024x768:   4.74%
>  >


The most common USA screen sizes (below) are a bit different from the worldwide 
stats (above).

1366x76819.52%
1920x1080   17.66%
1440x90010.11%
1280x8006.95%
1600x9006.34%
1536x8645.48%

If your app will only be used in certain regions then consulting the 
statcounter site, that Richard shared, can give you such regional reports.

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: [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 a kick out of climbing into a washing machine only to 
pop suddenly out of a refrigerator, much to the startled consternation of the 
people standing in the ‘kitchen’.

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: 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 31, 1969

In fact, converting any integer from -57600 to 86400 into a long date will 
result in Wednesday, December 31, 1969

Convert -57601 to long date will result in…Guess what!
Wednesday, December 30, 1969

JimL



___
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: 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 and cognitive computing systems.

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: 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 pButtonNumber
   put inMe(the target, the clickloc)
end mouseUp

function inMe targ, where
   lock screen
   import snapshot from targ
   set the loc of the last image to the loc of targ
   put within(the last image, where) into returnValue
   delete the last image
   return returnValue
end inMe

Put the mouseUp handler in the graphic script.
The function can go in the graphic, group, card or stack script.

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: 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 height.

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: 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 IOS this is a bit easier.

See 

reachabilityChanged
iphoneReachabilityTarget
iphoneSetReachabilityTarget

 in LC’s dictionary.

"The network connection on iOS devices is generally more transient than normal 
network connections and can change between wireless and wide-area wireless 
(GPRS, 3G, EDGE etc.) transport as it moves, and indeed be lost entirely. As 
the behavior of an application may vary depending on what kind of network 
connection is present it is useful to be able to monitor a given server for the 
type of connection the device currently has to it."

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: [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:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 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: 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
___
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: 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 subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 / swipeEnd / swipeCancel.
> 
> We'd probably also want a 'swipe' message at the end - i.e. there are 
> cases where it is the fact that 'swipe' has happened that you want, and 
> not the details of the process it went through (perhaps swipeEnd would 
> be fine here, though).
> 
> I do like the idea of having the animation of a gesture in the UI being 
> tied to the event - its a nice low-code approach for a very common 
> problem.

How might LC support interactive and interruptible animations as shown in this 
video on Advanced Animations with UIKit?
https://developer.apple.com/videos/play/wwdc2017/230/ 


This capability is generally applicable to any animation using UIKit. Even 
non-moving transitions, such as blurring, are supported in an interactive way.
If supported by LC, it would be useable beyond just moving from card to card or 
swiping out a sidebar.

But of course, the particular capability shown in the video is OS-specific. 
Whereas LC strives to be platform agnostic.

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


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 transitions between screens.
But more and more OSes offer ever more sophisticated animations and transitions 
at the OS level. Users will expect the real things rather than facsimiles.

Admittedly LiveCode may have a difficult time supporting such native features, 
especially as OS vendors seek to differentiate themselves with unique features 
without direct correlates on other OSes.

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: 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
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: 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 "MySomethingLoop"
> repeat with j = 1 to tSomethingElse named "MyOtherLoop"
>   DoSomethingWith i,j
>   exit "MySomethingLoop"
> end repeat
>   end repeat


If we can tolerate 2 extra lines of code we can do nested exits this way:

   repeat with i = 1 to tSomething
  if exitMe = true then exit repeat
  repeat with j = 1 to tSomethingElse
 if exitMe = true then exit repeat
 DoSomethingWith i,j
 put true into exitMe
  end repeat
   end repeat

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: 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
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: 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 dropping the icons BACK onto 
> another card, but only if another icon of the same name does not exist, blah 
> blah blah. YUK! 
> 
> What is needed is for the engine to allow a BUTTON to dynamically be linked 
> to a grapic ON DISK without having to import a graphic object 

Bob,

I may completely misunderstand the issue.  But can’t you have an unseen card 
with all the icons as image objects referencing image files ON DISK.
Then simply set the icon of each to the ID of the appropriate image.

For example,

create a new image
set its filename to “some>path/hand_icon.jpg”
   set the icon of button “hand” to the ID 1003
where 1003 is the id of the referenced image.

In this way there is no ‘copying’, ‘importing’ or ‘relinking’ needed.

And if you don’t want to deal with remembering IDs just name the new image, say 
“hand_icon’ then

  set the icon of button “hand” to the ID of image “hand_icon” 
(optionally - "of card ‘myIcons’")

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: 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 a point in time (e.g. if you have to switch devices)


That peeved me, too. 
So I wrote to Webinarjam suggesting that the addition of a scrub bar on the 
playback video would be an immense improvement in user experience.

Adam from Webinarjam promptly replied:

> Hi Jim,
> This feature has been disabled after numerous requests from users who wanted 
> to ensure that their attendees got to see the full event. We are very sorry 
> for the inconvenience however I would be happy to add your request to our 
> list of feature requests.

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

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:
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
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 auto-resizing”?

How about ‘Group clips 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: 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 bother hiding the otherData if he 
takes advantage of another property of fields - the metadata property:

set the metadata of line 1 of field 1 to otherDataString
set the metadata of line 2 of field 1 to otherDataString2

A field’s metadata is never visible.
Yet the otherData strings will travel along with each line as the user drags 
the the lines up and down. 

LiveCode offers so much flexibility! We can usually have a choice of approaches 
to any problem

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: 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 alphabetically sorted. So it was
> easy, when reloading the array to sort the list always alphabetically to
> refresh the visible list in the field.
> 
> The user can also create a custom sequence of the words in the field by drag
> and drop the lines in individual order. Now I am looking for a smart
> approach to keep the same sort order in the correspondent array. I need the
> custom sort order of the words in case I reload the array later from file to
> get the same sequence of words as the user has sorted them, after extracting
> the words from the array. 

As much as I like arrays, in this case you might consider an ‘old school’ 
approach.
This approach will only work if the stack is writable and that 'plus some data 
per key’ is just text.
And the approach is - keep everything in the scrolling list field - including 
the OtherData. No arrays, no writing files.

Set the tabstops to a number greater than the width of the field.
Set the itemdelimter to tab.
Then put the OtherData of each line into the second item of each line.

As long as there’s no horizontal scrollbar on the field the user will never see 
the OtherData.
Getting item 2 of the hilitedline will always give you the corresponding 
OtherData for the word the user has selected.

Your drag and drop routines should still work. Just remember to save the stack 
each time the user rearranges the line order.

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: 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 subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 target or 
using ‘within’ would be needed to constrain actions taken to the rect of a 
background group.

And since multiple backgrounds are possible, only the script of the topmost 
background seems to be inserted in between the card and stack in the message 
path.
One must click directly on objects within other, lower background groups to 
trigger its handlers.

Thanks,

JimL
 
___
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

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 moves outside of the group the mouseloc is no 
longer placed into the message box.

Next set the backgroundBehaviour of the group to TRUE.

Now wherever the cursor is within the CARD the mouseLoc is placed in the 
message box regardless of whether the cursor is within or without the rect of 
the group.

The dictionary states, "The mouseMove message is sent to the control the mouse 
pointer is over, or to the card if no control is under the mouse pointer.”

It is true that a background group is not 'officially' on a card (rather it’s 
on the background in HyperCard parlance.) But why would the mousemove message 
get passed to the card when the mouse is outside of the background group 
containing that handler?

Is this a bug or expected behavior?

Thanks,
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: 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 width of grp 1 * 2),(the height 
of grp 1 * 2)

If that produces an the image you need just change the command to an export 
snapshot command.

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: 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

___
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: 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 btn ("B" & KOUNT) to numToCodepoint(KOUNT+WAL)
add 1 to KOUNT
end repeat
put the short name of me into fld "RANGE"
unlock screen with visual effect  "scroll right" very fast
end mouseup


on populateMe
put "" into me
lock screen
put the number of buttons of grp UNIlist into nBtns
repeat with x = 1 to nBtns
put the short name of btn x of grp UNIlist into line (nBtns +1) 
- x of me
end repeat
end populateMe


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: 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 the value of the clickline into MAGIC

put baseConvert(MAGIC, 16, 10) into WAL

put 0 into KOUNT

lock screen

repeat for 128 times

set the label of btn ("B" & KOUNT) to numToCodepoint(KOUNT+WAL)

add 1 to KOUNT

end repeat

put the short name of me into fld "RANGE"

end mouseup


on populateMe

put "" into me

lock screen
put the number of buttons of grp UNIlist into nBtns

repeat with x = 1 to nBtns

put the short name of btn x of grp UNIlist into line (nBtns +1) 
- x of me

end repeat

end populateMe


Now execute "send populateMe to the field UNIlist” in the message box

Now click any line of the scrolling list field ‘UNIlist’.

The scrollingligst field should be able to hold considerably more than 1400 
lines.
Result: de-cheesement!

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: 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 the "indention/oudention" by using the left margin and the
> first indent. One can even make this width-adaptive to the num of lines and
> adjust it in a way to make the numbering looking 'right aligned':
> 
> ## LineNumbering technique by Jim Lambert
> ## (applied below by for adaptive and right-aligned indention by -hh).
> ## You need a field "TEXT" of styled Text and a checkButton "ShowNumbers".
> 
> ## -- btn "showNumbers
> on mouseUp
>  if the hilite of me then showNumbers
>  else hideNumbers
> end mouseUp
> 
> ## -- fld "TEXT
> on textchanged
>  if the hilite of btn "showNumbers" then showNumbers
>  else hideNumbers
> end textchanged
> 
> on scrollbardrag
>  if the hilite of btn "showNumbers" then showNumbers
>  else hideNumbers
> end scrollbardrag
> 
> ## card script
> local rg="TEXT"
> 
> on hideNumbers
>  lock screen; lock messages
>  set the liststyle of line 1 to -1 of fld rg to empty
>  set the firstindent of line 1 to -1 of fld rg to 0
>  set the margins of fld rg to 8
>  if there is a grc rg then hide grc rg
>  unlock screen; unlock messages
> end hideNumbers
> 
> on showNumbers
>  lock screen; lock messages
>  set the hgrid of fld rg to true -- adjust to your taste
>  put the num of lines of fld rg into n0
>  -- as an empty last line is ignored by LC:
>  if char -1 of fld rg is cr then add 1 to n0
>  put length(n0) into L
>  set the borderColor of fld rg to "230,230,230"
>  put 10+L*8 into ww
>  repeat with i=1 to L
>set the firstIndent of line 10^(i-1) to 10^i-1 \
>of fld rg to -16-i*8
>  end repeat
>  set the margins of fld rg to (ww+10,8,8,8)
>  set the liststyle of line 1 to -1 of fld rg to "decimal"
>  if there is no grc rg then createNumBack rg
>  show grc rg
>  put the rect of fld rg into rct
>  set points of grc rg to \
>(ww div 2 + item 1 of rct, item 2 of rct) & \
>(ww div 2 + item 1 of rct, item 4 of rct)
>  set linesize of grc rg to ww
>  unlock screen; unlock messages
> end showNumbers
> 
> on createNumBack gg -- adust to your taste
>  if there is no grc gg then create grc rg
>  set style of grc gg to "line"
>  set capstyle of grc gg to "butt"
>  set opaque of grc gg to true
>  set the colorOverlay["color"] of grc rg to "230,230,230"
>  set blendlevel of grc rg to 70
> end createNumBack
> 
> ## known problem: incorrect 'rightalign' if after deleting the last line
> ##   the new last line is an empty one and the length of the num changes.
> ###END_OF_SCRIPT

Hermann,

That’s an elegantly full-featured solution!

JimL
___
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: 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 to that of the editable field + a left margin 
> in which he uses the engine's support for numeric list styles to draw 
> the line numbers:
> 
> on textchanged
>lock screen
>set the htmltext of fld "nums" to the htmltext of me
>set the liststyle of line 1 to -1 of fld nums to "decimal"
>set the scroll of fld "nums" to the scroll of me
> end textchanged
> 
> The only downside I can see to this approach is for memory, as it 
> requires copying the full styled text from the source field into the 
> line number field.


Now that I think about it, I’ve overcomplicated things.
You don’t need two fields at all.
Just set the liststyle of the field that contains your editable text to 
‘decimal’.
Then the lines will be automatically numbered and outdented.
Yet conveniently, the ’text’ and the ‘styledtext’ runs will not ‘contain' the 
numbering since it is a styling.

Of course, this still doesn’t allow you to get rid of the trailing period on 
the numbers.

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 & 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


___
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

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:
http://lists.runrev.com/mailman/listinfo/use-livecode


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

___
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: 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


  1   2   >