Re: Which Monitor to Open LC In

2021-02-23 Thread Devin Asay via use-livecode
Roger,

Perhaps you need to set up Spaces first?

- Devin

> On Feb 22, 2021, at 10:52 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Hmmm, I don’t have that option!?? I’m using LC 9.6.1 in OS 11.2 What is your 
> config?
> 
> Thanks Paul!
> 
> Roger
> 
>> On Feb 22, 2021, at 8:48 PM, Paul Hibbert via use-livecode 
>>  wrote:
>> 
>> Right-click (ctrl-click) on the LC icon in the dock and choose “Options” 
>> then select “Assign to Desktop on Display 1”, should do it.
>> 
>> Paul
>> 
>>> On 22Feb, 2021, at 7:47 PM, Roger Guay via use-livecode 
>>>  wrote:
>>> 
>>> I have a MBP with an external monitor. Does anybody know how to force LC to 
>>> open on the internal display and not the external? It suddenly switched on 
>>> me and I can’t figure out why or how to control it. BTW, the external 
>>> monitor is arranged to be above the MBP display.
>>> 
>>> Thanks,
>>> Roger

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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


SSL Error - question from Stack Overflow

2021-02-16 Thread Devin Asay via use-livecode
Hi all,

I came across this question on stack overflow. I like to try to give good 
LiveCode answers there when I can, just to do a little to boost the reputation 
of the LC community there. But I don’t have a clue on this one.


A Livecode script:
get URL 
"https://www.uspto.gov/patent/laws-and-regulations/patent-term-extension/patent-terms-extended-under-35-usc-156;
Winds up with the following in "the result":

 tsneterr: (56) SSLRead() return error -9806


I tried setting libURLSetSSLVerification to both true and false, but got the 
same error each time. Any ideas why this is happening, and is there a solution?


I verified that this error is returned consistently in the result. Anybody have 
any ideas? Charles, are you lurking perhaps?

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Using MySQL on (headless) Linux

2021-02-01 Thread Devin Asay via use-livecode
Ben,

I have seen the “invalid database type” error on Linux because of a case error. 
Make sure you use “mysql” as the database type, not “MySQL” or anything else 
with upper case letters. LiveCode is not case-sensitive, but Linux is.

Hope this helps.

Devin

> On Feb 1, 2021, at 2:32 PM, Ben Rubinstein via use-livecode 
>  wrote:
> 
> Update. I have managed to get access to the Rev database external by 
> explicitly setting the `externals` property of the stack before saving it (on 
> Mac) to the full path on the linux machine to `revdb.so`.
> 
> Consequently the functions such as `revOpenDatabases` and `revOpenDatabase` 
> no longer throw error 219. Hurrah. Indeed `externalCommands` and 
> `externalFunctions` now list all the expected commands and functions of the 
> database library.
> 
> This is obviously an appalling solution, since it relies on me knowing the 
> exact path to the LiveCode bundle on the destination machine. (My 
> recollection from a decade or so ago is that this property has to already be 
> set at the time that the stack is opened, i.e. it can't be set dynamically. 
> This may be erroneous.) However, it will get me going for now.
> 
> Now my issue is that when the code tries to open the database, 
> `revOpenDatabase` returns "revdberr,invalid database type". That suggests 
> that the drivers aren't found.
> 
> I've tried to get past this using `revSetDatabaseDriverPath`.
> 
> The documentation says
>> Use the revSetDatabaseDriverPath command if you want to place the database
>> drivers your application uses somewhere other than the same folder as the
>> application.
> In fact the drivers are in the standard location, so this shouldn't be 
> needed, but hey... I started by reporting `revGetDatabaseDriverPath` - but 
> calling that causes LiveCode to immediately exit on signal 11. (This was in a 
> try-catch block, but that doesn't stop it crashing out.)
> 
> However, after using `revSetDatabaseDriverPath`, `revGetDatabaseDriverPath` 
> no longer crashes but faithfully reports the value set.
> 
> Unfortunately, this doesn't seem to help - although "set the defaultFolder to 
> revGetDatabaseDriverPath()/put the files" does list the folder which includes 
> dbmysql.so - revOpenDatabase still returns "revdberr,invalid database type".
> 
> Any suggestions gratefully received!
> 
> Ben
> 
> 
> On 01/02/2021 20:24, Ben Rubinstein via use-livecode wrote:
>> Hi Mark,
>> > "error in function handler" is a pretty generic response - sort of the
>> > engine's version of ¯\_(ツ)_/¯. Is the MySQL database local to the server
>> > machine or on a different computer?
>> I should point out that this error is thrown - I take it to mean that the 
>> function isn't even located. I don't think the problem is with the details 
>> of the database connection, I don't think it gets that far.
>> To test this, I've added a call to revOpenDatabases before doing anything 
>> else - sure enough, this throws the same error.
>> > Does this work locally before moving the
>> > stack to the headless linux box?
>> The whole shebang works on my Mac. I tried to see if I could run LiveCode 
>> headless on Mac, to minimise the differences that might be at issue, and got
>> Startup error - cannot run in command line mode
>> I don't know if that's a generic issue that LiveCode can't run headless on 
>> Mac, or if there's something else going on there.
>> Ben
>> On 01/02/2021 19:37, Mark Wieder via use-livecode wrote:
>>> On 2/1/21 11:15 AM, Ben Rubinstein via use-livecode wrote:
 
 With thanks to friends here who helped me install and start using LC on a 
 headless Linux box. I've now another little problem... my stack tries and 
 fails to connect to a MySQL database.
 
 When it attempts to call revOpenDatabase, it throws error 219, "error in 
 function handler". I take it that this means it can't find or hasn't 
 loaded the revdb external.
 
 I've installed livecodecommunity-9.6.1.x86_64, and I launch it with
~/.runrev/components/livecodecommunity-9.6.1.x86_64/LiveCode\ 
 Community.x86_64 -ui 
 
 I can see revdb.so and dbmysql.so are in the Externals directory. Is there 
 something explicit I need to do to load these?
>>> 
>>> "error in function handler" is a pretty generic response - sort of the 
>>> engine's version of ¯\_(ツ)_/¯. Is the MySQL database local to the server 
>>> machine or on a different computer? Does this work locally before moving 
>>> the stack to the headless linux box?
>>> 
>> ___
>> 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
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> 

Re: OT Friendly customers....

2021-01-28 Thread Devin Asay via use-livecode
The H word gets tossed about far too casually nowadays. 

Commenting on alleged abuses perpetrated by government agencies is not hate. 
And if it is, then what are allusions to “dark forces” and “fake news”? 

Regardless, it’s just the wrong forum.

And also, “cheese!” (That’s your cue, ListMom.)

- Devin

> On Jan 28, 2021, at 11:07 AM, Stephen Barncard via use-livecode 
>  wrote:
> 
> Curry,
> 
> Putting down the FBI won’t help anything and makes me think you might be
> partial to the dark forces and fake news. We get enough of the hate through
> other sources and it is unwelcome here.
> 
> 
> On Thu, Jan 28, 2021 at 09:36 Curry Kenworthy via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>> Matthias:
>> 
>>> So in my case it was not scam but just a rude person.
>> 
>> Plenty of those around. Including what comes around.
>> 
>> Manipulative people usually follow 2 tactics.
>> Either buttering up for a favor, or being rude to apply pressure.
>> Sometimes both; they will abruptly switch if one fails.
>> 
>> In which case I tend to grab either popcorn or a flamethrower.
>> Not a huge fan of manipulation.
>> 
>> Doc hawk:
>> 
>>> asking about playing games like “hide the salami”
>> 
>> Careful - from a sandwich point of view,
>> that could potentially imply the "c" word!
>> 
>> Heather:
>> 
>>> Did somebody say cheese??
>> 
>> Probably those damn portrait photographers again!
>> Truly evil people - no souls behind the fake smiles.
>> 
>> (A little humor now and then is the best medicine.)
>> 
>> Paul:
>> 
>>> you should not be surprised some people assume SCAM first
>> 
>> My "unfavorites" were the "Windows tech support" and "Google listings"
>> phone call scams.
>> 
>> Right now during 2020-2021 my breathing isn't good enough for phone
>> conversations anymore, and all calls go to voice mail.
>> 
>> But in previous years those guys would call all the time. They weren't
>> following any rules/laws anyway, so you couldn't get off their list by
>> traditional methods.
>> 
>> So I tried some unorthodox methods - pranking and wasting their time.
>> 
>> I had one of the "Windows tech support" guys passionately defending
>> himself when I asked what his family back in India would think about him
>> becoming a criminal. Another couple of times, I played along with their
>> spiel, got transferred from the little crook to the big crook, and
>> wasted his time too for a while before scolding them and hanging up at
>> the crucial moment. They eventually gave up on me just as I was planning
>> some bigger pranks.
>> 
>> (Our "FBI" is way too busy being a partisan political tool to handle any
>> real crime; no telling how many scams they've allowed to flourish that
>> it is their duty and job description to shut down and prevent.)
>> 
>> But the "Google listings" people were unstoppable. They were operating
>> in more of a legal/moral gray area, and they must have been raking in
>> the $$$. Most persistent I've ever seen/heard. I suppose they are still
>> at it; I just haven't been able to answer the phone for ages.
>> 
>> My "unfavorite" email scam is the one where your email account will be
>> closed unless you log in to verify it or approve the new security
>> measures, etc. A couple of variations on this theme looked very real.
>> 
>> Best wishes,
>> 
>> Curry Kenworthy
>> 
>> Custom Software Development
>> "Better Methods, Better Results"
>> LiveCode Training and Consulting
>> http://livecodeconsulting.com/
>> 
>> ___
>> 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
>> 
> -- 
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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


Loading fonts not working

2020-12-16 Thread Devin Asay via use-livecode
Hi all,

I recently upgraded my Mac to Catalina, and I notice now that I can’t 
dynamically load ttf or otf fonts with ’start using font file….’

I always get the error message ‘can’t load font file’. 

It worked fine before I upgraded. Has anyone else seen this?

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Some sad news

2020-12-04 Thread Devin Asay via use-livecode
I think we all have been dazzled by what Hermann was able to do with LC HTML5. 
Our community has been enriched by Hermann and many others for whom LiveCode 
and the idea of “coding for everyone" is a passion. He will be missed. 
Condolences to his family.

As others have noted, we also remember other LiveCode late-greats: Mark Smith 
and Eric Chatonet. I’m sure I am forgetting someone, but their legacy lives on 
in their generous contributions to the LiveCode developer community, Thanks to 
all who continue to keep their work available.

Devin


> On Dec 4, 2020, at 5:07 AM, Heather Laine via use-livecode 
>  wrote:
> 
> Dear List Folks,
> 
> I have today received some sad news. I am told that Hermann Hoch passed away 
> in April this year, from a stroke. I know many of you knew him either 
> remotely or having met him in person at a conference. He will be missed. I 
> met him myself and found him to be a wonderfully warm and kind person. He 
> could be volatile, but I always felt it was because he cared passionately 
> about things.
> 
> I will take what steps I can to preserve his legacy of HTML5 examples. As 
> these are hosted on an on-rev account we should be able to maintain it in 
> perpetuity for the benefit of the LiveCode Community. 
> 
> LiveCode HTML5 didn't always meet his expectations or progress as fast as he 
> wanted it to and I do wish he could have seen our next planned release, where 
> HTML5 support will be a focus. He was of great benefit to this community and 
> shared his expertise freely. 
> 
> I'm not sure what else I can say. Rest in peace hh, you will be missed :(
> 
> Heather
> 
> 
> Heather Laine
> Customer Services Manager
> LiveCode Ltd
> www.livecode.com
> 
> 
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Script colorization not working

2020-11-19 Thread Devin Asay via use-livecode
Thanks Panos, and Bernd also for the tip on the new version of Source Code Pro.

The student was indeed using Source Code Pro, and when she changed to a 
different font for the script editor, it fixed the problem.

Devin


> On Nov 18, 2020, at 2:26 PM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello Devin,
> 
> A rough guess is that she is on Big Sur. There is a known issue where
> colorization is lost if the default font (Source Code Pro) is used. If this
> is the case, she can try switching to a different font, and the issue will
> be fixed.
> 
> Kind regards,
> Panos
> --
> 
> On Wed, 18 Nov 2020 at 23:18, Devin Asay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi all,
>> 
>> One of my students is having a problem where the script colorization is
>> not working completely. That is, the bold face style is applied for things
>> like **on** mouseUp and **end** mouseUp, and commands are boldfaced. But
>> nothing else is colorized.
>> 
>> We have checked all of her script editor preferences. Colorization is set
>> to default.
>> 
>> There is nothing in the script editor menu that would affect this as far
>> as I can tell.
>> 
>> My student likes script colorization and finds it very helpful, so she’s
>> anxious to get it fixed.
>> 
>> Has anyone ever seen this? Any suggestions for how to fix it?
>> 
>> She’s on Mac, probably Catalina, LiveCode Community 9.6.1.
>> 
>> Devin
>> 
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young University
>> 
>> ___
>> 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
>> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Script colorization not working

2020-11-18 Thread Devin Asay via use-livecode
Thanks, Panos! I believe I did notice that she is using Source Code Pro. I’ll 
have her look into that.

Devin

> On Nov 18, 2020, at 2:26 PM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello Devin,
> 
> A rough guess is that she is on Big Sur. There is a known issue where
> colorization is lost if the default font (Source Code Pro) is used. If this
> is the case, she can try switching to a different font, and the issue will
> be fixed.
> 
> Kind regards,
> Panos
> --
> 
> On Wed, 18 Nov 2020 at 23:18, Devin Asay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi all,
>> 
>> One of my students is having a problem where the script colorization is
>> not working completely. That is, the bold face style is applied for things
>> like **on** mouseUp and **end** mouseUp, and commands are boldfaced. But
>> nothing else is colorized.
>> 
>> We have checked all of her script editor preferences. Colorization is set
>> to default.
>> 
>> There is nothing in the script editor menu that would affect this as far
>> as I can tell.
>> 
>> My student likes script colorization and finds it very helpful, so she’s
>> anxious to get it fixed.
>> 
>> Has anyone ever seen this? Any suggestions for how to fix it?
>> 
>> She’s on Mac, probably Catalina, LiveCode Community 9.6.1.
>> 
>> Devin
>> 
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young University
>> 
>> ___
>> 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
>> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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


Script colorization not working

2020-11-18 Thread Devin Asay via use-livecode
Hi all,

One of my students is having a problem where the script colorization is not 
working completely. That is, the bold face style is applied for things like 
**on** mouseUp and **end** mouseUp, and commands are boldfaced. But nothing 
else is colorized.

We have checked all of her script editor preferences. Colorization is set to 
default.

There is nothing in the script editor menu that would affect this as far as I 
can tell. 

My student likes script colorization and finds it very helpful, so she’s 
anxious to get it fixed.

Has anyone ever seen this? Any suggestions for how to fix it?

She’s on Mac, probably Catalina, LiveCode Community 9.6.1.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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


Audio recording in LC community on Windows?

2020-11-02 Thread Devin Asay via use-livecode
HI all,

From the beginning of Rev/LC we could do basic audio recording cross platform, 
at least on Mac and Windows, using the QuickTime framework. QT went away a few 
years ago, and it took some time for that capability to be restored. On Mac we 
can do it in all LC editions, including Community, using mergMicrophone. 
However the mergMicrophone external is not available on Windows. Now you can do 
audio recording on Windows using camera controls, *but only in Indy and above*. 
In other words, unless I have missed something, Windows Community users have 
lost this functionality. There is no longer feature parity between Mac and 
Windows on Community. That’s a problem for me in teaching LiveCode in my 
college level courses. (Linux users, I’m not trying to ignore you here; I just 
don’t have a firm grasp on what’s possible on Linux.)

So my questions:

- Is there a way to do audio recording in LC Community on Windows that I’m not 
aware of?

- If not, should I approach the mother ship and request that we get feature 
parity on all the desktop platforms?

Thanks all. I look forward to hearing your ideas.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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

2020-10-26 Thread Devin Asay via use-livecode
There is also a measureText() function that might help.

Devin

> On Oct 24, 2020, at 4:35 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Richmond,
> 
>> Am 24.10.2020 um 12:17 schrieb Richmond via use-livecode 
>> :
>> 
>> Over in the Forums someone has asked a question about measuring the length 
>> of text lines.
>> Of course one can count characters, but in most alphabetic systems different 
>> characters have different lengths.
>> Is there a way to measure the length as in LENGTH of a line rather than 
>> count the number of characters it
>> contains?
> 
> ...
> put the formattedwidth of line 1 of fld 1
> ...
> 
>> Richmond.
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University


___
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: What Causes "##string##"

2020-10-02 Thread Devin Asay via use-livecode
Probably when the textAlign property of a line is set to “center”?

> On Oct 2, 2020, at 9:09 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> When setting  htmltext?
> 
> BR
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Converting from unicode to ASCII

2020-09-22 Thread Devin Asay via use-livecode
Hi Jacque,

Have you looked at the normalizeText function? I’m not sure that would help, 
but maybe it’s a start.

But it that doesn’t help, and if nobody ever sees the filenames, why not just 
loop through the string and delete anything that’s not in ASCII range?

Devin

> On Sep 22, 2020, at 4:48 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I have a stack with an index. When a user clicks a line, a handler uses the 
> clicktext to create a file name which is always the clicktext plus the 
> ".livecode" extension. The stack is then downloaded from an AWS server and 
> displayed.
> 
> We are now translating some stacks to other languages which require unicode 
> text. AWS recommends not using accented characters in file names, so we need 
> to translate the clicktext into plain ASCII.
> 
> Is there a good way to do that without using a lookup table or metadata? The 
> file names doesn't need to make sense syntactically. For example,
> 
>   l’Académie française -> lAcademiefrancaise.livecode
> 
> ...or similar, whatever works. The user will never see the file name.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Updating a menubar button on Mac

2020-09-21 Thread Devin Asay via use-livecode
Populate it on mouseDown? I’ve done this lots, but mainly with option menus.

> On Sep 21, 2020, at 4:55 PM, David Epstein via use-livecode 
>  wrote:
> 
> I can use a “mouseEnter” handler to update a menu button’s contents just 
> before the user displays that menu.  But if that menu button is part of the 
> stack’s menubar group on a Mac, the Mac menu does not seem to receive the 
> mouseEnter message and the menu is not updated.  Is there a workaround?  
> Thank you!
> 
> David Epstein
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Basic question about behaviors

2020-08-26 Thread Devin Asay via use-livecode
Only cheese puns.

> On Aug 26, 2020, at 8:20 AM, Martin Koob via use-livecode 
>  wrote:
> 
> Is there a rule regarding puns?
> 
> Martin
> 
>> On Aug 26, 2020, at 9:30 AM, Paul Pystcat via use-livecode 
>>  wrote:
>> 
>> ROFL
>> 
>> THAT was gouda!
>> 
>> (I know, I know!  I broke one of the rules… no politics, no religion and no 
>> cheese)
>> 
>>> On Aug 26, 2020, at 9:09 AM, Mike Kerner via use-livecode 
>>>  wrote:
>>> 
>>> On Tue, Aug 25, 2020 at 12:41 PM Sean Cole (Pi) via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 I LOVE 'this me'. This extraordinary use of coding language is truly where
 LC  shines and why I love it so much, - sometimes. [sigh]
 
 Sean
 
>>> 
>>> and that's why your fonts break - because you "LOVE" - not "love", not
>>> "Love", not "l-o-l-o-l-o-v-e", but "LOVE" "this me".
>>> you're welcome.
>>> ___
>>> 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
>> 
>> 
>> ___
>> 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
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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

2020-06-17 Thread Devin Asay via use-livecode
Ooops! Sorry folks, hit reply without looking at where it was going. Meant for 
Heather, obviously.

Be well, everyone.

Devin

> On Jun 17, 2020, at 9:06 AM, Devin Asay via use-livecode 
>  wrote:
> 
> Heather,
> 
> In light of this we’re going to go ahead and move up our annual 2-license 
> renewal and do them now instead of waiting for them to expire in the Fall.
> 
> Could you send me an invoice so I can get the ball rolling?
> 
> Best wishes, and stay well!
> 
> Devin
> 
> 
>> On Jun 17, 2020, at 8:30 AM, Heather Laine via use-livecode 
>>  wrote:
>> 
>> Dear list folks,
>> 
>> I'm drawing your attention to our crowd funding campaign, which we have just 
>> launched here:
>> 
>> https://livecode.com/covid-19-livecode-impact-fund/ 
>> <https://livecode.com/covid-19-livecode-impact-fund/>
>> 
>> This is an important campaign for LiveCode. If you have a moment please do 
>> go and check it out. 
>> 
>> Warmest Regards,
>> 
>> Heather
>> 
>> Heather Laine
>> Customer Services Manager
>> LiveCode Ltd
>> www.livecode.com
>> 
>> 
>> 
>> ___
>> 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
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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

2020-06-17 Thread Devin Asay via use-livecode
Heather,

In light of this we’re going to go ahead and move up our annual 2-license 
renewal and do them now instead of waiting for them to expire in the Fall.

Could you send me an invoice so I can get the ball rolling?

Best wishes, and stay well!

Devin


> On Jun 17, 2020, at 8:30 AM, Heather Laine via use-livecode 
>  wrote:
> 
> Dear list folks,
> 
> I'm drawing your attention to our crowd funding campaign, which we have just 
> launched here:
> 
> https://livecode.com/covid-19-livecode-impact-fund/ 
> 
> 
> This is an important campaign for LiveCode. If you have a moment please do go 
> and check it out. 
> 
> Warmest Regards,
> 
> Heather
> 
> Heather Laine
> Customer Services Manager
> LiveCode Ltd
> www.livecode.com
> 
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Changing text properties in a field via the IDE

2020-05-19 Thread Devin Asay via use-livecode
Graham,

If you click the lock icon on the property inspector while you’re in edit mode, 
the PI for that object will remain open when you switch back to run mode. 

Hope this helps.

Devin

> On May 19, 2020, at 3:10 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> Well, I am happy to be wrong, so I repeated exactly what you did, of course 
> using my own bit of styled text. It didn’t work - partly because I can only 
> select the text in the field itself in ‘run’ mode, but I can only see the 
> Inspector in ‘edit’ mode. When I switch between the two modes, I can’t do 
> your (5), because I can’t select the text in the pane as you suggest.
> 
> I am sorry to be dumb - I expect you’re right, but it really doesn’t work for 
> me.
> 
> Graham
> 
> 
>> On 19 May 2020, at 19:53, Richard Gaskin via use-livecode 
>>  wrote:
>> 
>> Graham Samuel wrote:
>> 
>>> To an ordinary LC developer, if you can change the properties of the
>>> initial text (to a different size for example) without overtly
>>> selecting it, then the same behaviour can be expected from the IDE
>>> when trying to change text you’ve pasted in. It may or may not be
>>> styled, but the confusing part is that selecting the text in the
>>> Object Inspector has no effect...
>> 
>> I just tried this recipe:
>> 
>> 1. Paste styled text into a field
>> 2. Choose pointer tool
>> 3. Double-click the field to open the Inspector
>> 4. In the Inspector, navigate to the Text pane
>> 5. In that pane, select text, then type Ctrl-B
>> 
>> RESULT: Both the styled text in the Inspector and the styled text in the 
>> field being inspected updates the contents to show the portion I'd changed 
>> to bold.
>> 
>> Is that not working there?
>> 
>> -- 
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ambassa...@fourthworld.comhttp://www.FourthWorld.com
>> 
>> ___
>> 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
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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


Externals Question from Stack Overflow

2020-05-14 Thread Devin Asay via use-livecode
Once more, this time with the link.


Hi all,

I came across a question on Stack Overflow from a sight-impaired user who is 
trying to figure out how to write and test a LiveCode external. I am pretty 
ignorant about externals in general, so I don’t think I can help in this case. 
But if anyone here feels inclined, I think it would help this user, and boost 
the number of responses to LC questions on Stack Overflow.

https://stackoverflow.com/questions/61782950/testing-livecode-external-in-python

Regards,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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


Externals Question from Stack Overflow

2020-05-14 Thread Devin Asay via use-livecode
Hi all,

I came across a question on Stack Overflow from a sight-impaired user who is 
trying to figure out how to write and test a LiveCode external. I am pretty 
ignorant about externals in general, so I don’t think I can help in this case. 
But if anyone here feels inclined, I think it would help this user, and boost 
the number of responses to LC questions on Stack Overflow.

Regards,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Building a standalone warns about duplicate stacks

2020-05-07 Thread Devin Asay via use-livecode
Jaque,

I’ve seen this when building standalones with stacks that are using library 
stacks, and the same library stackflles are included in the standalone build. 
Apparently the included stacks are opened during the build process, thus 
colliding with the library stacks already in memory. If this is the problem, I 
suppose a workaround would be to stop using the library stacks before running 
the build process.

Hope this helps.

Devin


> On May 6, 2020, at 6:07 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> When building a standalone (for mobile in this case) I'm getting repeated 
> messages about stacks already being in memory and asking me what to do with 
> them. Since I have a lot of included stacks I need to make a decision a dozen 
> times. This is different from all the "open*" messages, so that workaround 
> won't help.
> 
> It doesn't happen when I use the Test button to install directly to my phone. 
> I think this is new behavior. Bug?
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: mergAV Select specific rear camera

2020-04-30 Thread Devin Asay via use-livecode
Andrew, 

I’m not sure about mergAV, but if you gave an Indy license you might want to 
check out cameraControl, which keeps getting better with each new release. I 
was playing around with it in 9.6.0DP4 yesterday, and it seems pretty capable. 
It also has the advantage of being cross-platform on Mac, Win, iOS, and Android.

Devin
 

> On Apr 30, 2020, at 9:01 AM, Andrew at MidWest Coast Media via use-livecode 
>  wrote:
> 
> I’m using mergAv to access video on mobile. I can access the front camera but 
> only one of the rear cameras on my iPhone 11, the 1x “normal” lens rather 
> than the 0.5x “wide angle”. Is there a way to access the multiple lenses that 
> Apple has on their newer devices?
> 
> —Andrew Bell 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Livecode HTML5 and SQL

2020-04-29 Thread Devin Asay via use-livecode
That’s good to know, Matthias. So it seems that what you’d have to do is, still 
do the MySQL I/O in LC Server scripts, but also dynamically construct the HTML 
output in your LC server scripts, so that the calling HTML5 app could make 
sense of it. 

Am I interpreting the situation correctly, Matthias?

Devin


> On Apr 29, 2020, at 12:13 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> I was also thinking about using LC Server or PHP scripts, but if i understand 
> it correctly then  "put URL" or "POST.. to URL" aren't  currently supported 
> in the LC HTML5 engine.
> Only "load URL" is supported and only for http / https.
> 
> Matthias
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 29.04.2020 um 20:06 schrieb Devin Asay via use-livecode 
>> :
>> 
>> Colin,
>> 
>> I haven’t tried it myself, but I would think you’d have to write an API 
>> layer using LiveCode Server scripting. All of the MySQL reads and writes 
>> would take place in your .lc scripts on LC Server. Then it would be simple, 
>> RESTful http calls from your HTML5 app. Of course, this all depends upon 
>> whether the internet libraries have been ported over to the HTML5 platform. 
>> LiveCode Server—I’ve done lots. HTML5 deployment, almost none.
>> 
>> Hope this helps.
>> 
>> Devin
>> 
>> 
>>> On Apr 29, 2020, at 9:49 AM, Colin Kelly via use-livecode 
>>>  wrote:
>>> 
>>> Anyone got any insightful ways of READING/WRITING to a mySQL table using 
>>> web-apps developed with Livecode HTML5?
>>> 
>>> 
>>> 
>>> Thanks
>>> 
>>> Col.
>>> 
>>> 
>>> 
>>> -- 
>>> 
>>> Colin Kelly
>>> 
>>> M 07951 920680
>>> 
>>> 
>>> 
>>> ___
>>> 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
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young University
>> 
>> ___
>> 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
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Livecode HTML5 and SQL

2020-04-29 Thread Devin Asay via use-livecode
Colin,

I haven’t tried it myself, but I would think you’d have to write an API layer 
using LiveCode Server scripting. All of the MySQL reads and writes would take 
place in your .lc scripts on LC Server. Then it would be simple, RESTful http 
calls from your HTML5 app. Of course, this all depends upon whether the 
internet libraries have been ported over to the HTML5 platform. LiveCode 
Server—I’ve done lots. HTML5 deployment, almost none.

Hope this helps.

Devin


> On Apr 29, 2020, at 9:49 AM, Colin Kelly via use-livecode 
>  wrote:
> 
> Anyone got any insightful ways of READING/WRITING to a mySQL table using 
> web-apps developed with Livecode HTML5?
> 
> 
> 
> Thanks
> 
> Col.
> 
> 
> 
> -- 
> 
> Colin Kelly
> 
> M 07951 920680
> 
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Can a stack know which standalone engine it's running on?

2020-04-27 Thread Devin Asay via use-livecode
But doesn’t the processor just report on the host operating system? I wan’t to 
know which LiveCode engine is running.

Here’s the scenario:

I have a LiveCode splash screen-type application for which I’ve compiled both 
Windows-32 and Windows-64-bit versions. The standalone opens a stack that 
contains the actual business logic. In my About dialog, I’d like to be able to 
report which LiveCode engine the stack is running under. Do we have a way to 
get that information?

Devin


> On Apr 27, 2020, at 3:56 PM, Mark Waddingham via use-livecode 
>  wrote:
> 
> The version almost uniquely identifies every public engine build - the 
> buildNumber always does.
> 
> The platform together with the processor uniquely identify the target it was 
> built for.
> 
> Warmest Regards,
> 
> Mark.
> 
> Sent from my iPhone
> 
>> On 27 Apr 2020, at 22:43, Devin Asay via use-livecode 
>>  wrote:
>> 
>> The subject line says it. Is there a way for my stack to know which Windows 
>> standalone engine it is running on? For diagnostic purposes I would like to 
>> be able to report the current LiveCode standalone engine. I’m probably 
>> missing something obvious.
>> 
>> Devin
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young University
>> 
>> ___
>> 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
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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


Can a stack know which standalone engine it's running on?

2020-04-27 Thread Devin Asay via use-livecode
The subject line says it. Is there a way for my stack to know which Windows 
standalone engine it is running on? For diagnostic purposes I would like to be 
able to report the current LiveCode standalone engine. I’m probably missing 
something obvious.

Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Scrollbar scale value not showing in Windows

2020-04-22 Thread Devin Asay via use-livecode
Verified on Windows 10. The default size of the scrollbar object obscures the 
scale values. Just increase the height of the scrollbar/slider (if your sb 
orientation is horizontal) or the width of the sb (if the orientation is 
vertical.)

Devin

> On Apr 21, 2020, at 10:01 PM, Devin Asay  wrote:
> 
> Michael,
> 
> Sometimes resizing the scrollbar will reveal the scale values. Does that 
> work? I’m not near my Windows machine, so can’t verify here. I know that on a 
> Mac if the scrollbar bounds are too small the values disappear.
> 
> Devin
> 
> 
>> On Apr 21, 2020, at 9:35 PM, Michael Lew via use-livecode 
>>  wrote:
>> 
>> I have a small app that I've written for my lockdown-affected class, and the 
>> students with Windows can not see the value of 'scale' type scrollbar 
>> controls that have their showValue property set to true, but the Macs can.  
>> Is there a cross-platform trick that I don't know?
>> 
>> Michael lockdown Lew
>> ___
>> 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
> 

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Scrollbar scale value not showing in Windows

2020-04-21 Thread Devin Asay via use-livecode
Michael,

Sometimes resizing the scrollbar will reveal the scale values. Does that work? 
I’m not near my Windows machine, so can’t verify here. I know that on a Mac if 
the scrollbar bounds are too small the values disappear.

Devin


> On Apr 21, 2020, at 9:35 PM, Michael Lew via use-livecode 
>  wrote:
> 
> I have a small app that I've written for my lockdown-affected class, and the 
> students with Windows can not see the value of 'scale' type scrollbar 
> controls that have their showValue property set to true, but the Macs can.  
> Is there a cross-platform trick that I don't know?
> 
> Michael lockdown Lew
> ___
> 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

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

2020-04-20 Thread Devin Asay via use-livecode
In my experience they are persistent throughout a session, sort of like setting 
the defaultFolder.

Devin

> On Apr 20, 2020, at 3:11 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> Are the httpHeaders persistent or do I need to set them before each server 
> call?
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> 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


___
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: Making an iOS app look like one

2020-04-16 Thread Devin Asay via use-livecode
Hi Graham,

TL/DR: It’s doable, but there is a learning curve.

Making your apps look native is doable, but how to get there is a mixed bag. As 
you’ve discovered, you have to use a range of capabilities.

1. Widgets. They are mostly straightforward to figure out. See my lesson at 
http://livecode.byu.edu/objects/widgets.php. I also created a sample stack with 
mobile-appropriate widgets at 
http://dight310.byu.edu/lesson_materials/13-Mobile_native_controls/mobileAndWidgets.livecode

1.a. Control over SVG icons. You have quite a bit of control over which icons 
you can use, by using icon families. See my stack SVG Icon Family Maker in 
Sample Stacks (AKA revOnline). You can go out on the internet and find an SBG 
icon set you like, import them into your stack, and put them into an icon 
family. Then you can set the icon family when you’re choosing icons for your 
SVG widget or Navbar widget.
1.b. Mobile native controls wrapped into widgets. They include the Android 
Native Button, Android Native Field, and iOS Native Button. The Android ones 
seem alright, but the iOS button just displays a label in the app, nothing 
else, no outline or background color. So these widgets seem incomplete. 
Standard LiveCode buttons using custom icons might be a better choice for now.

2. Mobile Native Controls. See my lesson at 
http://livecode.byu.edu/mobile/device-specific.php. I divide them into a few 
different groups.

2.a. Stuff that “just works”. Basically ask and answer dialogs just work right 
on mobile. Easy. Popup keyboards in fields also appear on mobile without any 
effort.

2.b. Stuff that’s pretty easy, but use mobile-specific commands.
- mobilePick - this is probably what you want in place of a radio button group.
- mobilePickDate
- mobilePickPhoto

2.c. Mobile native controls. These have to be completely scripted, but are 
doable. As for sizing and placing, I usually use a place-holder control during 
development and set the rect of the mobile native control to the place holder, 
hiding the place holder when running in the mobile environment.

Sample stack for native controls at 
http://dight310.byu.edu/lesson_materials/13-Mobile_native_controls/testMobileControls.livecode

Hope this helps.

Devin


On Apr 16, 2020, at 9:15 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Folks, I know this is a desperately naive question, but as I progress with my 
first serious attempt at an iOS app, which I’m trying to do in a hurry with 
only my experience of developing LC desktop apps to go on, I am struck by how 
un-iOS-like it looks. Richard Gaskin has already suggested that I look for good 
practice amongst existing apps from all sources, and I’ve tried to do this. 
Where I come unstuck is how to imitate the ‘look’ of such apps.

I am trying, for example by getting the Native Control Widget pack from the LC 
store, and by attempting (but not so far succeeding) to understand the LC 
lesson about Native text controls, especially how I can create such controls in 
the first place.

My app is not outrageously complicated. What it needs is

 -  Fields to display information, some of which must allow input via keyboard 
or pasting. Although there is a Native Android Field widget, there isn’t one 
for iOS, so I don’t know what my options are. I want the kind of fonts and font 
sizes that are typical of iOS, but so far I haven’t found a reference to these 
properties in the LC documentation. I found a command, mobileControlCreate, 
which it appears can only function dynamically in a mobile app, which seems to 
mean I can’t create and place controls until the app is running. I find that 
confusing.

 -  Small, tidy icons, for use as the equivalent of menus or menu items, for 
example acting as links to various settings cards - so typically an image like 
a cogwheel for example. I would like these to be SVG, but none of LC’s SVG 
images have the necessary unchunky look. Do I have to create them from scratch 
(it would not be the end of the world if I did, but I imagine that there’s a 
library of them somewhere).

 -  “Done” type buttons (there is a built in widget for this but it doesn’t end 
up looking like the ‘done’ buttons I see on typical apps) and other buttons to 
start off processes or displays.

 -  Some kind of control that acts like a radio button group, so that one 
option is chosen to the exclusion of any others in the group (I suppose it’s a 
picking list, but I don’t know how to implement such a thing in an 
iOS-compatible way and the widgets on offer are specialised to date and time)

LC Support has been helpful in pointing me at various lessons, but I have 
obviously missed masses of stuff which must be there somewhere. As usual I am 
searching for pointers and examples in order to try to fast track this 
development.

Sorry for asking yet more questions.

Graham



___
use-livecode mailing list

Re: Old Fossil seeks fast track assistance

2020-04-09 Thread Devin Asay via use-livecode
Graham,

Not really visualizing what you’re seeing. When you choose Xcode from your 
LiveCode mobile support preference pane, all you should have to do is navigate 
to Xcode using the Add Entry button, choose Xcode, and the square next to the 
iOS section should turn green. If you see the green square you should be good 
to go to do Test deploys to the iOS Simulator. 

It’s all about the Green Square!

Devin

> On Apr 9, 2020, at 9:23 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> Devin. I was too optimistic in thinking things would now go smoothly! I would 
> very much appreciated your advice on the following:
> 
> Following your advice to your students, I have downloaded and installed the 
> latest XCode I can use on my Mac, which is 10.1. I have set the mobile 
> preferences of my LiveCode 9.5.1 Indy to point to the developer section in 
> the XCode app as you instruct (to be certain, I deleted the default and input 
> the info afresh). I can open a simulator for any of my target iPhones -  but 
> when I try to set the Standalone settings for my current project, I am unable 
> to select iOS as an option, and indeed I don’t see a detailed set of 
> parameters but just a simpler window. (I think it’s called the General 
> Settings) In fact I find that I can’t add or subtract any platform, although 
> I notice that Mac, Windows and Linux all have a green checkmark, which I 
> don’t want! There is supposed to be a Mode Selector accessed by the top left 
> button on this screen, but I am not seeing it.
> 
> I suppose there must be something wrong with my project, which is at an early 
> stage, but features an iPhone shaped card with some buttons on it, at least!
> 
> I suppose the answer is very very simple, but I have not been able to find 
> it. I just can’t see what I’m doing wrong, and if there’s anything in the LC 
> documentation about this, it is not obvious, nor do the LC preferences 
> settings help.
> 
> Sorry for the interruption - I hope you (or someone else on the list) can 
> help as I am now completely stuck as far as proper testing goes.
> 
> Graham
> 
> 
>> On 6 Apr 2020, at 16:55, Devin Asay via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Graham,
>> 
>> I’ve just been through this gauntlet with my students. I provided some links 
>> and lessons for them at http://livecode.byu.edu/mobile/test-deploy-links.php 
>> <http://livecode.byu.edu/mobile/test-deploy-links.php>. I found the process 
>> for setting up Android a little fraught with pitfalls, so I created an 
>> expanded instruction sheet for Android setup, linked to that page.
>> 
>> I’m staying with the latest Stable version of LiveCode for my class, 9.5.1. 
>> I’m running on Mac OS 10.14 Mojave. With this setup I have to use Xcode 10.1.
>> 
>> As a refresher, on developer.apple.com 
>> <http://developer.apple.com/><http://developer.apple.com 
>> <http://developer.apple.com/>>, you need to create your iOS developer 
>> certificate, register all of the UDIDs for your iOS devices, then create a 
>> wildcard provisioning profile for testing your apps. The provisioning 
>> profile must include all devices you want to test on.
>> 
>> A collection of links of instructions for distributing mobile apps: 
>> http://livecode.byu.edu/mobile/mobileAppDistribution.php 
>> <http://livecode.byu.edu/mobile/mobileAppDistribution.php>.
>> 
>> I hope this will all help jog your memory. I find mine needs to be jogged 
>> every time I come back to this mobile stuff after a long time away.
>> 
>> Cheers,
>> 
>> Devin
> 
> ___
> 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

___
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: Building a Board Game

2020-04-07 Thread Devin Asay via use-livecode
Roger,

Rather than moving an object, think about using button icons.  This is the 
basic process:

- on mouseDown: check the icon of the target, set the icon of a hidden, moving 
button to the same icon, set the icon of the target to 0, set a 
flag—isDragging--to true, show the hidden button

- on mouseMove: if isDragging is true, set the loc of the moving button to the 
mouseLoc

- on mouseUp: figure out which square you’re over, set the icon of that button 
to the icon of the moving button, hide moving button, set isDragging to false.

I made a rudimentary chess game that uses this technique, check it out here:

http://dight310.byu.edu/lesson_materials/07-arrays/chessGame-final-key.livecode

Click the Clear Board and Setup Game buttons first to set up the game board 
array. Game state handlers are in the card script; game piece moving handlers 
are in the game board group script.

Hope this helps.

Devin


On Apr 7, 2020, at 1:24 PM, Roger Guay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi all,

I know there must be a simple way to do this but it is escaping me at the 
moment. How can I move an object (grab me on mouseDown) and have it snap to a 
grid (square on a board game) on mouseUp?

Thanks much,

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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Old Fossil seeks fast track assistance

2020-04-06 Thread Devin Asay via use-livecode
Graham,

I’ve just been through this gauntlet with my students. I provided some links 
and lessons for them at http://livecode.byu.edu/mobile/test-deploy-links.php. I 
found the process for setting up Android a little fraught with pitfalls, so I 
created an expanded instruction sheet for Android setup, linked to that page.

I’m staying with the latest Stable version of LiveCode for my class, 9.5.1. I’m 
running on Mac OS 10.14 Mojave. With this setup I have to use Xcode 10.1.

As a refresher, on developer.apple.com, you need to 
create your iOS developer certificate, register all of the UDIDs for your iOS 
devices, then create a wildcard provisioning profile for testing your apps. The 
provisioning profile must include all devices you want to test on.

A collection of links of instructions for distributing mobile apps: 
http://livecode.byu.edu/mobile/mobileAppDistribution.php.

I hope this will all help jog your memory. I find mine needs to be jogged every 
time I come back to this mobile stuff after a long time away.

Cheers,

Devin



On Apr 4, 2020, at 2:38 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi All - sorry this is a bit long, but I need help.

I’m a long term LC developer who more or less retired from development a couple 
of years ago, but I’ve kept on lurking in this list and trying rather 
hopelessly to remain up to date. My experience has been mostly on desktop apps, 
with a little iOS work. I haven’t ever done much on Android. I have just about 
retained my credentials as an Apple developer.

Now I find I really want to develop a mobile app at speed, and deploy it.

I don’t anticipate all that much difficulty in creating my app in the sense of 
designing and coding it - this can call on my own quite extensive experience of 
the past, the LC documentation and this invaluable list. I can reasonable hope 
to create a prototype in a few days. However there is a massive gap: testing 
and deployment.

I don’t have access to my most recent development machine (it’s in another 
country and I’m self-isolating), so I am working with an iMac that can only run 
MacOS High Sierra (and Windows 10 via Parallels, but I was hoping not to go 
there for this project). Now, I clearly need to organise the right version of 
XCode and the right SDK for my iOS development, and I need to do the equivalent 
thing for Android - and I don’t know how to do it.

For iOS, I THINK I need XCode 10.2, which I’m trying to download to replace the 
copy of 9.2 already on my machine. I obviously need to work with a compatible 
SDK. For Android, I don’t know where to start, so for now I am putting this on 
the back burner, but I will have to return to it eventually. Even when I’ve 
lined all this up (if indeed it’s feasible), I then need to remind myself how 
to test via simulators (I used to be good at this, so maybe that is not so 
scary, but I am not at all up to date) and then I need to get the app onto real 
hardware - starting with iPhones, as I’ve got a few of these. I really don’t 
know how to do this for testing, and more so I don’t know how to distribute a 
test version to a small population of testers, although I know this is 
feasible. The whole project may crash and burn at this beta testing stage, so 
actually getting it into the App Store can wait a bit.

Obviously I am not expecting people on this list to hold my hand at every step. 
My main concern is to be guided through the body of LC notes etc to get 
absolutely practical advice and recipes as to what to do at each stage. If I 
study the LC stuff long enough, I will get there, but I would dearly love help 
to fast-track it all.

Thanks

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

___
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: Strange times, amazing projects

2020-04-03 Thread Devin Asay via use-livecode
Skip, have you tried the Google geocoding web service? Give it an address or 
landmark, and get back latitude/longitude coordinates.

https://developers.google.com/maps/documentation/geocoding/start

Fairly simple to get into, a snap to implement in LiveCode, and free until you 
exceed a certain number of accesses.

Devin



On Apr 3, 2020, at 12:50 PM, Skip Kimpel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Good afternoon LC'ers (evening to some),

Enjoyed the Zoom chat today and it was good to see all of your faces
again.  It has been way too long.

Over the past couple of years I have been sidetracked from LC as I have not
had the need to be as hands on as I once was.  Now, however, I am forced to
pull out skill sets and take on projects / challenges that I have not done
in quite some time.  Actually, it is quite exhilarating.

I won't get into details about the project as a whole right now (but I
can't wait to share it with you all when it is done) but I have a challenge
that involves mapping and coordinates and I am trying to wrap my head
around how to accomplish it.

I have delivery zones built in Google Earth and I have delivery addresses.
I need to run through the list of delivery addresses to determine which
delivery zone they fall in.  Sounds simple (or maybe not) but I can't
figure out how to work out the coordinates of the address and filter it
within the perimeter coordinates of the zone.  Hopefully I explained this
clearly.

I realize I will probably have to first run the delivery addresses against
some database that will give me GPS coordinates which I can then use
against my delivery zone kml data.

Has anybody done this before?  Any suggestions?

As always, your input is GREATLY appreciated :)

Best regards,

SKIP KIMPEL
___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Getting started with geographical coordinates

2020-04-03 Thread Devin Asay via use-livecode
Graham,

You get back lat and long in degrees and fractions of degrees, as a decimal 
numeral. For instance, I get latitude: 40.248676 and longitude: -111.651062, 
and for good measure altitude in meters at 1398.380493. Wow, now you all know 
exactly where I am!

Devin



> On Apr 3, 2020, at 1:49 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> This is cheeky but I can’t run up my mobile simulation today - can someone 
> tell me the format of the geographical coordinates produced by 
> mobileSensorReading et al. I mean, is say latitude just one integer showing 
> seconds, or is it deg, min, sec - and are fractional seconds returned (so, 
> floating point)? I shall find out for myself eventually but it would help a 
> little to know now. AFAIKS there’s nothing in the LC documentation about it.
> 
> Graham
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Getting started with geographical coordinates

2020-04-03 Thread Devin Asay via use-livecode
Hi Graham,

As fate would have it I just created a video tutorial for my students on 
reading mobile device sensors.

http://livecode.byu.edu/mobile/devicesensors-index.php

Hope you find these useful.

Devin


On Apr 3, 2020, at 9:18 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi

I am reviving my LiveCode skills in these troubled times, and I want to do 
something that involves the location of a device using GPS. A very rapid 
(obviously too rapid) search of the documentation finds commands like 
iphoneStartTrackingLocation, but no link to a description of how one reads the 
actual geographical coordinates or what form they take. There is a reference to 
CoreLocation, but that hasn’t got a dictionary entry.

Can anyone point me in the right direction. Sorry if it’s obvious.

Thanks in advance

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

___
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: Go to card has become slow

2020-04-02 Thread Devin Asay via use-livecode
I have seen delays when going to a card containing a large image with Resize 
Quality set to “Best”. It was more of an issue on a mobile device, but it’s 
worth looking into.

Devin

> On Apr 2, 2020, at 1:27 PM, Terence Heaford via use-livecode 
>  wrote:
> 
> I have a project that opens at a particular card.
> 
> When I go to another card (any card) it’s very snappy.
> 
> When I return to the original card (from any card) I have noticed a second or 
> two delay before it happens.
> 
> There would appear to be nothing in any script that would account for this.
> 
> Can anyone give some insight as to why this has happened?
> 
> I reinstalled LC to no avail.
> 
> Community 9.5.1
> 
> MacOS 10.15.4
> 
> I read something about font changes on the forum but that seemed to relate to 
> iOS not MacOS.
> 
> I’m at a loss
> 
> 
> Thanks
> 
> Terry
> 
> 
> 
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Android Studio 3.6 breaks LC Android deployment?

2020-03-20 Thread Devin Asay via use-livecode
Thanks for confirming, Paul. I’ll create a bug report.

Done: https://quality.livecode.com/show_bug.cgi?id=22629

Devin

On Mar 20, 2020, at 6:29 AM, Paul Richards via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Devin,

I had the exact same issue, but on Windows.  Having spent many days on this, 
your solution worked - Thank you or sharing.  I could not setup Livecode with a 
clean install of Android Studio 3.6, but having deleted it and  installed v3.5 
- Livecode worked straightway and I was then able to update Studio to v3.6.

Paul


-Original Message-
From: use-livecode 
mailto:use-livecode-boun...@lists.runrev.com>>
 On Behalf Of Devin Asay via use-livecode
Sent: 19 March 2020 22:04
To: How to use LiveCode 
mailto:use-livecode@lists.runrev.com>>
Cc: Devin Asay mailto:devin_a...@byu.edu>>
Subject: Android Studio 3.6 breaks LC Android deployment?

Hi all,

Yesterday I had to install Android mobile tools on my laptop (since I’m having 
to work from home now. I downloaded the newest JDK 1.8 and the newest Android 
Studio (v. 3.6). (LC v. 9.5.1 on Mac 10.14.6).  I spent a frustrating afternoon 
of getting an error every time I tried to specify the Android SKD root in LC 
Mobile Support preferences. Message was "The chosen folder is not a valid 
Android SDK. Please ensure you have installed it correctly, and enabled support 
for 9.0 (API 28)”. Finally after installing and reinstalling everything several 
times, I decided to drop back to Android Studio v. 3.5.3. Suddenly it was 
working again!

Details on the forums here: 
http://forums.livecode.com/viewtopic.php?f=32=33636=189292#p189292

It seems like Android Studio 3.6 breaks Android deployment in LC. Before I 
submit a bug report, I wondered if anyone else has seen this problem?

Devin



Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto: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
___
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

___
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: Problem opening version 9.6.0 (dp3)

2020-03-19 Thread Devin Asay via use-livecode
Bill,

Does this help? It was at the end of the release announcement:

Known issues

- This build (for Mac) is not notarized yet, so if your Mac is running
MacOS Catalina (10.15.x) you will get a warning dialog saying that the app
cannot be opened. In this case, you have to whitelist LiveCode in the
System Settings -> Security and Privacy, and then right-click on LiveCode
and choose "Open" from the contextual menu. Just double-clicking to open it
will not work.

Note that you'll only need to do this once, the very first time you open
LiveCode 9.6 DP-3. For more details and instructions see here:


On Mar 19, 2020, at 8:29 PM, prothero--- via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Folks:
I must be missing something. I downloaded 9.6.0 (dp3) and my Mac OS won’t let 
me open it because claims Apple can’t check it for malware. Hmm…. I’m on a 
Macbook running Catalina, with BitDefender, but turning BitDefender off doesn’t 
change anything.

Something new?
Bill

William A. Prothero
Santa Barbara, CA. 93105
http://earthlearningsolutions.org/

___
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

___
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


Android Studio 3.6 breaks LC Android deployment?

2020-03-19 Thread Devin Asay via use-livecode
Hi all,

Yesterday I had to install Android mobile tools on my laptop (since I’m having 
to work from home now. I downloaded the newest JDK 1.8 and the newest Android 
Studio (v. 3.6). (LC v. 9.5.1 on Mac 10.14.6).  I spent a frustrating afternoon 
of getting an error every time I tried to specify the Android SKD root in LC 
Mobile Support preferences. Message was "The chosen folder is not a valid 
Android SDK. Please ensure you have installed it correctly, and enabled support 
for 9.0 (API 28)”. Finally after installing and reinstalling everything several 
times, I decided to drop back to Android Studio v. 3.5.3. Suddenly it was 
working again!

Details on the forums here: 
http://forums.livecode.com/viewtopic.php?f=32=33636=189292#p189292

It seems like Android Studio 3.6 breaks Android deployment in LC. Before I 
submit a bug report, I wondered if anyone else has seen this problem?

Devin



Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Synchronisation of sound and vision

2020-02-12 Thread Devin Asay via use-livecode
Tore,

You can do audio recording on Mac now using the mergMicrophone library. It 
works great, and I believe is available in every edition of LC, including 
Community.

Devin

> On Feb 12, 2020, at 12:11 PM, Tore Nilsen via use-livecode 
>  wrote:
> 
> Devin,
> I haven’t used callbacks much, and so far I haven’t run in to any problems. 
> If missing callbacks is still an issue, then I agree with you that setting 
> startTime and endTime is the best option. I use this method in a small 
> application I have made for myself where I write comments to audio files 
> handed in by my English students. They can then control playback of the 
> segments I have commented on by clicking links in the field that shows the 
> comments. The lack of audio recording capability on Mac has forced me to use 
> written feedback where I otherwise would have preferred using two players and 
> audio feedback.
> 
> Regards
> Tore
> 
>> 12. feb. 2020 kl. 19:57 skrev Devin Asay via use-livecode 
>> :
>> 
>> Tore,
>> 
>> I would agree if callbacks were 100% reliable. I have tried them in the past 
>> and found that in some cases they were missed. I never had any trouble when 
>> using time indices. But I should say that I haven’t needed to do this for 
>> several years, and the callbacks in the new player object might be 
>> completely reliable.
>> 
>> In other ways creating time indices makes your application more flexible, 
>> however. It’s dead simple, for instance, to set up an application where you 
>> can click on a line of text and play just that line. Set the startTime, set 
>> the endTime, set the playSelection to true, start playing. Done. That would 
>> be a little more challenging if all you had was callbacks.
>> 
>> One of the great things about LiveCode is that there is almost always more 
>> than one way to do what you want.
>> 
>> Regards,
>> 
>> Devin
>> 
>> 
>> On Feb 12, 2020, at 9:55 AM, Tore Nilsen via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Using callbacks negate the need to fiddle with duration or  timescales and 
>> start or stop times. It uses the sampling intervals as is, regardless of 
>> time. In my opinion it is much easier than trying to calculate start and end 
>> times. You can easily handle large audio/video files using callbacks. I 
>> would recommend using one file per poem though, this simplifies the handling 
>> of the messages sent from the player. You can basically use the same message 
>> for all files, resetting a counter variable each time you load a new file to 
>> handle with line you would like to act upon.
>> 
>> You could also store the callbacks for each audio file in a text file and 
>> set the callbacks as a part of the handler used to load each audio file.
>> 
>> Regards
>> Tore
>> 
>> 12. feb. 2020 kl. 16:49 skrev Devin Asay via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Graham,
>> 
>> Take a look at the duration and the timeScale properties of player objects. 
>> By dividing duration by timeScale you get the length of the video in seconds.
>> 
>> 
>> put the duration of player  “foo” / the timescale of player  “foo” into 
>> totalSeconds
>> 
>> What you are contemplating is very doable, but you’ll have to do a fair 
>> amount of work to do to get the synching right. You can take one of several 
>> approaches:
>> 
>> - Calculate times as above to predict when to show/highlight the next line. 
>> Can be tricky with long video files and rounding errors.
>> 
>> - Check the currentTime property of the player to determine the startTime 
>> and endTime of each spoken line, and set the playSelection of the player to 
>> true. When the played segment ends, immediately load the following start and 
>> end times and play again. Something like this, from memory:
>> 
>> set the startTime of player “foo” to 444
>> set the endTime of player “foo” to 999
>> set the currentTime of player “foo” to the startTime of player “foo”
>> set the playerSelection of player “foo” to true
>> start player “foo"
>> - Break up the video or audio file into separate files, one line per file, 
>> then play each succeeding file when the previous one reaches its end. The 
>> playStopped message is your friend here.
>> 
>> Like I said, it’s doable, but takes a bit of thought and planning, creating 
>> segment indexes, that sort of thing.
>> 
>> Hope this helps.
>> 
>> Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Synchronisation of sound and vision

2020-02-12 Thread Devin Asay via use-livecode
Tore,

I would agree if callbacks were 100% reliable. I have tried them in the past 
and found that in some cases they were missed. I never had any trouble when 
using time indices. But I should say that I haven’t needed to do this for 
several years, and the callbacks in the new player object might be completely 
reliable.

In other ways creating time indices makes your application more flexible, 
however. It’s dead simple, for instance, to set up an application where you can 
click on a line of text and play just that line. Set the startTime, set the 
endTime, set the playSelection to true, start playing. Done. That would be a 
little more challenging if all you had was callbacks.

One of the great things about LiveCode is that there is almost always more than 
one way to do what you want.

Regards,

Devin


On Feb 12, 2020, at 9:55 AM, Tore Nilsen via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Using callbacks negate the need to fiddle with duration or  timescales and 
start or stop times. It uses the sampling intervals as is, regardless of time. 
In my opinion it is much easier than trying to calculate start and end times. 
You can easily handle large audio/video files using callbacks. I would 
recommend using one file per poem though, this simplifies the handling of the 
messages sent from the player. You can basically use the same message for all 
files, resetting a counter variable each time you load a new file to handle 
with line you would like to act upon.

You could also store the callbacks for each audio file in a text file and set 
the callbacks as a part of the handler used to load each audio file.

Regards
Tore

12. feb. 2020 kl. 16:49 skrev Devin Asay via use-livecode 
mailto:use-livecode@lists.runrev.com>>:

Graham,

Take a look at the duration and the timeScale properties of player objects. By 
dividing duration by timeScale you get the length of the video in seconds.


put the duration of player  “foo” / the timescale of player  “foo” into 
totalSeconds

What you are contemplating is very doable, but you’ll have to do a fair amount 
of work to do to get the synching right. You can take one of several approaches:

- Calculate times as above to predict when to show/highlight the next line. Can 
be tricky with long video files and rounding errors.

- Check the currentTime property of the player to determine the startTime and 
endTime of each spoken line, and set the playSelection of the player to true. 
When the played segment ends, immediately load the following start and end 
times and play again. Something like this, from memory:

set the startTime of player “foo” to 444
set the endTime of player “foo” to 999
set the currentTime of player “foo” to the startTime of player “foo”
set the playerSelection of player “foo” to true
start player “foo"
- Break up the video or audio file into separate files, one line per file, then 
play each succeeding file when the previous one reaches its end. The 
playStopped message is your friend here.

Like I said, it’s doable, but takes a bit of thought and planning, creating 
segment indexes, that sort of thing.

Hope this helps.

Devin


On Feb 12, 2020, at 5:28 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
 wrote:

Thanks, that’s a start - I will look at the dictionary. I suppose the callbacks 
rely on one analysing how long each line/word takes the performer to say. It’s 
a lot of work, but there’s no way around it since potentially every line takes 
a different length of time to recite. If it’s too much work, I guess I can just 
display the whole text and have one callback at the end of each recording. 
Maybe that is really the practical solution for a large body of work (say all 
the Shakespeare sonnets, for example).

Anyway thanks for the hint.

Graham

On 12 Feb 2020, at 12:16, Tore Nilsen via use-livecode 
mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
 wrote:

You will have to use the callbacks property of the player to do what you want 
to do. The callbacks list would be your cues. From the dictionary:

The callbacks of a player <> is a list of callbacks, one per line. Each 
callback consists of an interval number, a comma, and a message <> name.


Regards
Tore Nilsen


12. feb. 2020 kl. 11:25 skrev Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>:

Folks, forgive my ignorance, but it’s a long time since I considered the 
following and wondered what pitfalls there are.

I have in mind a project where a recording of someone reading a poetry text 
(“old fashioned” poetry in metrical lines) needs to be synchronised to the 
display text itself on the screen, ideally so that a cursor or highlight would 
move from word to word with the speaker, although that would almost certainly 
involve too much work for the deve

Re: Synchronisation of sound and vision

2020-02-12 Thread Devin Asay via use-livecode
Graham,

Take a look at the duration and the timeScale properties of player objects. By 
dividing duration by timeScale you get the length of the video in seconds.


put the duration of player  “foo” / the timescale of player  “foo” into 
totalSeconds

What you are contemplating is very doable, but you’ll have to do a fair amount 
of work to do to get the synching right. You can take one of several approaches:

- Calculate times as above to predict when to show/highlight the next line. Can 
be tricky with long video files and rounding errors.

- Check the currentTime property of the player to determine the startTime and 
endTime of each spoken line, and set the playSelection of the player to true. 
When the played segment ends, immediately load the following start and end 
times and play again. Something like this, from memory:

set the startTime of player “foo” to 444
set the endTime of player “foo” to 999
set the currentTime of player “foo” to the startTime of player “foo”
set the playerSelection of player “foo” to true
start player “foo"
- Break up the video or audio file into separate files, one line per file, then 
play each succeeding file when the previous one reaches its end. The 
playStopped message is your friend here.

Like I said, it’s doable, but takes a bit of thought and planning, creating 
segment indexes, that sort of thing.

Hope this helps.

Devin


On Feb 12, 2020, at 5:28 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Thanks, that’s a start - I will look at the dictionary. I suppose the callbacks 
rely on one analysing how long each line/word takes the performer to say. It’s 
a lot of work, but there’s no way around it since potentially every line takes 
a different length of time to recite. If it’s too much work, I guess I can just 
display the whole text and have one callback at the end of each recording. 
Maybe that is really the practical solution for a large body of work (say all 
the Shakespeare sonnets, for example).

Anyway thanks for the hint.

Graham

On 12 Feb 2020, at 12:16, Tore Nilsen via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

You will have to use the callbacks property of the player to do what you want 
to do. The callbacks list would be your cues. From the dictionary:

The callbacks of a player <> is a list of callbacks, one per line. Each 
callback consists of an interval number, a comma, and a message <> name.


Regards
Tore Nilsen


12. feb. 2020 kl. 11:25 skrev Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>>:

Folks, forgive my ignorance, but it’s a long time since I considered the 
following and wondered what pitfalls there are.

I have in mind a project where a recording of someone reading a poetry text 
(“old fashioned” poetry in metrical lines) needs to be synchronised to the 
display text itself on the screen, ideally so that a cursor or highlight would 
move from word to word with the speaker, although that would almost certainly 
involve too much work for the developer (me), or at least highlight lines as 
they are being spoken. I see that one would inevitably have to add cues to the 
spoken text file to fire off the highlighting, which is indeed an unavoidable 
amount of work, but can it be done at all in LC? For example, what form would 
the cues take?

TIA

Graham
___


___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Do Mac OS apps stop working if your Mac Developer ID Application cert expires?

2020-01-23 Thread Devin Asay via use-livecode
I’ve done lots of test deployments to devices that are registered in my 
wildcard provisioning profile. After the cert expires the app no longer runs on 
the test devices. You have to renew the cert and provisioning profile, re-save 
and reinstall the app on the device if you want it to work again.

I don’t know if it is different if you are distributing with an app-specific 
provisioning profile, since I haven’t tried that.

Devin

> On Jan 23, 2020, at 2:25 PM, Tony Trivia via use-livecode 
>  wrote:
> 
> Hi,
> 
> Anyone know what happens if you let a Mac Developer ID Application cert
> expire? (I'm thinking of apps that are NOT in the Mac app store, but are
> distributed directly to users.)
> 
> I've heard if this cert is revoked, that can block any apps from running
> that were signed with that cert. Just wondering what the effect is if the
> cert just expires.
> 
> Thanks.
> Tony
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Y coordinate for a line of text

2019-11-12 Thread Devin Asay via use-livecode
The selectedLoc function may also be helpful.


> On Nov 12, 2019, at 7:27 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> You may want to look at the Dictionary entry for "measureText"
> 
> 
> On 11/12/2019 1:43 AM, scott--- via use-livecode wrote:
>> I’m needing to know the coordinate (Y is the tricky one) for a line of text. 
>> I’m not do a very good job at calculating it. I think I remember a newish LC 
>> command or function that achieved this but I can’t locate it in the 
>> dictionary. Am I imagining?
>> 
>> --
>> Scott Morrow
>> 
>> Elementary Software
>> (Now with 20% less chalk dust!)
>> web   https://elementarysoftware.com/
>> email sc...@elementarysoftware.com
>> booth1-800-615-0867
>> 
>> --
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Primary Student Livecode Interface (Simplified Developer Interface)

2019-10-10 Thread Devin Asay via use-livecode
RIchmond has an excellent point: your development environment is less important 
than your goal.

The reason that all of us immediately typed ’set the userLevel to 5’ in 
HyperCard is that you wouldn’t get far in your task until you needed a bump-up 
to a higher level of capabilities.

I also teach beginning programming (beginning application development is 
actually a better term), but to college students rather than primary kids. I 
realized recently like a bolt of lightening that I have been spending far too 
much instruction time describing the development environment and too little on 
setting tasks and then telling the students about the tools in LC that let them 
accomplish the task. I don’t know why it took me so long to come to that 
insight, because “need-based” learning is how I learned both HyperCard and 
LiveCode. (And probably how most of us learned.) Now I’m thinking about ways to 
incorporate more task-based instruction into my classes.

But then I’m faced with the paradox that, according to some of the research 
I’ve looked at on teaching programming, large problem solving assignments are 
less effective than focused focused practice in teaching fundamental 
programming concepts. What I take from that is that students are helped by 
“drilling” a concept with canned, focused, smaller tasks than they are by 
setting them a complex problem to solve. So my evolving approach is 1. present 
a concept, 2. do some drill and practice on the concept, 3. set them a more 
complex task that requires them to apply the concept.

I had imagined by this time in my career that I’d have figured this all out. I 
might just be slow. :-)

Devin


On Oct 10, 2019, at 11:48 AM, Richmond via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Well: for starters you are going to have to trawl right through LiveCode and 
decide
which capabilities fall into which of the 5 levels . . .

Then decide who you are going to block, for instance, access to a button script 
at level 4;
or partial blocking as you are going to allow buttons to do some things.

I designed a HyperCard-like set of tools for LiveCode a few years ago because,
over on a Yahoo group, various people who haven't worked a few home truths out 
were
bemoaning having a sophisticated interface to LiveCode instead of a dumed-down 
version: mine
was so dumbed-down it was almost moronic. For "some odd reason"
there were no takers as far as I am aware.

I teach Primary kids LiveCode every summer and we do just fine with the 
standard set of tools:
the kids use exactly what they require and are generally self-limiting.

Richmond.

On 10.10.19 18:53, Devin Asay via use-livecode wrote:
Hi John,

This idea has been discussed over the years, but I don’t know of anyone who has 
implemented it.

The userLevels were:

1 - Browsing - the ability to run and explore stacks, but no ability to make 
changes.
2 - Typing - added the ability to type and edit text in fields.
3 - Painting - added the ability to use the Paint tools to change the appears 
of cards and backgrounds.
4 - Authoring - added the ability to create buttons and fields and to link 
buttons to cards and stacks.
5 - Scripting - gave you full access to all developer components, including 
scripting.

The “magic words” were ’set the userLevel to 5’.

I found this information in my cobwebby brain, but was helped by the 
information on this page: http://folkstream.com/muse/teachhc/using/hcusing.html

Best of luck. I think there are other people here who would be interested in 
this if you find or make something.

Devin

On Oct 10, 2019, at 9:41 AM, JOHN PATTEN via use-livecode 
mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
 wrote:

Good Morning from SoCal,

Quick question, anybody ever develop a simplified LiveCode “developer 
interface/tool“ project?

If you’ve been around awhile, you might remember how HyperCard had multiple 
development modes. Level one allowed you to use drawing tools create buttons 
that would allow you to ”go to next card” etc. Pretty much no script access.

Levels 2-3 gradually provided more capabilities.

If you new the correct procedure, you could completely unlock Hypercard, with 
access to all developer components (Level 4?)

Has anybody created a simplified Livecode developer interface for newbies?  
Something that could be used to introduce, but not initially over whelm a new 
user?

Just trying to not reinvent the wheel, if someone has already gone down this 
path and would be willing to share :)


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Primary Student Livecode Interface (Simplified Developer Interface)

2019-10-10 Thread Devin Asay via use-livecode
Hi John,

This idea has been discussed over the years, but I don’t know of anyone who has 
implemented it.

The userLevels were:

1 - Browsing - the ability to run and explore stacks, but no ability to make 
changes.
2 - Typing - added the ability to type and edit text in fields.
3 - Painting - added the ability to use the Paint tools to change the appears 
of cards and backgrounds.
4 - Authoring - added the ability to create buttons and fields and to link 
buttons to cards and stacks.
5 - Scripting - gave you full access to all developer components, including 
scripting.

The “magic words” were ’set the userLevel to 5’.

I found this information in my cobwebby brain, but was helped by the 
information on this page: http://folkstream.com/muse/teachhc/using/hcusing.html

Best of luck. I think there are other people here who would be interested in 
this if you find or make something.

Devin


On Oct 10, 2019, at 9:41 AM, JOHN PATTEN via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Good Morning from SoCal,

Quick question, anybody ever develop a simplified LiveCode “developer 
interface/tool“ project?

If you’ve been around awhile, you might remember how HyperCard had multiple 
development modes. Level one allowed you to use drawing tools create buttons 
that would allow you to ”go to next card” etc. Pretty much no script access.

Levels 2-3 gradually provided more capabilities.

If you new the correct procedure, you could completely unlock Hypercard, with 
access to all developer components (Level 4?)

Has anybody created a simplified Livecode developer interface for newbies?  
Something that could be used to introduce, but not initially over whelm a new 
user?

Just trying to not reinvent the wheel, if someone has already gone down this 
path and would be willing to share :)

Thank you!
John Patten



Sent from my iPhone

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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 with mobileSetKeyboardType

2019-09-26 Thread Devin Asay via use-livecode
Dan,

I believe it’s because setting keyboard type with a mobile native control is 
done by setting a property with mobileControlSet:

mobileControlCreate "input","_editingField”
mobileControlSet “input”, “keyboardType”, “number”

The mobileSetKeyboardType command works in all other circumstances, including 
with native LiveCode fields.

Devin


> On Sep 26, 2019, at 12:31 PM, Dan Friedman via use-livecode 
>  wrote:
> 
> I am having some trouble with mobileSetKeyboardType.  Can anyone tell me why 
> mobileSetKeyboardType works with this:
> 
> mobileSetKeyboardType "number"
> ask "Enter a number"
> 
> But it doesn’t work with this:
> 
> mobileSetKeyboardType "number"
> mobileControlCreate "input","_editingField"
> mobileControlSet "_editingField","rect","20,20,200,60"
> mobileControlSet "_editingField","text","123"
> mobileControlSet "_editingField","visible",true
> mobileControlDo "_editingField","focus"
> 
> Doesn't seem to matter what I set mobileSetKeyboardType to or when I set it.  
> It always shows the "normal" keyboard.
> 
> Using LiveCode Business 9.5.0, testing on a iPhone X
> 
> -Dan
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Checking the host OS

2019-08-30 Thread Devin Asay via use-livecode
On Aug 30, 2019, at 9:10 PM, Mark Wieder via use-livecode 
 wrote:
> 
>> On 8/30/19 12:22 PM, Devin Asay via use-livecode wrote:
>> 
>> Now that we can build both 32 and 64 bit applications for Windows, it’s 
>> important to be able to tell whether the host OS is 32 or 64 bit.
> 
> Why? If the 64-bit application won't run on the 32-bit system you won't get 
> as far as your scripted test. Am I missing something?

No, I’m just toying with the idea of having a 32-bit launcher that would 
examine the host OS, then launch the proper executable based on whether it is 
32 or 64 bit. Sort of like a poor man’s universal app like we used to create 
for MacOS. It’s possible I’m use way overthinking this. 

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


Checking the host OS

2019-08-30 Thread Devin Asay via use-livecode
Hi all,

I know we can get all manner of information about the host system our stack or 
application is running on, including platform(), processor(), and machine() but 
is there a way to check to see whether the host OS is 32 or 64 bit? The 
platform function on Windows always returns Win32 regardless of which version 
of Windows is running, and the processor reports x86_32 or x86_64, depending on 
the host machine’s CPU.

Now that we can build both 32 and 64 bit applications for Windows, it’s 
important to be able to tell whether the host OS is 32 or 64 bit. But I can’t 
work out if these functions let us get that information. For instance, on my 
Windows 10 64-bit system I get:

The platform: Win32
The processor: x86_64
The machine: x86_64

But I just had a user report that they were unable to run a new build of one of 
my Windows applications, which I had built as 64 bit. I’m sending them a 32-bit 
build, but I got to thinking, would there be a way to check that from within 
LiveCode?

Any ideas?

Devin

Devin Asay
Brigham Young University
___
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: Local files in browser widget

2019-07-12 Thread Devin Asay via use-livecode
On Jul 11, 2019, at 9:34 PM, J. Landman Gay via use-livecode 
 wrote:
> 
> I think I asked this before but it isn't working now. I thought 
> specialFolderPath("resources") was okay for read-only files. It fails on 
> Android.
> 
> put specialFolderPath("resources") & "/tFolder/tFile.html" into tPath
> set the url of widget "browser" to ("file://" & tPath)
> 
> I get an error that the file was not found. It's there, the folder was 
> included in the Copy Files pane in standalone settings. When I insert an 
> answer dialog to view the path, there's a string that ends with 
> "...base.apk/tFolder/tFile.html" so I think that's right.
> 
> Do I need more or fewer slashes?

J,

I don’t think you need the slashes after file: at all. (“file:” & 
specialFolderPath(“resources”) & “/tFolder/tFile.hmtl”) should do it.

Also check case on folder and file names. Case matters in mobile file systems 
in my experience.

D


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: CTD meaning?

2019-06-28 Thread Devin Asay via use-livecode
>> On Jun 28, 2019, at 11:59 AM, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> On 6/28/19 8:30 AM, Martin Koob via use-livecode wrote:
>>> Sent from my iPhone
 On Jun 28, 2019, at 11:17 AM, Curry Kenworthy via use-livecode 
  wrote:
 
 Edit Script Save and Crash - it doesn't have as much crash in it as Crash 
 Script Edit and Crash.
>>> We do have some Crash, Edit script and Crash; Edit script,  Crash, Save and 
>>> Crash; Crash, Crash, Crash and Crash.
>>> ## Vikings descend from the ceiling singing
>>> ## Crash, Crash, Crash, Crash
>>> ## Crash, Crash, Crash, Crash
>>> ## Crash, Crash, Crash, Crashity Crash.
>> 
>> LOL.
>> Have you got anything without Crash in it?
>> 
> 
> IDE: Urgghh!  You can’t have Edit script and Save without any crash in it!

I’ll have your crash. I love it!
___
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: Groups do not receive mouseEnter messages?

2019-06-25 Thread Devin Asay via use-livecode
This is  a great idea, Paul. I was just thinking that might be a good solution, 
especially with the addition of the (relatively) new clipsToRect property of 
fields. When that property is true, a group’s boundaries do not automatically 
snap to the area defined by its child objects. Instead the group’s boundaries 
remain where the developer set them. Given that groups can now have an 
arbitrarily larger area than their child objects, it makes sense that we might 
want the option of treating them more like full-fledged objects than simply a 
container for other objects.

Devin


On Jun 25, 2019, at 11:30 AM, Paul Dupuis via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

There are clearly use cases where it makes sense for a group (such as it it 
just being used to contain or enclose a set of other controls) NOT to received 
mouse event messages.

There are also use cases where it DOES make sense of a group to received mouse 
event messages, such as if you are using a group as a drawing canvas.

Yes, wonderfully in Livecode, most things that can't be done one way, can be 
coded around to work another way.

I would suggest an enhancement to LiveCode to add a property to Groups that 
toggle between:

behave as a container: current group behavior regarding mouse event messages 
[default]
OR
behave as an object: cause the group to received mouse event message (and other 
routine object messages) following the usual rules (i.e. if there is a button 
in the group that has a mouseEnter handler it gets the message when the button 
is entered, but the group gets a message when it is entered, just as if you 
have a small button on top of a large button)

I don't know what to call the proposed property, and I certainly would not, at 
this time, prioritize it. I've submitted nearly 20 bugs in the last 60 days and 
I'd much rather see more of those fixed that a new feature added. That said, a 
property like this could be s solution for both use cases of groups.


___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Groups do not receive mouseEnter messages?

2019-06-25 Thread Devin Asay via use-livecode
I have always thought of a group as a container object, like a card, but 
without a “canvas” that constitutes a part of the object. It’s always made 
sense to me that a group doesn’t get mouse messages, except as they are passed 
from child objects. If the group did get mouse click messages, it would 
complicate things in situations where you want to know which child object was 
clicked on.

A group of audio playback buttons, as it stands now:

on mouseUp
   play audioClip (the short name of the target)
end mouseUp

A group of audio playback buttons, as it would be if the group received mouse 
click messages:

on mouseUp
   if the owner of me is not me then
  play audioClip (the short name of the target)
   end if
end mouseUp

So at least for most of my use cases, the current situation makes the most 
sense to me.

My $.02.

Devin

On Jun 25, 2019, at 9:24 AM, dunbarxx via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I suppose as long as one knows how it works, it can be dealt with.

But there is an issue here, in that a group is not really a control, despite
what the dictionary says. A group has a rect, and one can tell if the
mouseLoc, say, is within that rect (and not necessarily within the rect of a
child control), but one cannot rely on any "ordinary" LC thinking to hold at
all.

I understand that a group is merely a group of controls. If it was a
ghostLike object that only did that, then well and good.

But since it interacts with those controls intrinsically (as, for example,
the way radio buttons behave "natively") and owns most "ordinary" control
properties, well then, dammit, if one makes it opaque and green, it ought to
respond to mouse events.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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

Mobile slider control

2019-03-21 Thread Devin Asay via use-livecode
Hi all,

So native LiveCode scrollbars (sliders, progress bars, and little arrows) look 
really bad on mobile devices. Has anyone produced a widget or just a scripted 
replacement for them?

Thanks,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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

2019-02-11 Thread Devin Asay via use-livecode
I just went through this with my class. To show your user library folder:

1. Open the Terminal application on your Mac, located in 
/Applications/Utilities. 
2. Enter the following command and hit return: 
chflags nohidden ~/Library 
3. You should now be able to see your Library folder, both in the Finder and in 
LiveCode.

> On Feb 10, 2019, at 8:57 AM, Richmond via use-livecode 
>  wrote:
> 
> I have just installed Android studio on my Mac Mini and seem unable to link my
> LiveCode 9.0.0 installation to the SDK because LiveCode seems unable to "see"
> my User/library folder.
> 
> Richmond.
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University


___
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: HTML entity escaping?

2019-01-08 Thread Devin Asay via use-livecode
David, I assume you mean you want to render the named entity as the proper 
glyph? The way to do that is with the htmlText property.

  set the htmlText of fld “foo” to “The book costs 30."

Devin

On Jan 8, 2019, at 6:53 AM, David Bovill via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Is there a way / anyone have a handler to escape named html entities in
Livecode?


,,,

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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-apps for HC

2018-11-30 Thread Devin Asay via use-livecode
The authoritative guide for converting HyperCard stacks to LiveCode is still 
Jacque’s tutorial at https://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html

Devin

On Nov 30, 2018, at 10:02 AM, Ingar Roggen via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hello, André,
I hope you still remember that we met in Las Vegas. I still use HyperCard and 
wonder if it has become easier to port HC-stacks to LiveCode? Do you know if 
there are any apps for that? And if not, would it be difficult to write them?
Regards
Ingar

Sendt fra min iPhone

30. nov. 2018 kl. 14:41 skrev Andre Alves Garzia via use-livecode 
mailto:use-livecode@lists.runrev.com>>:

Kaveh,

I would work which lines should be shown and hidden inside a variable and then 
replace the whole field...

On 30/11/2018 13:07, Kaveh Bazargan wrote:
Yes Andre, that is the line that fixed it, in a split second :-)

But here is a follow-up: Now I want to hide all lines that have no text style 
and only show lines with colored text. I use:

repeat with i = 1 to the number of lines of fld 1
 if the textcolor of line i of fld "text" is not empty then
set the hidden of line i of fld "text" to false
 end if
  end repeat

This is taking time too. Any suggestions how to speed this up?

On Fri, 30 Nov 2018 at 12:12, Andre Alves Garzia via use-livecode 
mailto:use-livecode@lists.runrev.com> 
> wrote:

  There is another tip here in this thread about

  set the hidden of line 1 to -1 of field "the field" to false

  As a single command, it might be better.

  On 30/11/2018 12:07, Kaveh Bazargan via use-livecode wrote:
Thank you guys. I am always embarrassed to ask here as I know
  the answer is
a one liner!!

And Andre the screen was locked already. :-)

On Fri, 30 Nov 2018 at 11:56, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com
  > wrote:

Hi Andre,

Am 30.11.2018 um 12:48 schrieb Andre Alves Garzia via
  use-livecode <
use-livecode@lists.runrev.com
  >:
tied locking the screen first?
tied AND locked?
Andre, you are hardcore! :-D

On 30/11/2018 10:33, Kaveh Bazargan via use-livecode wrote:
I have a text field with some 3500 lines of text. I want to
  ensure all
lines are visible, as I have hidden some before. I use:

repeat with i = 1 the number of lines of fld 1
  set the hidden of line i of fld 1 to false
end repeat

This is taking over 1 minute to complete. I have tried
  removing all
styling
from the text so e.g. backgroundcolor is empty, etc. Same result.

Any suggestions pls?
Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de 


___
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



  ___
  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



--
Kaveh Bazargan
Director
River Valley Technologies  • Twitter 
 • LinkedIn 

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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: finding location on mobile device

2018-11-13 Thread Devin Asay via use-livecode
This has worked for me in the past, but I haven’t tried it in quite some time:

mobileStartTrackingSensor "location", false
put mobileCurrentLocation() into tLocArray
mobileStopTrackingSensor "location"
put "lat: " & tLocArray["latitude"] & cr & "long: " & tLocArray["longitude”] 
into fld "report"

Devin

> On Nov 13, 2018, at 1:06 PM, Mike for GDC via use-livecode 
>  wrote:
> 
> I am trying to find my current lat/long on my android device.  I have played
> around with multiple options including "mobileCurrentLocation" and others.
> I have not been able to find an example of code that does it and works.
> What I want to do is push a button, have the lat/long displayed so as I can
> then "feed" it into a map widget for display.  Does anyone have an example
> of code that does just that?  Thanks.  Mike
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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 find the offset of the last instance of a repeating character in a string?

2018-10-29 Thread Devin Asay via use-livecode
On Oct 29, 2018, at 9:32 AM, Keith Clarke via use-livecode 
 wrote:
> 
> Folks,
> Is there a simple way to find the offset of a character from the ‘right’ end 
> of a string, rather than the beginning - or alternatively get a list of all 
> occurrences?
> 
> I’m trying to separate paths & pages from a list of URLs and so looking to 
> identify the position of the last ‘/‘ character.
> 
> Thanks & regards,
> Keith


There was a discussion on this topic on the list a few years ago, and I saved 
these functions in my script library:

From Peter Brigham:
These are utility functions I use constantly for text processing. 
Offsets(str,cntr) returns a comma-delimited list of all the offsets of str in 
ctnr. Lineoffsets(str,cntr) does the same with lineoffsets. Then you can 
interate over the list of offsets to do whatever you want to each instance of 
str in cntr. I keep them in a utility stack that is in the stackinuse, so it is 
available to all stacks. I don't use regex, as I have never gotten the regex 
syntax to stick in my head firmly enough to find it natural, and in any case 
doing it by script turns out to be as fast or faster.

Peter's lineOffsets function returns a line number for each found char offset. 
I added a function that returns only unique line numbers.

function offsets str,cntr
-- returns a comma-delimited list of
-- all the offsets of str in cntr
put "" into oList
put 0 into startPoint
repeat
put offset(str,cntr,startPoint) into os
if os = 0 then exit repeat
add os to startPoint
put startPoint & "," after oList
end repeat
if oList = "" then return "0"
return item 1 to -1 of oList
end offsets

function lineOffsetsAll str,cntr
-- returns a comma-delimited list of
-- all the lineoffsets of str in cntr
# (returns a line number for ALL instances)
put offsets(str,cntr) into charList
if charList = "0" then return "0"
put the number of items of charList into nbr
put "" into oList
repeat for each item n in charList
put the number of lines of (char 1 to n of cntr) \
& "," after oList
end repeat
return item 1 to -1 of oList
end lineOffsetsAll

# added by Devin Asay
function lineOffsets pStr,pSearchTxt
# (returns only unique line numbers)
put empty into tList
put 0 into tStartLine
repeat 
put lineOffset(pStr,pSearchTxt,tStartLine) into tLineNum
if tLineNum = 0 then exit repeat
add tLineNum to tStartLine
put tStartLine & "," after tList
end repeat
if tList is empty then return "0"
return item 1 to -1 of tList
end lineOffsets

Hope this helps.

Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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

2018-09-11 Thread Devin Asay via use-livecode
On Sep 11, 2018, at 12:14 PM, Mark Wieder via use-livecode 
 wrote:
> On 09/11/2018 10:27 AM, Jerry Jensen via use-livecode wrote:
>> Reminds me of the dyslexic cop that tried to give me an IUD.
>>> On Sep 11, 2018, at 8:18 AM, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> You know, programming comes so naturally to me, it's like it's in my NDA.
> 
> I used to have dialup but now I'm happy with my LSD.

LLO! RTOFL!  -:D

Devin
___
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-07 Thread Devin Asay via use-livecode

On Sep 6, 2018, at 9:56 PM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

You have to open the LC tools palette occasionally. ;) At the top is a big plus 
sign. Clicking that opens a stack/window much as Sample Stacks does. A tabbed 
interface gives access to a number of Libraries, Widgets, and the Store (which 
is barely populated.)

Hey, I just noticed you can hide and show individual widgets from the Widgets 
tab in the Extensions Manager. Click the down arrow next to the widget and it’s 
one of the options. I’m probably the last one to notice that.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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]Silly weekend LC poll

2018-08-25 Thread Devin Asay via use-livecode
“Care” and “loke”. Habits from way back in the HyperCard days.  

Sent from my iPhone

> On Aug 25, 2018, at 1:28 PM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> 
> 
> CHAR  rhymes with far
> LOC rhymes with lock.
> 
> This is at least how i pronounce them. But i am native German and not native 
> English.
> 
> Btw.: due to the fact that LC language is english like,  you should see my 
> comments  and variable names in my scripts.
> They are mixed, some comments are in english some in german, even in one and 
> the same script. It could be that i use tDate in one script and in another  
> one tDatum as date var.
> But that´s an other story.
> 
> Regards,
> 
> Matthias
> 
> 
>> Am 25.08.2018 um 21:07 schrieb J. Landman Gay via use-livecode 
>> :
>> 
>> I wonder how people pronounce two common LC abbreviations. In print you 
>> never notice but in real life I always have to translate what they're 
>> talking about.
>> 
>> How do you pronounce:
>> 
>> CHAR
>> Rhymes with "care"
>> Sounds like smoldering wood
>> 
>> LOC
>> Rhymes with "smoke"
>> Sounds like a deadbolt
>> 
>> I suppose there are others.
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> 
>> ___
>> 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
> 
> 
> ___
> 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
___
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 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 fld "f1"*

and all my font stuff disappeared and everything ended up in the textFont of 
field "f2".

So . . .

The *BIG QUESTION* is how to retain one's "cocktail"
of fonts when taking some text from one field into another one.



The htmlText or rtfText properties should retain all formatting:


  set the htmlText of fld “f2” to the htmlText of fld “f2”

HTH,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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 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 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, 
border, padding, etc. (p19), along with the wonderfully efficient styledText 
array representation of field contents ([p16) and super-useful indented lists a 
la HTML and word processors (p18):
https://downloads.livecode.com/livecode/5_5_4/LiveCodeNotes-5_5_4.pdf

When I revised the htmlText property entry in the dictionary a couple of years 
ago, I incorporated all of the changes to the paragraph  tag, which included 
all of the new paragraph level properties. That’s the only place in the 
dictionary I can think of where a discussion of all of the p-level properties 
together is appropriate. What is still left to be done is to update all of the 
entries for the individual properties that were field-level props only before 
v. 5.5. While the syntax statements have all been updated, there is no note in 
the entries of when they were changed to become p-level. I wish I had the time 
now, but my LC time has been severely reduced by my duties at work the last 
couple of years.

Dictionary editing is a great way for community members to contribute to the LC 
project, and the barrier to entry is much lower than trying to learn enough C 
code to work on the LC engine. It requires attention to detail, but otherwise 
is kind of fun and not difficult.

Cheers,

Devin



Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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] Snakey Problem

2018-08-13 Thread Devin Asay via use-livecode
Richmond,

One of my colleagues who teaches Python uses a cloud-based service called 
PythonAnywhere. The basic plan is free for anyone to use. You access it through 
a web browser. You may find it useful.

Host, run, and code Python in the cloud: 
PythonAnywhere

I have just tapped the extent of my Python system knowledge. ;)

Devin


On Aug 13, 2018, at 2:23 AM, Richmond Mathewson via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Like it or not (and mainly NOT), I have to offer Python to kids this fall . . .

This is a b*gger for several reasons:

1. I love LiveCode.

2. To use Python to any effect apart from rather goofy manipulations with 
numbers and text an install
requires 'modules' which are usually installed using a daft command-line system 
using something call
'PIP' [ "Permanently Injurious Python" perhaps? ] . . . which I have signally 
failed to get to work on either
Macintosh or Linux.

I wonder of anyone knows of a way to install Python 3 on Linux with the main 
GUI modules "bound in":
i.e. a one-stop install.

Frankly, Python, by using this module system seems to defeat itself to a 
certain extent: or, maybe I'm just
spoilt by LiveCode.

This question is very timely as Wednesday is Nag Panchami: the day of snakes!

Richmond.
___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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


When did highlighted text get fixed?

2018-05-30 Thread Devin Asay via use-livecode
Does anyone remember when text on highlighted lines on Mac started working 
properly? That is, when did black text on a dark colored background start 
showing up as white text on a colored background in a list-style field? 
Methinks is was in the 8.0 series, or was it in 7.x?

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: LCG Session Suggestions

2018-04-10 Thread Devin Asay via use-livecode
A couple of years ago, when I was doing lots of dictionary fixes, I created a 
checklist for myself of how to do it and what to look for. Maybe others will 
find it helpful:

https://github.com/asayd/livecode/blob/asayd-docs_editing_checklist/docs/dictionary_editing_checklist.md

Devin

On Apr 10, 2018, at 7:36 AM, Andrew Bell via use-livecode 
> wrote:

Has there been a session where someone showed a bug fix with pull request? I 
recently tried to try a simple contribution (updating a Dictionary entry) and 
found myself struggling (Git virgin). I know there are lots of Github tutorials 
(and Trevor did a tutorial with Git/Levure @ LC Global 17 day 2), but would be 
nice to see a demo explaining LiveCode branches etc.

--Andrew Bell


___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: LCG Session Suggestions

2018-04-10 Thread Devin Asay via use-livecode
Ali,

I notice that in that doc you are still directing people to use the develop-8.2 
branch for submitting PRs for dictionary updates. Is that still the branch you 
want us to use?

Devin

On Apr 10, 2018, at 9:56 AM, Ali Lloyd via use-livecode 
> wrote:

I also recommend reading the docs contribution guide:
https://github.com/livecode/livecode/blob/develop/docs/contributing_to_docs.md
which applies more or less equally to small code changes.

On Tue, Apr 10, 2018 at 4:07 PM Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

My session last month was on setting up to build from source including
submitting a PR. Most of the info is in the screen shots on the slides so
it is easy to skip through the slides.
On Tue, Apr 10, 2018 at 10:31 AM Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

I have finally decided what I will be adding to the September
Sessions

Multi-Core Processing in LC.  No idea how thats gonna happen, but I need
it
for my own projects, so I'll have to find a solution. :D

On Tue, Apr 10, 2018 at 10:29 AM, Tom Glod  wrote:

I would watch that..I was looking for that yesterday, while thinking
about
adding something to the httpd library.

I would watch that one.

On Tue, Apr 10, 2018 at 9:36 AM, Andrew Bell via use-livecode <
use-livecode@lists.runrev.com> wrote:

Has there been a session where someone showed a bug fix with pull
request? I recently tried to try a simple contribution (updating a
Dictionary entry) and found myself struggling (Git virgin). I know
there
are lots of Github tutorials (and Trevor did a tutorial with
Git/Levure
@
LC Global 17 day 2), but would be nice to see a demo explaining
LiveCode
branches etc.

--Andrew Bell


___
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



___
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

___
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

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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

2018-03-30 Thread Devin Asay via use-livecode
On Mar 29, 2018, at 10:34 PM, Mike Kerner via use-livecode 
 wrote:
> 
> I don't want to pretend to be an expert on the topic of writing compilers,
> since I only ever wrote two, both under the watchful obsession of a
> professor, and my lex and parse code were not optimal in either case.  In
> general, they were some of the easiest pieces of large code I ever wrote
> because the grammars were so rigid and rule-based.  Building forgiveness
> into them would have made the poor developer's life easier, even thought
> that meant adding a third pass to try to ascertain context instead of
> blindly aborting when something didn't exactly fit the formula.
> 
> I agree that unquoted literals are not ideal.  I think they should be
> deprecated, and I think they should have been removed in 1986, so add that
> to the LC10 list.  They have always made reading scripts more difficult.
> Readability and approachability are two things that have set xtalk apart.
> Unquoted literals detract from that.

+1

Devin Asay
Director
Office of Digital Humanities
Brigham Young University


___
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 9 and Icon Families

2018-03-14 Thread Devin Asay via use-livecode
Good idea. Done.

I also added my SVG Icon Picker stack.

DNA

On Mar 14, 2018, at 4:29 PM, hh via use-livecode 
> wrote:

Thanks. Please put this on "Sample Stacks" (there are more visitors there).

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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 9 and Icon Families

2018-03-14 Thread Devin Asay via use-livecode
Hi folks,

Couldn’t resist spending some time on the new RC of LC 9. One of the cool new 
features is the ability to add icon families to your instance of LiveCode. 
Using the release notes and the dictionary I worked out how to create and add 
new icon families. This finally makes it possible to use your own custom icons 
in a Nav bar widget, for example.

Try out my stack here (enter in message box):

  go stack URL "https://asay.byu.edu/stacks/IconFamilyMaker.livecode;

Enjoy!

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Background color in an 'answer' dialog?

2018-02-28 Thread Devin Asay via use-livecode

> On Feb 28, 2018, at 10:02 AM, Graham Samuel via use-livecode 
>  wrote:

> While I’m on to explanations, in all my years of using LC and its 
> predecessors, I have never understood what the right hand column in the 
> ‘colors’ tab of the object inspector is for.

Choosing a background pattern (as you’ve discovered.)

> The left hand column is straightforward: one just picks a color, for example 
> “background fill”. But the next column leads to a strange popup list of icons 
> (some are called ‘standard icons’, whatever that means). Why would I want my 
> background fill to be a repeat of a lot of little forward arrows, for example?

“Standard icons” is in an option list, and the next option on the list is 
Default Patterns. That gives you a slightly less-unusable selection of 
background patterns you can apply to your object. The feature is really more 
useful for setting an image of your choice as the background of an object. Just 
import the image and use:

set the backgroundPattern of fld 1 to 10003 # the id of the imported image


> And if I did this by mistake, how can I delete this choice? I could not find 
> a way.

It’s not clearly indicated. Right click on the pattern box in the right column 
and choose “Reset to default”.

> Proper patterns, as in wallpaper, I find easier to understand, even if I’ve 
> never used them. Am I missing some tremendous feature? Or is this just of 
> archeological interest?
> 
See above re setting the backgroundPattern. There are lots of instances where 
it can be useful. A field with a fancy border, for one example.

HTH

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Background color in an 'answer' dialog?

2018-02-28 Thread Devin Asay via use-livecode
Graham,

I think what is happening is that when you run in the IDE the parent stack of 
the answer dialog stack is the LiveCode engine, which sets a 
platform-appropriate background color (or no background color) for all child 
stacks. When you include it in a standalone, your stack-made-standalone becomes 
the parent stack, and whatever background color is set for that stack is 
inherited by the answer dialog stack. At least I have seen this happen with 
standalones that have a stack color set, and I’m fairly certain this is what 
you’re seeing. What happens if you change your main stack’s background color 
then rebuild the standalone?

Devin


On Feb 28, 2018, at 8:01 AM, Graham Samuel via use-livecode 
> wrote:

Craig, you make an excellent point. We now know there is a stack named “answer 
dialog” and that it has properties you can set. Surely the documentation should 
explain this somewhere?

By the way, when I said my red background had disappeared, it hadn’t. It’s just 
that when you I through the script in the IDE, the background comes up white, 
whereas in the standalone (both platforms), it comes up red. A bug, surely? I 
will see if I can boil it down far enough to report it.

Graham

On 28 Feb 2018, at 14:50, dunbarx via use-livecode 
> wrote:

As a follow-up, is there anywhere a list of all IDE stacks? For example, the
stack named "answer dialog", though perfectly logical, is not listed
anywhere, and the names of some stacks, like the script editor, have changed
over the several LC versions.

It is a great way to get oneself in real trouble, but also useful if one
wants red answer dialog boxes.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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


___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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 SSL inside Mysql connection

2018-01-24 Thread Devin Asay via use-livecode
Heribito,

Your revOpenDatabase call is incorrectly formed. The useSSL and autoReconnect 
parameters should be booleans, like this:

put revOpenDatabase(“mysql”, tServer, tDatabaseName, tUser, tPass,true,,,true) 
into tConnectionID

Note also that you have to put the values into the correct parameter sequence, 
leaving empty items for params you are not using.

Hope this helps,

Devin



On Tue, Jan 23, 2018 at 9:01 PM, Heriberto Torrado via use-livecode <
use-livecode@lists.runrev.com> wrote:

Hi,

I'm going crazy trying to make a SSL mysql connection from a Livecode
Stack.
I was searching information in Livecode dictionary and Livecode guides,
but there's not much information about that.

I'm developing a small application for a customer.

This applications will be run inside my customer's premises.

I don't want to build a middleware between that database and the
applications because we don't have the time and resources.

Well, my mysql connection is this:

put revOpenDatabase("MySQL", tserver, tDatabaseName, tuser, tpass,
useSSL=true, autoReconnect) into tResult

But SSL seems not to work.

My questions are:

Is my string database connection well done?
Where do I have to put the client certificates for my MYSQL database?
Could you please send me a couple of small samples?

Thank you very much in advance.

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: LiveCode University bug

2018-01-09 Thread Devin Asay via use-livecode
Andrew,

It’s best just to send them to me; avoids the middleman. :)

I’m in the final stages of creating an updated version that uses much more 
up-to-date content. Perhaps I can send you a “DP” status copy and have you take 
a look at it. I think it’s in pretty good shape except for a final, nagging 
content update bug that I expect to swat this week.

Regards,

Devin


On Jan 9, 2018, at 11:49 AM, Andrew Bell via use-livecode 
> wrote:

I'm getting ready to start a new semester teaching LiveCode using LiveCode 
University. Each time I run this class, I notice some discrepancies between LCU 
and whatever the current version of LC is. Devin Asay is listed as the author, 
but this was purchased through RunRev. I started to file a bug report at 
quality.livecode.com and realized that probably 
isn't the right channel.

Who should bugs be reported to for LiveCode University?

--Andrew Bell


___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: SQL Insert Syntax

2018-01-05 Thread Devin Asay via use-livecode
Bob,

You could try parameterizing your statements as described in the dictionary. 
Also, you don’t want to quote your column names.

put 0,43,500,543 into tRect
put “image “ & quote & “fresh_now.png” & quote into tObj
put “card “ & quote & “Main” & quote into tCard
put false into tVis
revExecuteSQL myID, "insert into arraydata (rect,controlname,owner,visible) 
values(:1,:2,:3,:4)", “tRect" ,”tObj”,”tCard”, “tVis”

This is also best practice, because it protects against SQL injection attacks. 
(Admittedly more of a concern with network databases.)

HTH

Devin


> On Jan 5, 2018, at 2:24 PM, Bob Sneidar via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Possibly, but every sqLite reference I've looked at seems to indicate that I 
> should enclose string values with single quotes, and since my text contains 
> double quotes, I thought that would do the trick. I have tried escaling 
> quotes ie. \" but that doesn't work either. 
> 
> This BTW is why I use sqlYoga, so I don't have to deal with this syntax crap, 
> but I am writing a function that I want to be universally viable. 
> 
> Bob S
> 
> 
>> On Jan 5, 2018, at 13:18 , Devin Asay via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Bob,
>> 
>> Some SQL dialects accept both single and double quotes as string delimiters. 
>> Might that be the problem?
>> 
>> Devin
> 
> 
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: SQL Insert Syntax

2018-01-05 Thread Devin Asay via use-livecode
Bob,

Some SQL dialects accept both single and double quotes as string delimiters. 
Might that be the problem?

Devin

On Jan 5, 2018, at 2:16 PM, Bob Sneidar via use-livecode 
> wrote:

Can anyone find anything wrong with this sqLite insert statement?

INSERT INTO arraydata ("rect","controlname","owner","visible") VALUES 
('0,43,500,543','image "fresh_snow.png"','card "Main"','false')

It doesn't generate an error, but neither does it insert anything! There is a 
primary key column that I don't include because it's supposed to auto increment 
automatically if no column/value is supplied.

Bob S



___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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

2017-12-27 Thread Devin Asay via use-livecode
Thanks, Paul. I did finally get it working, using the old standby—deleting 
LiveCode preferences and then restarting the simulator. Wish I’d thought to try 
that combination earlier. Thanks for your suggestions.

Devin

On Dec 27, 2017, at 3:11 PM, Paul Hibbert via use-livecode 
<use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Devin,

I did just see the same error when launching the simulator for the first time 
(this session), but then I restarted the simulator device and all worked as 
expected, but it was a long laborious process displaying multiple messages.

One trick I’ve used in the past still worked OK. When the simulator does 
finally open, add it’s icon to the dock, now when working on a mobile apps, 
launch the simulator from the dock first, when it does open fully any tests 
sent to the simulator from LC are opened much quicker

LC 9.0.0 (dp11)
Xcode 9.2
Mac OS Sierra 10.13.2

Paul




On Dec 27, 2017, at 11:27 AM, Devin Asay via use-livecode 
<use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Hi all,

I’m heading into my annual foray into teaching mobile development, and so 
testing running stacks in the simulator. For the life of me, I’m unable to get 
a stack to show up in the simulator, where I’ve had little trouble in the past. 
Has something changed?

When I try to test a stack in the simulator I get the “taking a long time to 
launch” message several times. The simulator does launch. Eventually I see the 
message “Unable to start simulation: Simulator session timed out.” This happens 
whether or not the simulator is launched when I hit the Test button in LiveCode.

I’ve tried several different versions of LC and Xcode. All the same result. 
Right now I’m on:

Mac OS 10.12.6
LiveCode 9.0.0 DP 11
Xcode 9.2

Is this a new problem that others are seeing? I’m not finding anything in the 
forums, and have a vague memory of a discussion here about this topic. Any help 
greatly appreciated.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto: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

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto: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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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

Simulator woes

2017-12-27 Thread Devin Asay via use-livecode
Hi all,

I’m heading into my annual foray into teaching mobile development, and so 
testing running stacks in the simulator. For the life of me, I’m unable to get 
a stack to show up in the simulator, where I’ve had little trouble in the past. 
Has something changed?

When I try to test a stack in the simulator I get the “taking a long time to 
launch” message several times. The simulator does launch. Eventually I see the 
message “Unable to start simulation: Simulator session timed out.” This happens 
whether or not the simulator is launched when I hit the Test button in LiveCode.

I’ve tried several different versions of LC and Xcode. All the same result. 
Right now I’m on:

Mac OS 10.12.6
LiveCode 9.0.0 DP 11
Xcode 9.2

Is this a new problem that others are seeing? I’m not finding anything in the 
forums, and have a vague memory of a discussion here about this topic. Any help 
greatly appreciated.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: ArrayToJSON in LCServer ?

2017-11-17 Thread Devin Asay via use-livecode
Alex,

My recollection is that for functions in libraries, like this one, you have to 
find the library stack in the IDE installation and copy it to your server then 
‘start using’ it, in the case of a stack, or ‘include’ it in the case of a .lc 
script. (The former is what I’ve done, I believe.) I’ve done this successfully. 
The hard part is figuring out where the library is stashed in the IDE 
installation.

HTH

Devin

On Nov 17, 2017, at 3:57 PM, Alex Tweedly via use-livecode 
> wrote:

It looks as though arrayToJSON() isn't included in LCServer  (*).

That can't be right - can it ?

Must be something I need to do - but what ?


(*) The dictionary for the array <-> JSON functions don't mention OS or 
Platforms.

My simple test script could be much simpler ...

http://tweedly.co.uk/tryme.lc>"
  row 6, col 5: Function: error in function handler (arraytojson)
  row 6, col 5: put: error in expression

-- Alex.

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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 Devin Asay via use-livecode
Having followed this discussion from digest purgatory while on a conference 
trip, my vote is for “Viewer” as well.

Viewer has these advantages:
 -  not already a token in either LCS or LCB (that I know of)
 -  is descriptive of what it does
 -  is a nice parallel to player, a container for various time-based media.

Viewport is a possibility, but it seems to already have a fairly precise 
technical definition in the computer graphics world.

Canvas is okay, but evokes painting not vector graphics.

My $.02.

Devin


On Nov 8, 2017, at 10:47 AM, Alejandro Tejada via use-livecode 
> wrote:

Martin Koob wrote:
what about calling it a *viewer* object which would then
allow us to view SVGs, images, graphics or any other
drawing or illustration format.

Actually, I like the name "viewer" too, but if we could use
the word "viewer" then "viewport" is more descriptive:

https://en.wikipedia.org/wiki/Viewport

By the way, this new control is a LC9 only widget. Right?

Al

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Beginners Guide?

2017-10-06 Thread Devin Asay via use-livecode
John,

The best place to get the most up-to-date platform support is in the release 
notes. Here’s what is in the release notes for 8.1.7RC3:

Windows
LiveCode supports the following versions of Windows:

Windows XP SP2 and above
Windows Server 2003
Windows Vista SP1 and above (both 32-bit and 64-bit) Windows 7 (both 32-bit and 
64-bit)
Windows Server 2008
Windows 8.x (Desktop)
Windows 10

Note: On 64-bit Windows installations, LiveCode runs as a 32-bit application 
through the WoW layer.

Linux
LiveCode supports the following Linux distributions, on 32-bit or 64-bit 
Intel/AMD or compatible processors:

Ubuntu 14.04 and 16.04
Fedora 23 & 24
Debian 7 (Wheezy) and 8 (Jessie) [server] CentOS 7 [server]

LiveCode may also run on Linux installations which meet the following 
requirements: Required dependencies for core functionality:

glibc 2.13 or later glib 2.0 or later

Optional requirements for GUI functionality:

GTK/GDK 2.24 or later
Pango with Xft support
esd (optional, needed for audio output)
mplayer (optional, needed for media player functionality) lcms (optional, 
required for color profile support in images) gksu (optional, required for 
privilege elevation support)

Note: If the optional requirements are not present then LiveCode will still run 
but the specified features will be disabled.

Note: The requirements for GUI functionality are also required by Firefox and 
Chrome, so if your Linux distribution runs one of those, it will run LiveCode.

Note: It may be possible to compile and run LiveCode Community for Linux on 
other architectures but this is not officially supported.

Mac
The Mac engine supports:

10.6.x (Snow Leopard) on Intel
10.7.x (Lion) on Intel
10.8.x (Mountain Lion) on Intel
10.9.x (Mavericks) on Intel
10.10.x (Yosemite) on Intel
10.11.x (El Capitan) on Intel
10.12.x (Sierra) on Intel


This could easily be updated in the Beginners Guide using Git, but it seems 
like there ought be an automatic way to update the guide as the release notes 
are published.

Devin



On Oct 6, 2017, at 10:37 AM, JOHN PATTEN via use-livecode 
> wrote:

Hi All,

I’m going to be doing some short introductions to some of our teachers about 
LiveCode. I was reviewing the support resources, specifically the Beginners 
Guide. The info seems to need a bit of an update. Is there another link with a 
more current Beginners Guide?

i.e..

General
To use LiveCode you will need:

1024×768 or larger monitor
True color display (16-bit or 32-bit depth)
At least 256Mb of memory
At least 150Mb of disk space (is this still accurate?)
Windows
LiveCode supports the following versions of Windows:

Windows 2000 SP4
Windows XP SP2 and above
Windows Server 2003
Windows Vista SP1 and above (both 32-bit and 64-bit)
Windows 7 (both 32-bit and 64-bit)
Windows Server 2008
Windows 8 and 8.1 Desktop
Additionally, QuickTime 7 or later is required for most multimedia features.

Mac OS X
LiveCode supports the following versions of Mac OS X:

10.3.9 (Panther) on PowerPC
10.4.11 (Tiger) on Intel and PowerPC
10.5.8 and later (Leopard) on Intel and PowerPC
10.6.x (Snow Leopard) on Intel
10.7.x (Lion)
10.8.x (Mountain Lion)
10.9.x (Mavericks)
10.10 (Yosemite)
Linux
The minimal requirements for LiveCode to run on Linux are:

32-bit installation, or a 64-bit linux distribution that has a 32-bit 
compatibility layer
2.4.x or later kernel
glibc 2.3.2 or later X11R5 capable Xserver running locally on a 24-bit display
compositing window manager (optional – required for alpha-blended window shapes)
gtk/gdk/glib (optional – required for native theme support)
pango/xft (optional – required for pdf printing, anti-aliased text and unicode 
font support)
lcms (optional – required for color profile support in JPEGs and PNGs)
gksu (optional – required for elevate process support)
mplayer (optional – required for video playback)
esd (optional – required for audio playback)
Thank  you!

John Patten
SUSD

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Arrow keys in SE

2017-09-26 Thread Devin Asay via use-livecode
Let me second Richard’s observation, but it’s effects are slightly different. 
On the Mac it is standard to be able to use Cmd + right arrow to move to the 
end of a line of text. With auto complete in the new SE that no longer works. 
Anyone else observing that?

Devin

> On Sep 26, 2017, at 3:02 PM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hi Richard,
> 
> The up and down arrow keys should work as expected for navigating in the
> SE, unless you are affected by bug
> http://quality.livecode.com/show_bug.cgi?id=20448 (see also its duplicates)
> 
> Best,
> Panos
> --
> 
> On Tue, Sep 26, 2017 at 9:53 PM, Richard Gaskin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> With the Auto-complete in the new Script Editor I can't seem to use arrow
>> keys to navigate in text anymore - the Up and Down keys keep bringing up
>> the suggestions popup.
>> 
>> Is there a way to use the Up and Down arrow keys for navigation in the SE?
>> 
>> --
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ambassa...@fourthworld.comhttp://www.FourthWorld.com
>> 
>> ___
>> 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
>> 
> ___
> 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

Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

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

2017-09-18 Thread Devin Asay via use-livecode
Sorry, I should have said “Use 'before menuPick' or 'after menuPick' instead of 
‘on menuPick’.


On Sep 18, 2017, at 5:21 PM, Devin Asay via use-livecode 
<use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Bob,

Maybe the best way to do this is to use the before or after control structure 
in the behavior, rather than the menuPick.

before menuPick pItem
 # do common behavior stuff here
end menuPick

That leaves the menuPick handler unencumbered in the actual object.

Devin

On Sep 18, 2017, at 5:14 PM, Bob Sneidar via use-livecode 
<use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
 wrote:

Hi all.

I've decided to start in on behaviors now as I have so much code that is 
effectively identical. So I took the code from a menu/button with a menuPick 
handler and put it in another button, then set the behavior of the first button 
to the long id of the second. I then set a breakpoint in the behavior script. I 
still have a menuPick handler in the first button to handle special case menu 
items for that card, but I commented out the code that is common between them.

The trouble is, selecting the menu item does not trigger the behavior. I tried 
setting pass menuPick in each one, but still no bueno. So which one gets the 
message first/at all? The behavior or the actual button?

Bob S



___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com><mailto: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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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

2017-09-18 Thread Devin Asay via use-livecode
Bob,

Maybe the best way to do this is to use the before or after control structure 
in the behavior, rather than the menuPick.

before menuPick pItem
  # do common behavior stuff here
end menuPick

That leaves the menuPick handler unencumbered in the actual object.

Devin

On Sep 18, 2017, at 5:14 PM, Bob Sneidar via use-livecode 
> wrote:

Hi all.

I've decided to start in on behaviors now as I have so much code that is 
effectively identical. So I took the code from a menu/button with a menuPick 
handler and put it in another button, then set the behavior of the first button 
to the long id of the second. I then set a breakpoint in the behavior script. I 
still have a menuPick handler in the first button to handle special case menu 
items for that card, but I commented out the code that is common between them.

The trouble is, selecting the menu item does not trigger the behavior. I tried 
setting pass menuPick in each one, but still no bueno. So which one gets the 
message first/at all? The behavior or the actual button?

Bob S



___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: common code patterns

2017-08-10 Thread Devin Asay via use-livecode
I’d like to see one like this for conditional structures:

if  then
  -- do if true
else
  -- do if false
end if

I always try to use the “full” form of if-then-else. It solves lots of 
confusion when you end up with nested if-thens. I teach my students to do it 
this way as best practice, and I think it reinforces the idea of a completely 
formed and terminated structure.


Devin

> On Aug 10, 2017, at 6:42 PM, Monte Goulding via use-livecode 
>  wrote:
> 
> Over on the Parent of Target thread we are discussing local var access so I 
> wonder if this is a useful common pattern:
> 
> local s
> 
> command set p
>   put p into s
> end set
> 
> function get
>   return s
> end get
> 
> Cheers
> 
> Monte
> ___
> 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

Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

___
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: common code patterns

2017-08-10 Thread Devin Asay via use-livecode

On Aug 10, 2017, at 11:30 AM, J. Landman Gay via use-livecode 
> wrote:

How about every time I write a "case" statement inside a switch construct, the 
editor adds a blank line and then "break”?



+2! Yes please.

Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: common code patterns

2017-08-10 Thread Devin Asay via use-livecode

On Aug 10, 2017, at 10:25 AM, Ralph DiMola via use-livecode 
> wrote:

Monte,

I find that I do this quite often

local tIndex
put 1 into tIndex
repeat for each line tLine in tLines
add 1 to tIndex
end repeat

What would be very help full is the construct:

repeat for each line tLine in tLines index tIndex
end repeat

This eliminates 3 lines.


+1. I like this idea because I end of doing something similar a lot. Maybe this 
sounds a little more x-codish:

repeat for each line tLine in tLines with [counter] tIndex
end repeat

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Importing Unicode from MySQL

2017-07-26 Thread Devin Asay via use-livecode
Andy,

Thanks for that tip. It’s one I never have heard about. I’ll try this next time 
I need to read UTF8 from my db.

Devin


On Jul 26, 2017, at 1:03 AM, AndyP via use-livecode 
> wrote:

I had the same problems a while ago, but got it sorted with the following.

*Before* you do any interactions with the db, add this line.

*revExecuteSQL MyConnectionID, "SET NAMES 'utf8'"*

"SET NAMES 'utf8'" is needed whenever you want to send/retrieve data
to/from the server having characters that cannot be represented in pure
ASCII, like 'ñ' or 'ö'.

Then retrieve the data

*put textDecode("SELECT * FROM MyTable","UTF-8")  into fld "MyField"*








-
Andy Piddock


My software never has bugs. It just develops random features.

TinyIDE a Free alternative minimalist IDE Plugin for LiveCode
TinyIDE


Script editor Themer for LC http://2108.co.uk

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Importing-Unicode-from-MySQL-tp4717480p4717487.html
Sent from the Revolution - User mailing list archive at 
Nabble.com.

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Importing Unicode from MySQL

2017-07-25 Thread Devin Asay via use-livecode
Kaveh,

The unicodeText property and uniEncode function are deprecated. Instead use 
textDecode as follows:

Download your database data into a variable like tStringFromDatabase. Then,

put textDecode(tStringFromDatabase,”UTF8”) into field “myDBText”

HTH

Devin


On Jul 25, 2017, at 4:24 PM, Kaveh Bazargan via use-livecode 
> wrote:

I know this has been discussed before and I have tried to search for the
answer, but no success.

I am using LiveCode Community, 9.0.0 DP5 on Mac

I have a MySQL database where all fields are formatted as UTF8. I do a
query from LiveCode, and put the result in a field and I lose the non ascii
characters.

I am reading the result into whole_table.

I then tried this:

set the unicodeText of field "whole table" to uniEncode(whole_table,"UTF8")

but the non-ascii characters disappear.

any ideas pls

--
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.com
___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: iPad portrait size stack doesn't fit to display

2017-07-21 Thread Devin Asay via use-livecode

On Jul 21, 2017, at 11:52 AM, J. Landman Gay via use-livecode 
> wrote:

On 7/21/17 6:14 AM, Antti Ilola via use-livecode wrote:
I have 13.3 inch Macbook retina computer (2560x1600 pixels). Now I try to
develop iPad software. When I opened new iPad portrait size stack it didn't
fit to my display. It is hard to put GUI elements to bottom of the stack,
at least I don't know how. What should I do to get the stack to show all.

Try setting the scaleFactor of the stack to about .75


Listen to Jacque. I think I misunderstood what you were asking. You want to be 
able to view the entire stack window on your laptop screen, and the scaleFactor 
will help with that.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: iPad portrait size stack doesn't fit to display

2017-07-21 Thread Devin Asay via use-livecode
Obviously those statements in the mouseUp handler need to be on separate lines. 
The use-livecode mail server seems to be stripping out my formatting nowadays. 
Is anyone else seeing this? I’m using Mac Mail.

Devin


On Jul 21, 2017, at 9:53 AM, Devin Asay via use-livecode 
<use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:


On Jul 21, 2017, at 9:24 AM, Bob Sneidar via use-livecode 
<use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
 wrote:

I tried setting my stack to exact fit, then I went fullscreen on my stack. It 
did not scale. Is this a mobile feature only?

Bob S



No, it works on the desktop also. Be sure to set the fullScreenMode before 
setting the fullScreen:

on mouseUp
set the fullscreenmode of this stack to "showAll" set the fullscreen of this 
stack to true end mouseUp

HTH

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto: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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: iPad portrait size stack doesn't fit to display

2017-07-21 Thread Devin Asay via use-livecode

On Jul 21, 2017, at 9:24 AM, Bob Sneidar via use-livecode 
> wrote:

I tried setting my stack to exact fit, then I went fullscreen on my stack. It 
did not scale. Is this a mobile feature only?

Bob S



No, it works on the desktop also. Be sure to set the fullScreenMode before 
setting the fullScreen:

on mouseUp
set the fullscreenmode of this stack to "showAll" set the fullscreen of this 
stack to true end mouseUp

HTH

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: iPad portrait size stack doesn't fit to display

2017-07-21 Thread Devin Asay via use-livecode

On Jul 21, 2017, at 5:14 AM, Antti Ilola via use-livecode 
> wrote:

I have 13.3 inch Macbook retina computer (2560x1600 pixels). Now I try to
develop iPad software. When I opened new iPad portrait size stack it didn't
fit to my display. It is hard to put GUI elements to bottom of the stack,
at least I don't know how. What should I do to get the stack to show all.

Antii,

Try setting the fullScreenMode property:

on preOpenStack
   set the fullScreenMode of this stack to “showAll”
   # OR set the fullScreenMode of this stack to “letterbox”
end preOpenStack

Either option should show your full stack window without distortion.

Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Native Livecode Pinch and Zoom

2017-07-12 Thread Devin Asay via use-livecode

On Jul 12, 2017, at 8:40 AM, Sannyasin Brahmanathaswami via use-livecode 
> wrote:

It appears we won't get pinch and zoom in the browser widget on mobile. It's 
back to using a native LC interface for a big map adventure where the user can 
zoom into an area and then pinch back out

The use case is still the same: use a "Maha" = enormous/big SVG graphic that 
looks awesome and sharp at any zoom level

Hopefully, soon LC will support a native display of this.

In the meantime, before I go hacking away from ground zero, trying to trap 
gestures and changing the rect of the image object on the fly… I would be 
interested in any example of this that anyone has already done using native LC 
code.
The zoom of player to degrees is deprecated, and we are not seeing any 
alternatives in the dictionary.

There is an obscure something that I just found that only works on Mac and 
windows:

XPDFViewer_Zoom viewerName, {"width" | "fit" | "actual" | "in" | "out" | 
percent}

The magnify extension is only on desktop

Any hope for us on Mobile for pinch and zoom in and out?

BR,

I put together a tutorial for my students on how to implement pinch gestures 
with images. It is in turn adapted from a LiveCode Ltd tutorial on pinch 
gestures. It might be a good starting point for your project.

http://livecode.byu.edu/mobile/gesturesExercise.php

HTH

Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Text style is hit or miss for me

2017-07-07 Thread Devin Asay via use-livecode
Roger,

The advantage of the array notation for textStyle is that you can explicitly 
set each style for a given run of text.

The disadvantage of the array notation for textStyle is that you have to 
explicitly un-set each style for a given run of text.  ;)

  set the textStyle[“bold”] of the selectedChunk to false

But as you note, if you want to clear out *all* style formatting, the old, 
non-array method of setting the textStyle to plain works great. Nuke those 
styles!

Devin


On Jul 7, 2017, at 8:59 AM, Roger Eller via use-livecode 
> wrote:

That worked perfectly for all but plain.  In my plain button, I had to
write it as:  set the textStyle of the selectedChunk to "plain".

Thank you, Mark!
~Roger


On Fri, Jul 7, 2017 at 10:40 AM, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

Hi Roger,

On 2017-07-07 16:36, Roger Eller via use-livecode wrote:

How do you guys do formatting buttons?


Try

  set the textStyle["bold"] of the selectedChunk to true
  set the textStyle["italic"] of the selectedChunk to true

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ 
http://www.livecode.com/
LiveCode: Everyone can create apps

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Biased testing and micro-coaching

2017-07-07 Thread Devin Asay via use-livecode
Jonathan,

Here’s a link to my lesson outline when I teach my students about conducting 
user evaluations of software. It’s still a bit sparse and needs to be fleshed 
out, but I include some links to a couple of really good articles on evaluation 
techniques, including one by our very own Jacque Gay.

http://livecode.byu.edu/userevals/UserEvals.php

Devin

On Jul 7, 2017, at 8:29 AM, prothero--- via use-livecode 
> wrote:

Jonathon,
I feel your pain. In my case, I was initiated by my students and very quickly 
learned how to ask the questions a newbie would ask. I also paid small amounts 
to graduate students to get their feedback.

One of my very effective testers is my grandson, my wife, any of my colleagues 
who might be enticed to use the app. Looking over the shoulder while these 
folks use the app can be very illuminating.

In summary:
1. Ask friends and relatives first.
2. Perhaps there would be volunteers from the live ode users group.
3. Hire high school students who might have a tech interest. Look over their 
shoulders as they use the app and dialog to themselves. Actually watching users 
is invaluable.

Good luck,
Bill P


William Prothero
http://es.earthednet.org

On Jul 7, 2017, at 4:57 AM, Jonathan Lynch via use-livecode 
 wrote:

I think my experience of the last two days has taught me something - I have 
been micro-coaching my friends when they try my app.

Just the littlest input, like saying "oh, just press the button again to 
submit" comes so easily and, apparently mucks up testing entirely.

While the harm will be minimal in this case, I can see where it could be 
disastrous for a large company.

What steps do you guys follow for accurate testing when you don't have a budget 
for proper official testing procedures?

Sent from my iPhone
___
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


___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: play sound plays the wrong sound

2017-07-06 Thread Devin Asay via use-livecode

> On Jul 6, 2017, at 9:14 AM, Keith Martin via use-livecode 
>  wrote:
> 
> On 6 Jul 2017, at 15:45, Matt Maier via use-livecode wrote:
> 
>> Why is this stuff not in the dictionary?
> 
> Also, given the massive prevalence of MP3, it would be great if the 
> (apparent) limitation of the 'play' command was addressed. :/

I revised the entry for ‘play’ in the dictionary some weeks ago, but it was 
added to the 9.0 build, rather than the 8.x build, for some reason. So you’ll 
see the changes if you launch the dictionary in 9.x. The limitations as to 
which audio and video formats can be played are documented in the audioClip and 
videoClip dictionary entries. I included a note referencing that in the entry 
for play.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: First 1000 characters without loop?

2017-06-22 Thread Devin Asay via use-livecode

On Jun 22, 2017, at 1:05 PM, Rick Harrison via use-livecode 
> wrote:

Hi Devin & Mark,

Thanks for this solution.

Does that statement create an implied loop?



I don’t think so. It’s similar to substring functions in other languages. As 
Mike said, string chunk expressions are one of the best things about LiveCode.

You can do things like:

  put char 5 to 25 of line 4 of tVar into tVar2

I discuss it in my lesson on working with text in LiveCode:

http://livecode.byu.edu/textfind/TextandFind.php

Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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