Re: AW: can I lock screen over more than one handler?

2017-07-05 Thread Jonathan Lynch via use-livecode
I have a suggestion, if nothing else works. Use two players, layered on top of 
each other. When you switch the source of a player, do it to the player on the 
bottom, then move it to be on top of the other player. 

By switching back and forth, and only reassigning the player on the bottom, it 
should always cover the transition.

Sent from my iPhone

> On Jul 5, 2017, at 10:19 AM, jonathandly...@gmail.com wrote:
> 
> I have found that lock screen only blocks screen updates within the main LC 
> context.
> 
> So, for example, it does not block whatever is happening in a browser.
> 
> For some reason, it also sometimes seems smoother to call a function rather 
> than a handler, but perhaps I misperceived what was happening.
> 
> 
> Sent from my iPhone
> 
>> On Jul 5, 2017, at 9:57 AM, Tiemo Hollmann TB via use-livecode 
>>  wrote:
>> 
>> Thanks Jonathan, Trevor and Sean for your comments.
>> 
>> Meanwhile I could drill down my "flickering" problem (post from yesterday)
>> to an unexpected command.
>> In one of those handlers I "set the filename of player "myVideoPlayer" to
>> tFile". This command withdraws the focus from the window and passes it back
>> after some milliseconds. On my Win 10 machine with a white window title bar
>> I almost can't see it, but on Win 8 with the standard violet title bar it is
>> an ugly flickering, each time I set the filename (which happens very
>> frequently in a quiz loop).
>> 
>> And I can't prevent this flickering with a lock screen right before the
>> setting of the filename. The setting of the filename seems to release the
>> lock screen or it takes the focus of the window off and back. Very ugly in
>> my case.
>> 
>> Tiemo
>> 
>> 
>> 
>> -Ursprüngliche Nachricht-
>> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
>> von Sean Cole (Pi) via use-livecode
>> Gesendet: Mittwoch, 5. Juli 2017 15:30
>> An: How to use LiveCode 
>> Cc: Sean Cole (Pi) 
>> Betreff: Re: can I lock screen over more than one handler?
>> 
>> Hi Tiemo,
>> The solution here is to call another lockScreen at the beginning of
>> handler2. You don't have to use the unlockScreen at the end of handler 1 and
>> 2 as it will do that automatically but it is advisable to include the
>> command anyway. Is there a reason why you had an aversion to using a
>> lockScreen at the start of handler2?
>> 
>> All the best
>> 
>> Sean Cole
>> *Pi Digital Productions Ltd*
>> 
>> On 5 July 2017 at 14:09, Trevor DeVore via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> On Wed, Jul 5, 2017 at 6:45 AM, Tiemo Hollmann TB via use-livecode < 
>>> use-livecode@lists.runrev.com> wrote:
 
 
 Is this possible?
 
 on handler1
 
 lock screen
 
 -- do some stuff here
 
 send "handler2" in 0 milliseconds
 
 end handler1
 
 
 
 on handler2
 
 -- do some other stuff here
 
 unlock screen
 
 end handler2
 
>>> 
>>> No it is not. From the docs for `lock screen`:
>>> 
>>> "When all pending handlers are finished executing, the lockScreen 
>>> property is set back to false and the user sees the current state of 
>>> stack windows on the screen."
>>> 
>>> The use of the word "pending" is confusing because when you use `send` 
>>> you end up with an entry in the `pendingMessages`. But the screen is 
>>> going to be unlocked each time through the event loop. If `handler` 
>>> called `handler2` directly (without using `send`) then you would not 
>>> see the screen update. You should see the result you are looking for 
>>> if you change your code to look like this:
>>> 
>>> ```
>>> on handler1
>>> lock screen
>>> 
>>> -- do some stuff here
>>> 
>>> handler2
>>> end handler1
>>> ```
>>> 
>>> If you need to call `handler2` in time then you will need to figure 
>>> out another approach to updating the screen. Perhaps all screen 
>>> updates will need to happen in `handler2`.
>>> 
>>> --
>>> Trevor DeVore
>>> ScreenSteps
>>> www.screensteps.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

___
use-livecode mailing list

Re: AW: can I lock screen over more than one handler?

2017-07-05 Thread Jonathan Lynch via use-livecode
I have found that lock screen only blocks screen updates within the main LC 
context.

So, for example, it does not block whatever is happening in a browser.

For some reason, it also sometimes seems smoother to call a function rather 
than a handler, but perhaps I misperceived what was happening.


Sent from my iPhone

> On Jul 5, 2017, at 9:57 AM, Tiemo Hollmann TB via use-livecode 
>  wrote:
> 
> Thanks Jonathan, Trevor and Sean for your comments.
> 
> Meanwhile I could drill down my "flickering" problem (post from yesterday)
> to an unexpected command.
> In one of those handlers I "set the filename of player "myVideoPlayer" to
> tFile". This command withdraws the focus from the window and passes it back
> after some milliseconds. On my Win 10 machine with a white window title bar
> I almost can't see it, but on Win 8 with the standard violet title bar it is
> an ugly flickering, each time I set the filename (which happens very
> frequently in a quiz loop).
> 
> And I can't prevent this flickering with a lock screen right before the
> setting of the filename. The setting of the filename seems to release the
> lock screen or it takes the focus of the window off and back. Very ugly in
> my case.
> 
> Tiemo
> 
> 
> 
> -Ursprüngliche Nachricht-
> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
> von Sean Cole (Pi) via use-livecode
> Gesendet: Mittwoch, 5. Juli 2017 15:30
> An: How to use LiveCode 
> Cc: Sean Cole (Pi) 
> Betreff: Re: can I lock screen over more than one handler?
> 
> Hi Tiemo,
> The solution here is to call another lockScreen at the beginning of
> handler2. You don't have to use the unlockScreen at the end of handler 1 and
> 2 as it will do that automatically but it is advisable to include the
> command anyway. Is there a reason why you had an aversion to using a
> lockScreen at the start of handler2?
> 
> All the best
> 
> Sean Cole
> *Pi Digital Productions Ltd*
> 
> On 5 July 2017 at 14:09, Trevor DeVore via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> On Wed, Jul 5, 2017 at 6:45 AM, Tiemo Hollmann TB via use-livecode < 
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> 
>>> Is this possible?
>>> 
>>> on handler1
>>> 
>>> lock screen
>>> 
>>> -- do some stuff here
>>> 
>>> send "handler2" in 0 milliseconds
>>> 
>>> end handler1
>>> 
>>> 
>>> 
>>> on handler2
>>> 
>>> -- do some other stuff here
>>> 
>>> unlock screen
>>> 
>>> end handler2
>>> 
>> 
>> No it is not. From the docs for `lock screen`:
>> 
>> "When all pending handlers are finished executing, the lockScreen 
>> property is set back to false and the user sees the current state of 
>> stack windows on the screen."
>> 
>> The use of the word "pending" is confusing because when you use `send` 
>> you end up with an entry in the `pendingMessages`. But the screen is 
>> going to be unlocked each time through the event loop. If `handler` 
>> called `handler2` directly (without using `send`) then you would not 
>> see the screen update. You should see the result you are looking for 
>> if you change your code to look like this:
>> 
>> ```
>> on handler1
>>  lock screen
>> 
>>  -- do some stuff here
>> 
>>  handler2
>> end handler1
>> ```
>> 
>> If you need to call `handler2` in time then you will need to figure 
>> out another approach to updating the screen. Perhaps all screen 
>> updates will need to happen in `handler2`.
>> 
>> --
>> Trevor DeVore
>> ScreenSteps
>> www.screensteps.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

___
use-livecode mailing list
use-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 I lock screen over more than one handler?

2017-07-05 Thread Jonathan Lynch via use-livecode
Hi Tiemo,

It unlocks at the end of a handler. This can be a problem when calling another 
handler.

I handle it by turning a called handler into a function. However, I don't think 
you can do it with a "send in time" handler.



Sent from my iPhone

> On Jul 5, 2017, at 7:45 AM, Tiemo Hollmann TB via use-livecode 
>  wrote:
> 
> Hello,
> 
> Is this possible?
> 
> 
> 
> on handler1
> 
> lock screen
> 
> -- do some stuff here
> 
> send "handler2" in 0 milliseconds
> 
> end handler1
> 
> 
> 
> on handler2
> 
> -- do some other stuff here
> 
> unlock screen
> 
> end handler2
> 
> 
> 
> in my real case the screen seems to be unlocked before handler2 has finished
> and I can see some updates on the screen, while the two handlers are
> running. The docs don't say, that there is an automatic unlock screen at the
> end of each handler and I checked my code that each lock has one unlock.
> 
> Should this be possible, or are there other statements/functions, which
> unlock the screen by default beside of modal a stack?
> 
> Thanks
> 
> Tiemo
> 
> 
> 
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: debugging a CEF browser instance

2017-07-05 Thread Jonathan Lynch via use-livecode
Hi Bernard,

I work with JS in the browser widget quite a bit.

I have just gotten used to testing JS commands very carefully, step by step, 
because it does not really provide any debugging information.

It would be nice to have that.

Sent from my iPhone

> On Jul 5, 2017, at 7:34 AM, Bernard Devlin via use-livecode 
>  wrote:
> 
> I tried with 9.0 dp7.
> 
> Still no luck. The webpage opens and works with both Chrome and Firefox.
> But not with the browser widget in either LC 8 or LC 9.  I even tried with
> LC8.1.4 on OS X and it fails there too.
> 
> I'm surprised no-one else has run into the need to access the debug log,
> browser console or browser developer tools.
> 
> Regards
> Bernard
> 
>> On Tue, Jul 4, 2017 at 11:33 AM, Bernard Devlin  wrote:
>> 
>> After a very long time away from Livecode, I'm trying to get back into it.
>> 
>> On 8.1.4 in the Windows IDE I have a browser instance where a standalone
>> web page with some Javascript code is not working.  The same page works if
>> I load it into Chrome.
>> 
>> So, I thought there might be a way to display the console of the browser
>> instance, but I can't find a "chrome://..." command to do that. The most
>> information I can get back from the browser instance is this:
>> 
>> "C:/Program Files (x86)/RunRev/LiveCode Business 8.1.4/LiveCode Business"
>> --browser-subprocess-path="C:\Program Files (x86)\RunRev\LiveCode
>> Business 8.1.4\Externals\CEF\libbrowser-cefprocess.exe" --no-sandbox
>> --lang=en-US --log-file="C:\Program Files (x86)\RunRev\LiveCode Business
>> 8.1.4\debug.log" --log-severity=disable --locales-dir-path="C:\Program
>> Files (x86)\RunRev\LiveCode Business 8.1.4\Externals\CEF\locales"
>> 
>> So, I created a .cmd file where I launched the livecode .exe, passing in
>> different values for
>> 
>> --log-severity=disable
>> 
>> but no alternative parameters in the .cmd file appear to be taken up (i.e.
>> it looks like these CEF browser parameters might be hard-coded into the LC
>> exe).
>> 
>> I'm thinking there must be a way to debug CEF browser instances, but a
>> search through the mail list didn't turn up anything that appeared relevant.
>> 
>> Any suggestions?
>> 
>> Regards
>> Bernard
>> 
>> 
>> 
> ___
> use-livecode mailing list
> use-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: Submitting to the #%^%#? App Store

2017-07-05 Thread Jonathan Lynch via use-livecode
Good points Dave, I will do those things

Sent from my iPhone

> On Jul 5, 2017, at 5:03 AM, Dave Kilroy via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Ah yes - one of the biggest GOTCHA’s there is when working on Apple 
> certification…
> 
> I’ve found the best approach is to keep my dev machine scrupulously clean as 
> regards old certificates, and a session with Keychain Access pays dividends. 
> 
> The same thing goes as regards old provisioning profiles - you should find 
> all provisioning profiles on your mac stored at 
> '/Users/ cleaning out of that folder and then using Xcode to pull down fresh copies is 
> the way to go
> 
> In general ‘good hygiene’ with your certificates and profiles is necessary 
> and will prevent much head thumping, cursing, gnashing of teeth and tears at 
> bedtime :)
> 
> And finally, I’ve found it best to keep old copies of Xcode on my machine in 
> their own sub-folder (individually named) in the Applications folder whilst 
> keeping the executable named “Xcode.app”
> 
> Kind regards
> 
> Dave
> 
> 
>> Okay. - I got it submitted :) 
>> 
>> I had revoked an older certificate to make sure I was using the right one, 
>> but that certificate was still in the key chain. 
>> 
>> Fingers crossed they like it on the first try. 
>> 
>> Sorry for my hidden curse word there - it was just one of those moments. 
>> 
>> J 
>> 
>> Sent from my iPhone 
>> 
>>> On Jul 4, 2017, at 11:01 PM, [hidden email] 
>>> <http://runtime-revolution.278305.n4.nabble.com/user/SendEmail.jtp?type=node=4716597=0>
>>>  wrote: 
>>> 
>>> I created a new profile just for this - still get the same error. 
>>> 
>>> After that I tried manually codesigning, but then I got the same error 
>>> again. 
>>> 
>>> Any other ideas? And thanks for taking the time on this - it is much 
>>> appreciated. 
>>> 
>>> J 
>>> 
>>> Sent from my iPhone 
>>> 
>>>> On Jul 4, 2017, at 10:35 PM, Colin Holgate via use-livecode <[hidden 
>>>> email] 
>>>> <http://runtime-revolution.278305.n4.nabble.com/user/SendEmail.jtp?type=node=4716597=1>>
>>>>  wrote: 
>>>> 
>>>> You choose a profile in Standalone Application Settings. There’s a danger 
>>>> of picking an old one. See discussions like this on how to remove out of 
>>>> date ones: 
>>>> 
>>>> https://stackoverflow.com/questions/26732251/how-to-remove-provisioning-profiles-from-xcode
>>>>  
>>>> <https://stackoverflow.com/questions/26732251/how-to-remove-provisioning-profiles-from-xcode>
>>>> 
>>>> It should have a certificate associated with it, and unless you recently 
>>>> resubscribed it ought to work. 
>>>> 
>>>>> On Jul 4, 2017, at 7:30 PM, Jonathan Lynch via use-livecode <[hidden 
>>>>> email] 
>>>>> <http://runtime-revolution.278305.n4.nabble.com/user/SendEmail.jtp?type=node=4716597=2>>
>>>>>  wrote: 
>>>>> 
>>>>> Hi Colin, 
>>>>> 
>>>>> Yes and yes 
>>>>> 
>>>>> Do we need to sign the actual file after it is created? I thought that 
>>>>> happened when we created to executable from LC. 
>>>>> 
>>>>> Sent from my iPhone 
>>>>> 
>>>>>> On Jul 4, 2017, at 10:05 PM, Colin Holgate via use-livecode <[hidden 
>>>>>> email] 
>>>>>> <http://runtime-revolution.278305.n4.nabble.com/user/SendEmail.jtp?type=node=4716597=3>>
>>>>>>  wrote: 
>>>>>> 
>>>>>> Are you using an App Store Distribution profile? Was its certificate 
>>>>>> your Distribution one? 
>>>>>> 
>>>>>> 
>>>>>>> On Jul 4, 2017, at 7:02 PM, Jonathan Lynch via use-livecode <[hidden 
>>>>>>> email] 
>>>>>>> <http://runtime-revolution.278305.n4.nabble.com/user/SendEmail.jtp?type=node=4716597=4>>
>>>>>>>  wrote: 
>>>>>>> 
>>>>>>> Both venting and seeking advice. 
>>>>>>> 
>>>>>>> Actually submitting an app to iTunes Connect is not easy, to put it 
>>>>>>> mildly. 
>>>>>>> 
>>>>>>> I am getting an error... 
>>>>>>> 
>>>>>>> The executable 'Payload/Augmented Earth.app/Augmented Earth' must be 
>>>>>>> signed with the certificate that is contained in the provisioning 
>>>>>>> profile. 
>>>>>>> 
>>>>>>> I have no idea how it could be wrong. The distribution provisioning 
>>>>>>> profile seems correct to me. Is there a step I am missing? I thought I 
>>>>>>> was following the steps outlined on the LC site. 
>>>>>>> 
> ___
> use-livecode mailing list
> use-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: Submitting to the #%^%#? App Store

2017-07-04 Thread Jonathan Lynch via use-livecode
Okay. - I got it submitted :)

I had revoked an older certificate to make sure I was using the right one, but 
that certificate was still in the key chain. 

Fingers crossed they like it on the first try.

Sorry for my hidden curse word there - it was just one of those moments.

J

Sent from my iPhone

> On Jul 4, 2017, at 11:01 PM, jonathandly...@gmail.com wrote:
> 
> I created a new profile just for this - still get the same error.
> 
> After that I tried manually codesigning, but then I got the same error again.
> 
> Any other ideas? And thanks for taking the time on this - it is much 
> appreciated.
> 
> J
> 
> Sent from my iPhone
> 
>> On Jul 4, 2017, at 10:35 PM, Colin Holgate via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> You choose a profile in Standalone Application Settings. There’s a danger of 
>> picking an old one. See discussions like this on how to remove out of date 
>> ones:
>> 
>> https://stackoverflow.com/questions/26732251/how-to-remove-provisioning-profiles-from-xcode
>> 
>> It should have a certificate associated with it, and unless you recently 
>> resubscribed it ought to work.
>> 
>>> On Jul 4, 2017, at 7:30 PM, Jonathan Lynch via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi Colin,
>>> 
>>> Yes and yes 
>>> 
>>> Do we need to sign the actual file after it is created? I thought that 
>>> happened when we created to executable from LC.
>>> 
>>> Sent from my iPhone
>>> 
>>>> On Jul 4, 2017, at 10:05 PM, Colin Holgate via use-livecode 
>>>> <use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Are you using an App Store Distribution profile? Was its certificate your 
>>>> Distribution one?
>>>> 
>>>> 
>>>>> On Jul 4, 2017, at 7:02 PM, Jonathan Lynch via use-livecode 
>>>>> <use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> Both venting and seeking advice.
>>>>> 
>>>>> Actually submitting an app to iTunes Connect is not easy, to put it 
>>>>> mildly.
>>>>> 
>>>>> I am getting an error...
>>>>> 
>>>>> The executable 'Payload/Augmented Earth.app/Augmented Earth' must be 
>>>>> signed with the certificate that is contained in the provisioning profile.
>>>>> 
>>>>> I have no idea how it could be wrong. The distribution provisioning 
>>>>> profile seems correct to me. Is there a step I am missing? I thought I 
>>>>> was following the steps outlined on the LC site.
>>>>> 
>>>> 
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-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

Re: Submitting to the #%^%#? App Store

2017-07-04 Thread Jonathan Lynch via use-livecode
I created a new profile just for this - still get the same error.

After that I tried manually codesigning, but then I got the same error again.

Any other ideas? And thanks for taking the time on this - it is much 
appreciated.

J

Sent from my iPhone

> On Jul 4, 2017, at 10:35 PM, Colin Holgate via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> You choose a profile in Standalone Application Settings. There’s a danger of 
> picking an old one. See discussions like this on how to remove out of date 
> ones:
> 
> https://stackoverflow.com/questions/26732251/how-to-remove-provisioning-profiles-from-xcode
> 
> It should have a certificate associated with it, and unless you recently 
> resubscribed it ought to work.
> 
>> On Jul 4, 2017, at 7:30 PM, Jonathan Lynch via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Hi Colin,
>> 
>> Yes and yes 
>> 
>> Do we need to sign the actual file after it is created? I thought that 
>> happened when we created to executable from LC.
>> 
>> Sent from my iPhone
>> 
>>> On Jul 4, 2017, at 10:05 PM, Colin Holgate via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> Are you using an App Store Distribution profile? Was its certificate your 
>>> Distribution one?
>>> 
>>> 
>>>> On Jul 4, 2017, at 7:02 PM, Jonathan Lynch via use-livecode 
>>>> <use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Both venting and seeking advice.
>>>> 
>>>> Actually submitting an app to iTunes Connect is not easy, to put it mildly.
>>>> 
>>>> I am getting an error...
>>>> 
>>>> The executable 'Payload/Augmented Earth.app/Augmented Earth' must be 
>>>> signed with the certificate that is contained in the provisioning profile.
>>>> 
>>>> I have no idea how it could be wrong. The distribution provisioning 
>>>> profile seems correct to me. Is there a step I am missing? I thought I was 
>>>> following the steps outlined on the LC site.
>>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-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

Re: Submitting to the #%^%#? App Store

2017-07-04 Thread Jonathan Lynch via use-livecode
Hi Colin,

Yes and yes 

Do we need to sign the actual file after it is created? I thought that happened 
when we created to executable from LC.

Sent from my iPhone

> On Jul 4, 2017, at 10:05 PM, Colin Holgate via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Are you using an App Store Distribution profile? Was its certificate your 
> Distribution one?
> 
> 
>> On Jul 4, 2017, at 7:02 PM, Jonathan Lynch via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Both venting and seeking advice.
>> 
>> Actually submitting an app to iTunes Connect is not easy, to put it mildly.
>> 
>> I am getting an error...
>> 
>> The executable 'Payload/Augmented Earth.app/Augmented Earth' must be signed 
>> with the certificate that is contained in the provisioning profile.
>> 
>> I have no idea how it could be wrong. The distribution provisioning profile 
>> seems correct to me. Is there a step I am missing? I thought I was following 
>> the steps outlined on the LC site.
>> 
> 
> 
> ___
> use-livecode mailing list
> use-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


Submitting to the #%^%#? App Store

2017-07-04 Thread Jonathan Lynch via use-livecode
Both venting and seeking advice.

Actually submitting an app to iTunes Connect is not easy, to put it mildly.

I am getting an error...

The executable 'Payload/Augmented Earth.app/Augmented Earth' must be signed 
with the certificate that is contained in the provisioning profile.

I have no idea how it could be wrong. The distribution provisioning profile 
seems correct to me. Is there a step I am missing? I thought I was following 
the steps outlined on the LC site.

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


Re: Advice on copying and pasting in mobile

2017-07-03 Thread Jonathan Lynch via use-livecode
Oh - I will buy the licensed one. Can I get it now?

Sent from my iPhone

> On Jul 3, 2017, at 7:01 AM, Thierry Douez via use-livecode 
>  wrote:
> 
> 2017-07-02 14:54 GMT+02:00 Jonathan Lynch
> 
> :
> 
> Hello,
>> 
>> I really need to be able to paste text in an LC field on mobile.
>> 
>> I can do it for iOS with the sunny text to speech external,
> 
> 
> 
> Great!
> 
> 
> 
>> but that external has an audio message that comes on when the app first
>> opens
>> ...
>> 
> 
> 
> This audio message is telling you that you have a Trial-Demo version
> of sunnYtext2speech external.
> 
> There is *no audio message with the licensed one*!
> 
> This is the only difference between the Trial and the licensed version.
> 
> Regards,
> 
> Thierry
> 
> 
>> --
> 
> Thierry Douez - sunny-tdz.com
> sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage
> ___
> use-livecode mailing list
> use-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: Advice on copying and pasting in mobile

2017-07-02 Thread Jonathan Lynch via use-livecode
Hi Hermann,

It turns out we can have a div with editable content in html5.

For version 1.1 or 1.2, I might figure out how to make a full content form in 
HTML, including an editable div, which accepts both text and images.

For now, I created a special input in HTML5 to allow pasting into the content 
field. It is a little weird to go into a special mode just to paste, but this 
will work in both iOS and Android.


Sent from my iPhone

> On Jul 2, 2017, at 2:20 PM, jonathandly...@gmail.com wrote:
> 
> I have been thinking a lot about that...
> 
> I like having the ability to have images inside a field in LC, something that 
> both HTML and native fields do not do readily.
> 
> A user can enter text, add a picture, and enter more text. It is simple and 
> intuitive this way.
> 
> That said, with an HTML form I could have a lot more stuff - but I do not 
> know if more is better for this.
> 
> Honestly, I think I am feeling some pedantic peevishness over not being able 
> access the clipboard, and that is coloring my judgment.
> 
> I am pretty sure I could grab an existing iOS external, edit it to add in 
> copy and paste functions from Xcode, and use that. I have done something 
> similar, with a different functionality, in the past.
> 
> That would not help with android, though. An HTML solution would work fine 
> with android.
> 
> 
> 
> Sent from my iPhone
> 
>> On Jul 2, 2017, at 1:56 PM, hh via use-livecode 
>>  wrote:
>> 
>> @Jonathan.
>> Why dont't you simply use one single server-side HTML5 page to get
>> reports and upload images?
>> 
>> Has moreover the advantage that you can update the page (incl. the
>> method and targets used therein) without having to update your apps.
>> 
>> From that reason I would even prefer it to rawClipboardData.
>> ___
>> use-livecode mailing list
>> use-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: Advice on copying and pasting in mobile

2017-07-02 Thread Jonathan Lynch via use-livecode
I have been thinking a lot about that...

I like having the ability to have images inside a field in LC, something that 
both HTML and native fields do not do readily.

A user can enter text, add a picture, and enter more text. It is simple and 
intuitive this way.

That said, with an HTML form I could have a lot more stuff - but I do not know 
if more is better for this.

Honestly, I think I am feeling some pedantic peevishness over not being able 
access the clipboard, and that is coloring my judgment.

I am pretty sure I could grab an existing iOS external, edit it to add in copy 
and paste functions from Xcode, and use that. I have done something similar, 
with a different functionality, in the past.

That would not help with android, though. An HTML solution would work fine with 
android.



Sent from my iPhone

> On Jul 2, 2017, at 1:56 PM, hh via use-livecode 
>  wrote:
> 
> @Jonathan.
> Why dont't you simply use one single server-side HTML5 page to get
> reports and upload images?
> 
> Has moreover the advantage that you can update the page (incl. the
> method and targets used therein) without having to update your apps.
> 
> From that reason I would even prefer it to rawClipboardData.
> ___
> use-livecode mailing list
> use-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: Advice on copying and pasting in mobile

2017-07-02 Thread Jonathan Lynch via use-livecode
Well,
I don't need a special field, I just need access to the clipboard. Do you know 
of any other externals that allow that?

I

Sent from my iPhone

> On Jul 2, 2017, at 10:46 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
> jonathandlynch wrote:
> 
> > I really need to be able to paste text in an LC field on mobile.
> 
> Funded and in development:
> 
> 
> -- 
> 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


Advice on copying and pasting in mobile

2017-07-02 Thread Jonathan Lynch via use-livecode
Hello,

I really need to be able to paste text in an LC field on mobile.

I can do it for iOS with the sunny text to speech external, but that external 
has an audio message that comes on when the app first opens, which would be 
rather confusing for users.

I have so far avoided LC builder because I felt I needed better documentation 
to learn it in the limited free time that I have. It seems like LC has provided 
some more tutorials now.

Here are my questions:

1. Can a widget (or library file) give us access to the clipboard on mobile 
devices? 

2. Are there any other existing externals that can do this?

My app is almost ready to submit, but it feels like the user should be able to 
paste content directly into the content field, which for other reasons cannot 
be a native field.

Thank you 

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


Re: Google Static Maps Problem

2017-06-30 Thread Jonathan Lynch via use-livecode
Hi Bill,

I am looking at your stack now. I don't see any place where you use JavaScript 
to get get the bounds from the Google maps API.

I think you would have to do it that way to get a reliable result.

That won't give you corners, exactly, but it will give you a minimum bounding 
rectangle that contains your map.

Sent from my iPhone

> On Jun 30, 2017, at 8:02 PM, jonathandly...@gmail.com wrote:
> 
> Bill,
> 
> The bounds will only give you the corners of the image if you are facing 
> exactly North, south, east, or west,
> 
> I am sorry I have not had a chance to check out your stack - will do so 
> shortly 
> 
> Sent from my iPhone
> 
>> On Jun 30, 2017, at 7:56 PM, William Prothero via use-livecode 
>>  wrote:
>> 
>> Hermann:
>> I got your stack. It pretty much is where I am at now. However, it doesn’t 
>> solve my problem. If you notice the “geocode” call output, nothing changes 
>> when the zoom level changes. This isn’t much help when trying to find the 
>> lat/lon values of the corners of the image. That’s what I need. Neither the 
>> “bounds” parameters nor the “viewport” parameters change with zoom level. 
>> So, it doesn’t help when trying to get the corner lat/lons, which change 
>> with zoom level.
>> 
>> Best,
>> Bill
>> 
>>> On Jun 30, 2017, at 8:32 AM, hh via use-livecode 
>>>  wrote:
>>> 
>>> You may use the technique of a stack I made in April 2017 on base of
>>> a discussion started by you in the list:
>>> http://lists.runrev.com/pipermail/use-livecode/2017-April/236632.html
>>> 
>>> I posted it just now here (Raspi stacks collection #100)
>>> http://forums.livecode.com/viewtopic.php?p=155414#p155414
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-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: Google Static Maps Problem

2017-06-30 Thread Jonathan Lynch via use-livecode
Bill,

The bounds will only give you the corners of the image if you are facing 
exactly North, south, east, or west,

I am sorry I have not had a chance to check out your stack - will do so shortly 

Sent from my iPhone

> On Jun 30, 2017, at 7:56 PM, William Prothero via use-livecode 
>  wrote:
> 
> Hermann:
> I got your stack. It pretty much is where I am at now. However, it doesn’t 
> solve my problem. If you notice the “geocode” call output, nothing changes 
> when the zoom level changes. This isn’t much help when trying to find the 
> lat/lon values of the corners of the image. That’s what I need. Neither the 
> “bounds” parameters nor the “viewport” parameters change with zoom level. So, 
> it doesn’t help when trying to get the corner lat/lons, which change with 
> zoom level.
> 
> Best,
> Bill
> 
>> On Jun 30, 2017, at 8:32 AM, hh via use-livecode 
>>  wrote:
>> 
>> You may use the technique of a stack I made in April 2017 on base of
>> a discussion started by you in the list:
>> http://lists.runrev.com/pipermail/use-livecode/2017-April/236632.html
>> 
>> I posted it just now here (Raspi stacks collection #100)
>> http://forums.livecode.com/viewtopic.php?p=155414#p155414
>> 
>> ___
>> use-livecode mailing list
>> use-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: How do we access the clipboard on mobile devices?

2017-06-30 Thread Jonathan Lynch via use-livecode
Today, Thierry allowed me to put the external from his text to speech app into 
Augmented Earth. I was able to put in a paste button above the content field 
and paste text into the app on my iPhone. It worked quite well.

Sent from my iPhone

> On Jun 28, 2017, at 10:20 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Thierry Douez wrote:
> 
> > J. Landman Gay
> > :
> > 
> >
> > They can paste text normally if you use a native field. The only
> >> restriction is that LC can't manage the clipboard through script
> >> alone. But if you create a mobile field the OS handles it as
> >> expected.
> >>
> >> In other words, copy and paste is currently limited to manual user
> >> actions.
> >>
>  It would be very nice to be able to get and set the
>  rawClipboardData on mobile but that is only possible on the
>  desktop.
> 
> >
> > On my latest release of sunnYtext2speech, I did add an experimental
> > copy and paste commands.
> >
> > Contact me off-list if any interest.
> 
> Is there anything that might interest the readers here?  What were these 
> experiments?  Were you able to programmatically alter the mobile OS keyboard?
> 
> -- 
> 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


Re: Google Static Maps Problem

2017-06-30 Thread Jonathan Lynch via use-livecode
The google maps API has a function for getting the bounds of a map, which 
adjusts at each level.

So, this is just a matter of calling on that function every time, so you get 
current bounds.

I will look at the stack later today.

Just be careful with bounds. They can cause confusion with changes in the 
orientation of the map.

Sent from my iPhone

> On Jun 30, 2017, at 10:10 AM, William Prothero via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Jonathan:
> Here is a link to my test stack and some files I found that have various code 
> to find the corners of the downloaded map.
> https://www.dropbox.com/s/8xle2hrltx9ll0d/googleMapsAPiTests.zip?dl=0 
> <https://www.dropbox.com/s/8xle2hrltx9ll0d/googleMapsAPiTests.zip?dl=0>
> My start on a conversion is in the script of the “Get Corners” button. I can 
> get an xml file from the regular maps api, but the “bounds” property doesn’t 
> change with zoom, which makes it not obvious how to convert that to what is 
> being displayed, to get the corners. I have no problem converting pixels to 
> mercator lat/lon, but until I can figure out the relationship between pixels 
> and zoom levels, I’m stuck.
> 
> Thanks for any help. I know your augmented Earth application uses these maps 
> too, and I’m also willing to share code when I get this working.
> 
> Bill P
> 
>> On Jun 30, 2017, at 3:50 AM, Jonathan Lynch via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Hi Bill,
>> 
>> Can you share the LC code and JS you are using? 
>> 
>> Sent from my iPhone
>> 
>>> On Jun 29, 2017, at 9:59 PM, William Prothero via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> Folks:
>>> I’ve found a way to display an image of a google static map, in my app. 
>>> It’s quite easy and well-documented. However, I need to get the lat and lon 
>>> values of the corners of the map, at the displayed zoom level. There is a 
>>> simple-looking javascript example for doing this at:
>>> https://stackoverflow.com/questions/12507274/how-to-get-bounds-of-a-google-static-map
>>>  
>>> <https://stackoverflow.com/questions/12507274/how-to-get-bounds-of-a-google-static-map>
>>> My javascript knowledge is totally minimal and I am loath to learn 
>>> javascript just to get this one handler into livecode script.
>>> 
>>> What I have is an application that plots geophysical data on a world map. 
>>> The map kind of ugly at very high magnifications and I thought the google 
>>> map would give me a nice map image, with a wider range of magnifications, 
>>> and minimize local storage space. What I will do is display the map image 
>>> (centered on a particular lat/lon and magnification) in a rectangle, then 
>>> take a snapshot, then copy my data symbols and images into the resulting 
>>> snapshot. This works very will with my current map. I know that I can draw 
>>> symbols directly on a google map using the map api, but it will be much 
>>> more direct, and build on existing code, if I do it as described.
>>> 
>>> So if anyone who is familiar with javascript has a few moments to give me 
>>> some pointers on how I might convert this to LCS, I’d very much appreciate 
>>> it. What I’m scratching my head over is how to access the parameters from 
>>> the Google API to do the needed calculations. The link above is to the 
>>> javascript example.
>>> 
>>> Thanks in advance,
>>> Bill P
>>> 
>>> William A. Prothero
>>> http://earthlearningsolution.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
> 
> ___
> use-livecode mailing list
> use-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: Google Static Maps Problem

2017-06-30 Thread Jonathan Lynch via use-livecode
Hi Bill,

Can you share the LC code and JS you are using? 

Sent from my iPhone

> On Jun 29, 2017, at 9:59 PM, William Prothero via use-livecode 
>  wrote:
> 
> Folks:
> I’ve found a way to display an image of a google static map, in my app. It’s 
> quite easy and well-documented. However, I need to get the lat and lon values 
> of the corners of the map, at the displayed zoom level. There is a 
> simple-looking javascript example for doing this at:
> https://stackoverflow.com/questions/12507274/how-to-get-bounds-of-a-google-static-map
>  
> 
> My javascript knowledge is totally minimal and I am loath to learn javascript 
> just to get this one handler into livecode script.
> 
> What I have is an application that plots geophysical data on a world map. The 
> map kind of ugly at very high magnifications and I thought the google map 
> would give me a nice map image, with a wider range of magnifications, and 
> minimize local storage space. What I will do is display the map image 
> (centered on a particular lat/lon and magnification) in a rectangle, then 
> take a snapshot, then copy my data symbols and images into the resulting 
> snapshot. This works very will with my current map. I know that I can draw 
> symbols directly on a google map using the map api, but it will be much more 
> direct, and build on existing code, if I do it as described.
> 
> So if anyone who is familiar with javascript has a few moments to give me 
> some pointers on how I might convert this to LCS, I’d very much appreciate 
> it. What I’m scratching my head over is how to access the parameters from the 
> Google API to do the needed calculations. The link above is to the javascript 
> example.
> 
> Thanks in advance,
> Bill P
> 
> William A. Prothero
> http://earthlearningsolution.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

Re: Printing a Widget Browser

2017-06-29 Thread Jonathan Lynch via use-livecode
Also, have you tried this:

Do "window.print()" in widget "my widget"

Sent from my iPhone

> On Jun 29, 2017, at 3:37 PM, jonathandly...@gmail.com wrote:
> 
> Could you export to a file, launch that in the user's standard browser, and 
> print from there?
> 
> Sent from my iPhone
> 
>> On Jun 29, 2017, at 2:04 PM, Terence Heaford via use-livecode 
>>  wrote:
>> 
>> 
>> Not posted for a long time but still keeping an eye on progress.
>> 
>> Is there any chance of printing a Browser Widget any time soon?
>> 
>> This code just gives a grey printout.
>> 
>> I am waiting patiently for this so that I can use for example amCharts 
>> within LiveCode.
>> 
>> I have implemented a print routine by exporting to an image but as this is 
>> an image it can turn out blurred.
>> 
>> Thanks
>> 
>> Terry
>> 
>> 
>> on mouseUp
>> 
>>  answer page setup --as sheet
>>  if the result = "cancel" then
>> exit mouseUp
>>  end if
>>  answer printer --as sheet
>>  if the result = "cancel" then
>> exit mouseUp
>>  end if
>> 
>>  put  the printPaperRectangle into tPaperRect
>>  put item 3 of tPaperRect into tAvailWidth
>>  put item 4 of tPaperRect into tAvailHeight
>> 
>>  put the width of widget "Browser" into tChartWidth
>>  put the height of widget "Browser" into tChartHeight
>> 
>>  put tAvailWidth/tChartWidth into tWidthRatio   
>>  put tAvailHeight/tChartHeight into tHeightRatio   
>>  put min(tWidthRatio,tHeightRatio) into tRatio   
>> 
>>  put tRatio * tChartWidth into tPrintWidth
>>  put tRatio * tChartHeight into tPrintHeight
>> 
>>  put 0 into item 1 of tPrintRect
>>  put 0 into item 2 of tPrintRect
>>  put tPrintWidth into item 3 of tPrintRect
>>  put tPrintHeight into item 4 of tPrintRect
>> 
>>  print card from topleft of widget "Browser" to bottomRight of widget 
>> "Browser" into tPrintRect
>> 
>> 
>> end mouseUp
>> ___
>> use-livecode mailing list
>> use-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: Printing a Widget Browser

2017-06-29 Thread Jonathan Lynch via use-livecode
Could you export to a file, launch that in the user's standard browser, and 
print from there?

Sent from my iPhone

> On Jun 29, 2017, at 2:04 PM, Terence Heaford via use-livecode 
>  wrote:
> 
> 
> Not posted for a long time but still keeping an eye on progress.
> 
> Is there any chance of printing a Browser Widget any time soon?
> 
> This code just gives a grey printout.
> 
> I am waiting patiently for this so that I can use for example amCharts within 
> LiveCode.
> 
> I have implemented a print routine by exporting to an image but as this is an 
> image it can turn out blurred.
> 
> Thanks
> 
> Terry
> 
> 
> on mouseUp
> 
>   answer page setup --as sheet
>   if the result = "cancel" then
>  exit mouseUp
>   end if
>   answer printer --as sheet
>   if the result = "cancel" then
>  exit mouseUp
>   end if
> 
>   put  the printPaperRectangle into tPaperRect
>   put item 3 of tPaperRect into tAvailWidth
>   put item 4 of tPaperRect into tAvailHeight
> 
>   put the width of widget "Browser" into tChartWidth
>   put the height of widget "Browser" into tChartHeight
> 
>   put tAvailWidth/tChartWidth into tWidthRatio   
>   put tAvailHeight/tChartHeight into tHeightRatio   
>   put min(tWidthRatio,tHeightRatio) into tRatio   
> 
>   put tRatio * tChartWidth into tPrintWidth
>   put tRatio * tChartHeight into tPrintHeight
> 
>   put 0 into item 1 of tPrintRect
>   put 0 into item 2 of tPrintRect
>   put tPrintWidth into item 3 of tPrintRect
>   put tPrintHeight into item 4 of tPrintRect
> 
>   print card from topleft of widget "Browser" to bottomRight of widget 
> "Browser" into tPrintRect
> 
> 
> end mouseUp
> ___
> use-livecode mailing list
> use-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


Disallowing overscroll/bounce in the browser widget on iOS

2017-06-29 Thread Jonathan Lynch via use-livecode
Has anyone managed to block that annoying bounce effect? It looks terrible in 
an app.

I tried all sorts of CSS and JS, but no luck. I am going to explore editing the 
plist, since this is related to a UIWebView setting, but if anyone has already 
done this, it would be most helpful.

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


Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Rounding to the nearest whole number could explain the direction bias.

Sent from my iPhone

> On Jun 28, 2017, at 4:31 PM, jonathandly...@gmail.com wrote:
> 
> Are you saying the down scroll has less momentum?
> 
> I have no idea why it would do that, but you can increase the momentum 
> overall by changing tRemainingDistance/15 to a lower divisor, like 
> tRemainingDistance/10.
> 
> Sent from my iPhone
> 
>> On Jun 28, 2017, at 4:23 PM, Alejandro Tejada via use-livecode 
>>  wrote:
>> 
>> 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


Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Are you saying the down scroll has less momentum?

I have no idea why it would do that, but you can increase the momentum overall 
by changing tRemainingDistance/15 to a lower divisor, like 
tRemainingDistance/10.

Sent from my iPhone

> On Jun 28, 2017, at 4:23 PM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> 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


Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Actually - the problem I just mentioned has to do with some different.

Sent from my iPhone

> On Jun 28, 2017, at 4:20 PM, jonathandly...@gmail.com wrote:
> 
> Thanks Scott
> 
> I also found something else. Mousedown stops the momentum scroll, but then 
> one must lift up the finger and start again to do more scrolling.
> 
> That should be fixable, though.
> 
> Sent from my iPhone
> 
>> On Jun 28, 2017, at 3:00 PM, Scott Rossi via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Hi Jonathan:
>> 
>> Just doing some simple tests, your script is great.  Thanks for sharing it 
>> on the list.
>> 
>> Two minor improvements I would suggest:
>> 
>> 1) After the mouseUp handler, add a mouseRelease handler to trigger 
>> deceleration/stop when the mouse is released outside of the target control.
>> 
>> on mouseRelease
>>  mouseUp
>> end mouseRelease
>> 
>> 2) In the mouseMove handler, use the built-in parameters provided by the 
>> handler instead of reading the mouseV. Probably not a huge deal in the 
>> scheme of things, but might add a tiny bit more efficiency to the script.
>> 
>> on mouseMove X,Y
>> if allowDrag <> empty then
>>set the vScroll of me to (allowDrag-Y)
>> end if
>> end mouseMove 
>> 
>> Regards,
>> 
>> Scott Rossi 
>> Creative Director 
>> Tactile Media, UX/UI Design 
>> 
>> 
>> 
>>> On Jun 28, 2017, at 9:05 AM, Jonathan Lynch via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> I just created and tested a momentum scrolling script on my iPhone, and it
>>> appears to work quite well, so I thought I would share it here.
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Thanks Scott

I also found something else. Mousedown stops the momentum scroll, but then one 
must lift up the finger and start again to do more scrolling.

That should be fixable, though.

Sent from my iPhone

> On Jun 28, 2017, at 3:00 PM, Scott Rossi via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi Jonathan:
> 
> Just doing some simple tests, your script is great.  Thanks for sharing it on 
> the list.
> 
> Two minor improvements I would suggest:
> 
> 1) After the mouseUp handler, add a mouseRelease handler to trigger 
> deceleration/stop when the mouse is released outside of the target control.
> 
> on mouseRelease
>   mouseUp
> end mouseRelease
> 
> 2) In the mouseMove handler, use the built-in parameters provided by the 
> handler instead of reading the mouseV. Probably not a huge deal in the scheme 
> of things, but might add a tiny bit more efficiency to the script.
> 
> on mouseMove X,Y
>  if allowDrag <> empty then
> set the vScroll of me to (allowDrag-Y)
>  end if
> end mouseMove 
> 
> Regards,
> 
> Scott Rossi 
> Creative Director 
> Tactile Media, UX/UI Design 
> 
> 
> 
>> On Jun 28, 2017, at 9:05 AM, Jonathan Lynch via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> I just created and tested a momentum scrolling script on my iPhone, and it
>> appears to work quite well, so I thought I would share it here.
> 
> 
> ___
> use-livecode mailing list
> use-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: Momentum Scrolling Script

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

-

Momentum Scrolling Code


Local StartDrag

Local AllowDrag

Local StartDragMil

Local CumulativeMomentum


on mousedown

   focus on nothing

   if word 1 of the name of the target = "button" or the isbutton of the
target = 1 then

  exit mousedown

   end if

   put (the mouseV)+(the vScroll of me) into AllowDrag

   put the milliseconds into StartDragMil

   put (the mouseV) into StartDrag

   repeat with CM = 1 to 5

  put 0 into CumulativeMomentum[CM]

   end repeat

   send momentumAccumulate to me in 0 milliseconds

end mousedown


on momentumAccumulate

   if mouse(1) <> "down" then

  exit momentumAccumulate

   end if



   put the milliseconds-StartDragMil into tTimeForLastMove

   put (the mouseV) into tCurrentMouseV

   put tCurrentMouseV - StartDrag into tLastDistanceCovered



   if tTimeForLastMove = 0 then

  put 1 into tTimeForLastMove

   end if

   repeat with CM = 5 down to 2

  put CumulativeMomentum[CM-1] into CumulativeMomentum[CM]

   end repeat

   put (tLastDistanceCovered*10) / tTimeForLastMove into
CumulativeMomentum[1]

   put tCurrentMouseV into StartDrag

   put the milliseconds into StartDragMil

   send momentumAccumulate to me in 5 milliseconds

end momentumAccumulate


on mousemove

   if AllowDrag <> empty then

  set the vScroll of me to AllowDrag-(the mouseV)

   end if

end mousemove


on mouseup

   put empty into AllowDrag

   put 0 into tCMTotal

   Repeat with CM = 1 to 5

  add CumulativeMomentum[CM] to tCMTotal

   end Repeat

   put tCMTotal/5 into tAverageMomentum

   put tAverageMomentum * 30 into tRemainingDistance

   doMomentumScrolling tRemainingDistance,50

end mouseup


on doMomentumScrolling tRemainingDistance, tCount

   if tCount < 1 then

  exit doMomentumScrolling

   end if

   if mouse(1) is "down" then

  exit doMomentumScrolling

   end if

   put tRemainingDistance/15 into tDistanceToMove

   put the vScroll of me into tVScroll

   set the vScroll of me to tVScroll - tDistanceToMove

   put tRemainingDistance-tDistanceToMove into tRemainingDistance

   put tCount-1 into tCount

   send "doMomentumScrolling tRemainingDistance, tCount" to me in 5
milliseconds

end doMomentumScrolling

On Wed, Jun 28, 2017 at 12:49 PM, Sean Cole (Pi) via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Jonathan,
> I would also recommend using the var name prefixes as recommended by LC in
> thier Tips for Writing Good Code when sharing publicly. Like this I mean:
>
> Local sStartDrag
> Local sAllowDrag
> Local sStartDragMil
> Local sCumulativeMomentum
>
> on mousedown
>focus on nothing
>if word 1 of the name of the target = "button" or the isbutton of the
> target = 1 then
>   exit mousedown
>end if
>put (the mouseV)+(the vScroll of me) into sAllowDrag
>put the milliseconds into sStartDragMil
>put (the mouseV) into sStartDrag
>repeat with CM = 1 to 5
>   put 0 into sCumulativeMomentum[CM]
>end repeat
>send momentumAccumulate to me in 0 milliseconds
> end mousedown
>
> on momentumAccumulate
> local tTimeForLastMove, tCurrentMouseV, tLastDistanceCovered
>if mouse(1) <> "down" then
>   exit momentumAccumulate
>end if
>put the milliseconds-sStartDragMil into tTimeForLastMove
>put (the mouseV) into tCurrentMouseV
>put tCurrentMouseV - sStartDrag into tLastDistanceCovered
>if tTimeForLastMove = 0 then
>   put 1 into tTimeForLastMove
>end if
>repeat with CM = 5 down to 2
>   put sCumulativeMomentum[CM-1] into sCumulativeMomentum[CM]
>end repeat
>put (tLastDistanceCovered*10) / tTimeForLastMove into
> sCumulativeMomentum[1]
>put tCurrentMouseV into sStartDrag
>put the milliseconds into sStartDragMil
>send momentumAccumulate to me in 5 milliseconds
> end momentumAccumulate
>
> on mousemove
>if sAllowDrag <> empty then
>   set the vScroll of me to sAllowDrag-(the mouseV)
>end if
> end mousemove
>
> on mouseup
> local tCMTotal, tAverageMomentum, tRemainingDistance
>put empty into sAllowDrag
>put 0 into tCMTotal
>Repeat with CM = 1 to 5
>   add sCumulativeMomentum[CM] to tCMTotal
>end Repeat
>put tCMTotal/5 into tAverageMomentum
>put tAverageMomentum * 30 into tRemainingDistance
>doMomentumScrolling tRemainingDistance,50
> end mouseup
>
> on doMomentumScrolling pRemainingDistance, pCount
> local tDistanceToMove
>if pCount > 50 then
>   exit doMomentumScrolling
>end if
>if mouse(1) is "down" then
>   exit doMomentumScrolling
>end if
>put pRemainingDistance/15 into tDistanceToMove
>put the vScroll of me into tVScroll
>set the vScroll of me to tVScroll - tDistanceToMove
>put pRemainingDistance-tDistanceToMove into 

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
That's a good tip - it actually will affect one of my groups quite a bit - drat.

Thanks Sean

Sent from my iPhone

> On Jun 28, 2017, at 12:29 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> This is excellent Jonathan, Thanks.
> 
> Another tip is to make sure that the Group object you wish to scroll the
> contents of is not nested in any other groups as the will negate the
> AcceleratedRendering. This is not documented in the API dictionary but is a
> known functionality. The documentation will be changed to include this very
> necessary information and there is word that acceleratedRendering will be
> extended to include nested controls sometime in the future, but not just
> yet.
> 
> Thanks again
> 
> Sean Cole
> *Pi Digital Productions Ltd*
> ___
> use-livecode mailing list
> use-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


Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Hi everyone,

I just created and tested a momentum scrolling script on my iPhone, and it
appears to work quite well, so I thought I would share it here. It also
works on desktop with mouse dragging. If you see improvements, please share
them.

1. Make sure to have accelerated rendering on for the stack.
2. Make sure to set the layer mode of the group to "scrolling" for mobile
devices, so it will be fully responsive to the touch.
3. You can adjust the various constants in this script to alter the
duration, speed, and length of momentum scrolling. Just play with it as
needed.

Here is the script:
---


Local StartDrag

Local AllowDrag

Local StartDragMil

Local CumulativeMomentum


on mousedown

   focus on nothing

   if word 1 of the name of the target = "button" or the isbutton of the
target = 1 then

  exit mousedown

   end if

   put (the mouseV)+(the vScroll of me) into AllowDrag

   put the milliseconds into StartDragMil

   put (the mouseV) into StartDrag

   repeat with CM = 1 to 5

  put 0 into CumulativeMomentum[CM]

   end repeat

   send momentumAccumulate to me in 0 milliseconds

end mousedown


on momentumAccumulate

   if mouse(1) <> "down" then

  exit momentumAccumulate

   end if



   put the milliseconds-StartDragMil into tTimeForLastMove

   put (the mouseV) into tCurrentMouseV

   put tCurrentMouseV - StartDrag into tLastDistanceCovered



   if tTimeForLastMove = 0 then

  put 1 into tTimeForLastMove

   end if

   repeat with CM = 5 down to 2

  put CumulativeMomentum[CM-1] into CumulativeMomentum[CM]

   end repeat

   put (tLastDistanceCovered*10) / tTimeForLastMove into
CumulativeMomentum[1]

   put tCurrentMouseV into StartDrag

   put the milliseconds into StartDragMil

   send momentumAccumulate to me in 5 milliseconds

end momentumAccumulate


on mousemove

   if AllowDrag <> empty then

  set the vScroll of me to AllowDrag-(the mouseV)

   end if

end mousemove


on mouseup

   put empty into AllowDrag

   put 0 into tCMTotal

   Repeat with CM = 1 to 5

  add CumulativeMomentum[CM] to tCMTotal

   end Repeat

   put tCMTotal/5 into tAverageMomentum

   put tAverageMomentum * 30 into tRemainingDistance

   doMomentumScrolling tRemainingDistance,50

end mouseup


on doMomentumScrolling tRemainingDistance, tCount

   if tCount > 50 then

  exit doMomentumScrolling

   end if

   if mouse(1) is "down" then

  exit doMomentumScrolling

   end if

   put tRemainingDistance/15 into tDistanceToMove

   put the vScroll of me into tVScroll

   set the vScroll of me to tVScroll - tDistanceToMove

   put tRemainingDistance-tDistanceToMove into tRemainingDistance

   put tCount-1 into tCount

   send "doMomentumScrolling tRemainingDistance, tCount" to me in 5
milliseconds

end doMomentumScrolling

-- 
Do all things with love
___
use-livecode mailing list
use-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 do we access the clipboard on mobile devices?

2017-06-27 Thread Jonathan Lynch via use-livecode
>From a design perspective, for being able to use paste, speech to text, and 
>emojis, I have Idea that comes from something Richard said.

When a user clicks on a field to edit, that field could appear to start from 
its location and grow to take up most of the screen.

It would actually be a mobile native field that is created on the fly. 

Then the user could use native field capabilities and it would look like it was 
designed that way on purpose.

When they click a 'done' button, it would shrink down to regular size, process 
the contents, and put them into the LC field.

If done right, that could be pretty sharp and would address the issue of fields 
being in scrolling groups - something I don't think we can do with native 
mobile fields.

Sent from my iPhone

> On Jun 27, 2017, at 4:17 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> hh wrote:
> 
> >> Richard G. wrote:
> >> ... beyond the  performance gains by moving "low level binary data
> >> processing" to javaScript (would be nice if someone has time to
> >> post some apples-to-apples comparisons) ...
> >
> > "Low level binary data processing" means for me for example to invert
> > the color data of an image of medium screen size (say 1920x1080)
> > _without_ using any js-package, only using pure HTML5/javascript.
> 
> What is "js-package"?  If the "js" isn't JavaScript, what is it?
> 
> 
> > Now please define "apples-to-apples comparisons" for that use-case,
> > best with your LC script version (so that we have the fastest possible
> > LC script version), and I'll add my version so that everyone can do
> > his own comparisons.
> >
> > [Use latest LC 8.1.5, the image is a LiveCode object, say image 1]
> > [Simple invert means for me (r,g,b) -> (255-r,255-g,255-b)]
> >
> > on mouseUp
> >-- start timing
> >...
> >-- end timing
> > end mouseUp
> 
> I don't have a collection of image processing scripts handy for such testing, 
> but I've seen some in the forums I may be able to hunt down if they're useful.
> 
> 
> >> Richard G. wrote:
> >> ... what I find most interesting in these  discussions is that most of
> >> the interest expressed thus far has been for  UI elements, something
> >> previously seen as LC's sweet spot.
> >
> > Just the same with most externals ?!
> 
> If we expand the conversation from "externals" to all forms of extensions in 
> general, then certainly LCB-based widgets tend to be GUI controls.
> 
> But if we look at the types of externals most commonly used in LC at the 
> moment, we have tsNet, the MER collection, and others, most of which provide 
> some pretty great functionality but are rarely creating GUI controls.
> 
> -- 
> 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


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

2017-06-27 Thread Jonathan Lynch via use-livecode
Thanks Roger,

With the huge amount of LC/HTML work I have done over the last year, I feel 
comfortable in saying that LC is vastly superior for all of the underlying text 
processing and data manipulation that has to be done.

HTML/JS is all about presentation, but would be hard to use for the back end 
stuff.  

To be honest, I do wish LC had all of the basic modern interface options one 
normally expects for mobile devices, but I realize how expensive it is to make 
those things.

Sent from my iPhone

> On Jun 27, 2017, at 8:07 AM, Roger Eller via use-livecode 
>  wrote:
> 
> No judgement here either.  Just an involuntary gag reflex @ the thought of
> my beloved LC being reduced to a l mere code-language traffic light.
> Although I have always appreciated shell and do as applescript to get that
> one little piece of data from the native OS, it's not the way I prefer to
> use LC.  I like to stay in the core language as much as possible.  It is a
> lovely place.
> 
> Jonathan, I meant no offense to you or your approach.  Go forth and augment
> the earth!  :-)
> 
> ~Roger
> 
> On Jun 27, 2017 12:18 AM, "Richard Gaskin via use-livecode" <
> use-livecode@lists.runrev.com> wrote:
>> 
>> No judgment from me on this. On the contrary, ..
>> 
>> --
>> Richard Gaskin
>> Fourth World Systems
>> 
>> 
>> jonathandlynch wrote:
>> 
>>> I am not trying to start a fuss - just find solutions for my particular
> problem.
>>> 
>>> 
> ___
> use-livecode mailing list
> use-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: How do we access the clipboard on mobile devices?

2017-06-26 Thread Jonathan Lynch via use-livecode
I am not trying to start a fuss - just find solutions for my particular problem.

This is what worked for me for this situation.

For situations where LC provides a full solution, it is MUCH faster to code in.

Sent from my iPhone

> On Jun 26, 2017, at 9:56 PM, Roger Eller via use-livecode 
>  wrote:
> 
> On Jun 26, 2017 9:36 PM, "Richard Gaskin via use-livecode" <
> use-livecode@lists.runrev.com> wrote:
>> 
>> With all the interest lately in bypassing the LC language to use an
> embedded browser process, maybe we've found the winning slogan for LC:
>> 
>> "LiveCode: a great JavaScript packaging tool"
>> 
>> :)
>> 
>> --
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ambassa...@fourthworld.comhttp://www.FourthWorld.com
>> 
> 
> -1
> 
> NOT my 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: How do we access the clipboard on mobile devices?

2017-06-26 Thread Jonathan Lynch via use-livecode
And the iPhone speech to text works this way too!

Sent from my iPhone

> On Jun 26, 2017, at 9:21 PM, jonathandly...@gmail.com wrote:
> 
> I just modified the texting part of Augmented Earth to use a browser widget 
> for texting - it was a huge pain. But - now it has inertial scrolling, copy 
> and paste, and works fine with all of the emojis.
> 
> I might wind up going that route on other text entry stuff. It is clean and 
> smooth that way.
> 
> 
> 
> 
> Sent from my iPhone
> 
>> On Jun 26, 2017, at 3:30 PM, jonathandly...@gmail.com wrote:
>> 
>> For this case, though, it will have to be called up specially, not made to 
>> look like it was already there.
>> 
>> The field in question also allows users to put in images - something I don't 
>> think native fields can do. So the app would have an enter text button that 
>> calls up the native field, where the user can type or paste text that is 
>> then inserted into the LC field.
>> 
>> Sent from my iPhone
>> 
>>> On Jun 26, 2017, at 3:21 PM, Dave Kilroy via use-livecode 
>>>  wrote:
>>> 
>>> OK good, the visible bits of a native field (border, background colour etc) 
>>> could all be provided by background graphics so when you switch fields no 
>>> visible change can be seen - you might even be able to use the 
>>> inputTextChanged message instead of a button which the user has to press
>>> 
>>> BTW you’ll have to delete the native field instead of just hiding it as 
>>> it’ll be in the top layer and could interfere with user interactions…
>>> 
>>> Dave
>>> 
>>> 
 Hi Dave - I think that might help 
 
 I could give the user a button for opening up a pastable field. They could 
 paste into that and LC could process it and put it into the regular field. 
 It's not a bad idea. 
>>> ___
>>> use-livecode mailing list
>>> use-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: How do we access the clipboard on mobile devices?

2017-06-26 Thread Jonathan Lynch via use-livecode
I just modified the texting part of Augmented Earth to use a browser widget for 
texting - it was a huge pain. But - now it has inertial scrolling, copy and 
paste, and works fine with all of the emojis.

I might wind up going that route on other text entry stuff. It is clean and 
smooth that way.




Sent from my iPhone

> On Jun 26, 2017, at 3:30 PM, jonathandly...@gmail.com wrote:
> 
> For this case, though, it will have to be called up specially, not made to 
> look like it was already there.
> 
> The field in question also allows users to put in images - something I don't 
> think native fields can do. So the app would have an enter text button that 
> calls up the native field, where the user can type or paste text that is then 
> inserted into the LC field.
> 
> Sent from my iPhone
> 
>> On Jun 26, 2017, at 3:21 PM, Dave Kilroy via use-livecode 
>>  wrote:
>> 
>> OK good, the visible bits of a native field (border, background colour etc) 
>> could all be provided by background graphics so when you switch fields no 
>> visible change can be seen - you might even be able to use the 
>> inputTextChanged message instead of a button which the user has to press
>> 
>> BTW you’ll have to delete the native field instead of just hiding it as 
>> it’ll be in the top layer and could interfere with user interactions…
>> 
>> Dave
>> 
>> 
>>> Hi Dave - I think that might help 
>>> 
>>> I could give the user a button for opening up a pastable field. They could 
>>> paste into that and LC could process it and put it into the regular field. 
>>> It's not a bad idea. 
>> ___
>> use-livecode mailing list
>> use-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: How do we access the clipboard on mobile devices?

2017-06-26 Thread Jonathan Lynch via use-livecode
For this case, though, it will have to be called up specially, not made to look 
like it was already there.

The field in question also allows users to put in images - something I don't 
think native fields can do. So the app would have an enter text button that 
calls up the native field, where the user can type or paste text that is then 
inserted into the LC field.

Sent from my iPhone

> On Jun 26, 2017, at 3:21 PM, Dave Kilroy via use-livecode 
>  wrote:
> 
> OK good, the visible bits of a native field (border, background colour etc) 
> could all be provided by background graphics so when you switch fields no 
> visible change can be seen - you might even be able to use the 
> inputTextChanged message instead of a button which the user has to press
> 
> BTW you’ll have to delete the native field instead of just hiding it as it’ll 
> be in the top layer and could interfere with user interactions…
> 
> Dave
> 
> 
>> Hi Dave - I think that might help 
>> 
>> I could give the user a button for opening up a pastable field. They could 
>> paste into that and LC could process it and put it into the regular field. 
>> It's not a bad idea. 
> ___
> use-livecode mailing list
> use-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: How do we access the clipboard on mobile devices?

2017-06-26 Thread Jonathan Lynch via use-livecode
Hi Dave - I think that might help

I could give the user a button for opening up a pastable field. They could 
paste into that and LC could process it and put it into the regular field. It's 
not a bad idea.




Sent from my iPhone

> On Jun 26, 2017, at 2:39 PM, Dave Kilroy via use-livecode 
>  wrote:
> 
> Jonathan if you use a native field you can access it’s contents (which a user 
> could have pasted into it) via something like the inputEndEditing message, 
> and from there hide/delete the native field, reveal a LiveCode field, place 
> the relevant data into it etc etc - would this help your situation?
> 
> Dave
> ___
> use-livecode mailing list
> use-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: How do we access the clipboard on mobile devices?

2017-06-25 Thread Jonathan Lynch via use-livecode
Thanks Richard,

This conversation has made me realize I am about to have a yak shaving
moment...

The most important field for submitting a report in Augmented Earth is the
Content field. Because it is an LC field, I use it to allow the user to
enter text, format the text, and upload images. The images are a single
character with the image source set to an image, which is stored in a
hidden group.

It works quite well. The fields and images are combined to produce HTML
text. When a user reads a report, the various data and images are
downloaded and stored in their appropriate place. What they view is the
HTML that is auto generated from those fields and images and presented
through a widget.

I don't think a native field will allow me to insert images in the field in
the same way. And, of course, the content field is the place where a user
would most need to paste in text.

So, I could use native fields for entering text, but not with images
inserted in the text. Or, I can use an LC field for doing both, but then we
cannot paste.

Assuming I am able to submit the app to the App Store as it is, it seems
like I am going to have to come up with a way to paste text into an LC
field on a mobile device for version 1.1

That sounds very difficult. Would LC Builder allow me to do this? I am
pretty sure I could make an external in iOS that allows this - I have
written an iOS external in the past - but it was a big pain and LC Builder
seems like the way to do things like this in the future.

work, work, work

I appreciate your suggestion though. As long as I can generate native
fields inside of a group so they can be scrolled, I will explore that
method for all of the other fields.

J

On Sun, Jun 25, 2017 at 7:29 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> jonathandlynch wrote:
>
> > I really want to have the same forms for every platform, not have to
> > generate 40 different fields on the fly and manage all of that.
>
> You don't need to. Write a loop that instantiates any editable fields for
> you on preOpenCard and LiveCode will do the rest.
>
> I don't know why that sort of auto-instantiation isn't just a property
> setting of fields, but just about every developer I know wrote that loop
> once and never thinks about it again.
>
>
> > I might try converting my forms into HTML forms and using the browser
> > widget. I hate that because I invested so much time into the forms I
> > have created, but not being able to paste text on a tablet kinda
> > stinks.
>
> That seems like a lot more work.
>
> --
>  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
>



-- 
Do all things with love
___
use-livecode mailing list
use-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 do we access the clipboard on mobile devices?

2017-06-25 Thread Jonathan Lynch via use-livecode
I really want to have the same forms for every platform, not have to generate 
40 different fields on the fly and manage all of that.

I might try converting my forms into HTML forms and using the browser widget. I 
hate that because I invested so much time into the forms I have created, but 
not being able to paste text on a tablet kinda stinks.

Sent from my iPhone

> On Jun 25, 2017, at 11:46 AM, J. Landman Gay via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> They can paste text normally if you use a native field. The only restriction 
> is that LC can't manage the clipboard through script alone. But if you create 
> a mobile field the OS handles it as expected.
> 
> In other words, copy and paste is currently limited to manual user actions.
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> 
>> On June 25, 2017 11:07:08 AM Jonathan Lynch via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> I was very surprised it wasn't. I plan to submit Augmented Earth to the 
>> apple App Store today. I am going to be embarrassed to tell users they 
>> cannot paste text into their reports on a mobile device.
>> 
>> I think I will try to find a workaround between version 1 and version 1.1
>> 
>> Sent from my iPhone
>> 
>>> On Jun 25, 2017, at 10:28 AM, hlowe via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> iOS native text fields (and I presume other native mobile text fields)
>>> support manual copy and paste actions - the user has to manually select the
>>> text and then initiate the action. I don't know of any way to
>>> programatically copy and paste to/from the iOS clipboard nor to access the
>>> data on the clipboard. Perhaps I am missing something?
>>> 
>>> In Objective C this appears to be relatively straight forward:
>>> 
>>> UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
>>> pasteboard.string = @"some text to be pasted";
>>> 
>>> Is there is a reason why basic mobile clipboard support was never
>>> implemented in LiveCode?
>>> 
>>> It would be very nice to be able to get and set the rawClipboardData on
>>> mobile but that is only possible on the desktop.
>>> 
>>> Henry
>>> 
>>> 
>>> 
>>> --
>>> View this message in context: 
>>> http://runtime-revolution.278305.n4.nabble.com/How-do-we-access-the-clipboard-on-mobile-devices-tp4716158p4716182.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
>> 
>> ___
>> use-livecode mailing list
>> use-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: How do we access the clipboard on mobile devices?

2017-06-25 Thread Jonathan Lynch via use-livecode
I was very surprised it wasn't. I plan to submit Augmented Earth to the apple 
App Store today. I am going to be embarrassed to tell users they cannot paste 
text into their reports on a mobile device.

I think I will try to find a workaround between version 1 and version 1.1

Sent from my iPhone

> On Jun 25, 2017, at 10:28 AM, hlowe via use-livecode 
>  wrote:
> 
> iOS native text fields (and I presume other native mobile text fields)
> support manual copy and paste actions - the user has to manually select the
> text and then initiate the action. I don't know of any way to
> programatically copy and paste to/from the iOS clipboard nor to access the
> data on the clipboard. Perhaps I am missing something?
> 
> In Objective C this appears to be relatively straight forward:
> 
> UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
> pasteboard.string = @"some text to be pasted";
> 
> Is there is a reason why basic mobile clipboard support was never
> implemented in LiveCode?
> 
> It would be very nice to be able to get and set the rawClipboardData on
> mobile but that is only possible on the desktop.
> 
> Henry
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/How-do-we-access-the-clipboard-on-mobile-devices-tp4716158p4716182.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

___
use-livecode mailing list
use-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 do we access the clipboard on mobile devices?

2017-06-24 Thread Jonathan Lynch via use-livecode
Does that mean I could put the text to be copied into a native field, then put 
into the clipboard from there?

Sent from my iPhone

> On Jun 24, 2017, at 4:46 PM, J. Landman Gay via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
>> On 6/24/17 2:03 PM, Jonathan Lynch via use-livecode wrote:
>> I cannot figure it out from the docs
> 
> The clipboard isn't supported in LC fields on mobile. To get full clipboard 
> support you need to use a native field.
> 
> -- 
> 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


How do we access the clipboard on mobile devices?

2017-06-24 Thread Jonathan Lynch via use-livecode
I cannot figure it out from the docs 

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


Re: LC Global - my experience

2017-06-17 Thread Jonathan Lynch via use-livecode
I could not afford to travel to Scotland right now, so the virtual meeting was 
the only way for me.


Sent from my iPhone

> On Jun 17, 2017, at 9:05 AM, Skip Kimpel via use-livecode 
>  wrote:
> 
> an open bar
> 
> SKIP
> 
>> On Jun 17, 2017, at 8:42 AM, pink via use-livecode 
>>  wrote:
>> 
>> While it is fun to hang out with other Livecoders, and to go out carousing
>> with the staff, it is definitely nice to be able to watch remotely. We can
>> still interact with each other, we can still ask questions and start new
>> discussions... being an independent developer who can barely pay the bills,
>> I appreciate not having to put a huge investment into lodging etc... All in
>> all, the advantages of this setup far out weight the disadvantage of not
>> having a few mails and going out drinking with y'all.
>> 
>> So my question is... can the Livecode folks setup a virtual bar?
>> 
>> 
>> 
>> -
>> ---
>> Greg (pink) Miller
>> mad, pink and dangerous to code
>> --
>> View this message in context: 
>> http://runtime-revolution.278305.n4.nabble.com/LC-Global-my-experience-tp4715908p4715965.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
> 
> ___
> use-livecode mailing list
> use-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: LC Global - my experience

2017-06-16 Thread Jonathan Lynch via use-livecode
It seemed good for learning new ideas that might make my coding less 
idiosyncratic, but less useful for networking.

I would love a presentation on marketing LC apps.

Sent from my iPhone

> On Jun 16, 2017, at 10:18 AM, Ralph DiMola via use-livecode 
>  wrote:
> 
> I agree. But I do miss the late night sessions. But a great experience none
> the less. Having Heather as a moderator worked nicely. Some great
> announcements and DP7. Great work by the LC team and the presenters! Look
> forward to the next one.
> 
> PS: Had to run a quick errand and brought the conference with me on my
> phone. Nice...
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Roger Eller via use-livecode
> Sent: Friday, June 16, 2017 9:38 AM
> To: How to use LiveCode
> Cc: Roger Eller; Revolution
> Subject: Re: LC Global - my experience
> 
> I fully agree.  With the past simulcast(s), I would miss great sessions by
> having to choose a channel to watch.  Watching later just fell through the
> cracks as work happened.  I am very happy with day 1 of LC-Global.
> 
> As I commented on the Slack page, I do miss the coffee, tea, and snacks
> during breaks.  I suggest that some tasty Scottish treats be mailed to
> attendees prior to future events.  :)
> 
> ~Roger
> 
> 
> On Fri, Jun 16, 2017 at 8:59 AM, tbodine via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> + 1! Much better experience compared to previous simulcast attendance.
>> 
>> 
> ___
> use-livecode mailing list
> use-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


When you release an app on the apple App Store...

2017-06-16 Thread Jonathan Lynch via use-livecode
If you don't promote it at all, will it get zero downloads?

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


Re: HTML5 deployment: progress comes into sight

2017-06-04 Thread Jonathan Lynch via use-livecode
No need to loop.

Set three flags to false. After each callback comes in and the flag gets 
switched, check all three flags. After the last ones comes in, all three flag 
variables will be switched and can trigger the next action.

Sent from my iPhone

> On Jun 3, 2017, at 9:04 PM, Mark Wieder via use-livecode 
>  wrote:
> 
>> On 06/03/2017 06:38 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
>> 
>> Fascinating solution for X no of use cases, where you don't really need 
>> *now* , but where what you really only need is to know "exactly when and 
>> what" happened, even if slightly (typically, milliseconds) after the whole 
>> series events/statements finish
> 
> Also for pseudo-parallel processing:
> 
> if you have three asynchronous processes that need to finish before you can 
> move past a certain point in a script, you can set three flag variables to 
> false, then set each individually to true in its callback handler, and loop 
> on those three variables until they're all true or you reach a timeout.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.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: Flash Talks Still Wanted - 50 minute slots almost gone

2017-06-01 Thread Jonathan Lynch via use-livecode
I went ahead and applied for a 50 minute presentation. I figured it can't hurt 
to ask.



Sent from my iPhone

> On Jun 1, 2017, at 2:08 PM, Colin Holgate via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Thinking ahead, when all talks that are going to happen are booked, if there 
> are some spaces left you could expand the talk to 14 minutes.
> 
> Anyone asking to talk could say: “I can easily do it in 7 minutes”, “can do 
> it in 7 but would cover more in 14”, “need 14 minutes, but could rush it in 
> 7”.
> 
> Jonathan would be in the second or third option I guess. Worst cases would be 
> that there are fewer people doing 14 minutes, or several people having to 
> rush.
> 
> My guess is that it would be mostly booked, and just a few would get the 
> benefit of having 14 minutes.
> 
> 
>> On Jun 1, 2017, at 6:11 PM, Jonathan Lynch via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Hi Heather,
>> 
>> Would there be any interest in an explanation on how to put 3D Earth maps 
>> into a LiveCode stack?
>> 
>> It would take more than 7 minutes, but the technique is pretty cool.
>> 
>> Sent from my iPhone
>> 
>>> On Jun 1, 2017, at 11:54 AM, Heather Laine via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> Dear List Folks,
>>> 
>>> Our conference program is looking strong and filling up fast. I'm almost 
>>> out of space to accept more 50 minutes talks (more will be announced 
>>> shortly). However, I'm still looking for 7 minute flash talks. I know loads 
>>> of you good folks have great stories to tell! Roll up roll up, and share 
>>> your tips, tricks and aha moments.
>>> 
>>> https://livecode.com/global/apply/ <https://livecode.com/global/apply/>
>>> 
>>> Don't be shy. 
>>> 
>>> Warm 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
>> 
>> ___
>> use-livecode mailing list
>> use-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: Flash Talks Still Wanted - 50 minute slots almost gone

2017-06-01 Thread Jonathan Lynch via use-livecode
Hi Heather,

Would there be any interest in an explanation on how to put 3D Earth maps into 
a LiveCode stack?

It would take more than 7 minutes, but the technique is pretty cool.

Sent from my iPhone

> On Jun 1, 2017, at 11:54 AM, Heather Laine via use-livecode 
>  wrote:
> 
> Dear List Folks,
> 
> Our conference program is looking strong and filling up fast. I'm almost out 
> of space to accept more 50 minutes talks (more will be announced shortly). 
> However, I'm still looking for 7 minute flash talks. I know loads of you good 
> folks have great stories to tell! Roll up roll up, and share your tips, 
> tricks and aha moments.
> 
> https://livecode.com/global/apply/ 
> 
> Don't be shy. 
> 
> Warm 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

___
use-livecode mailing list
use-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: HTML5 deployment: progress comes into sight

2017-05-31 Thread Jonathan Lynch via use-livecode
A callback is not synchronous, his point was that it would be nice to 
communicate synchronously between LC and JS, rather than use complex callback 
chains.

I agree with him, but I don't think there is a universal way to do that, just 
because some things in JavaScript, like rendering an image or using a 
webworker, are inherently asynchronous.

Sent from my iPhone

> On May 31, 2017, at 12:36 PM, Roland Huettmann via use-livecode 
>  wrote:
> 
> @BR wrote: ... "What's very difficult, as you write in detail, are
> "callbacks" for _synchronous_communication..."
> 
> Callback functions?
> 
> In my mind, a "callback" is always asynchronous -? Let us say in Javascript
> - passing the function name and parameters of Javascript through LCS/LCB
> and then somehow the result is put into a variable while I am continuing
> processing other stuff. Maybe I am wrong? I am calling a server, waiting
> for the result, but I could wait forever and the result will possibly never
> come. So it would be blocking doing other things. A callback would free me
> from waiting for nothing. Is this a right definition for "callback"?
> 
> What defines "callback"? I could understand though that I am calling a
> function in the browser widget (using the "callback" name of the function)
> which will be executed through Javascript and will be returning a value for
> further processing. What means "synchronous" or "asynchronous" in this
> context?
> 
> Again, in my mind, a callback is when I send off a parcel to my friend with
> an instruction to tell me that it arrived and the confirmation of arrival.
> The confirmation is the callback. Then I know my friend received the
> parcel. Or in another analogy, I am calling someone by phone asking to call
> me back. The person may call immediately or may call never or in a couple
> of days. This is asynchronous.
> 
> How would a callback become synchronous? Is it then still a "callback"?
> ___
> use-livecode mailing list
> use-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: Using callbacks within LC and JS

2017-05-31 Thread Jonathan Lynch via use-livecode
Yah - setting up threads that include JS event listeners was a big pain for 
Augmented Earth - I have no suggestions for simplifying that part.

That bit of complexity seems unavoidable to me.


Sent from my iPhone

> On May 31, 2017, at 9:15 AM, hh via use-livecode 
>  wrote:
> 
> Sadly this is only valid if the js jobs you do are non-threaded and
> do not use workers, rather than being a matter of logic.
> 
> But the speed gain by using javascript in the browser is often only
> due to multi-threading.
> 
> We don't have always control about all parts of a js library. We can't
> "split" then into non-threaded jobs.
> Usually one has to work really hard with promises. The sums that BR
> mentioned for doing synchronous communication are pretty much
> appropriate. We should collect for the (most expensive) offer of the
> core-team relating the borwser widget.
> 
>> Jonathan Lynch wrote:
>> I just wanted to explain my view on why callbacks are not as horrible
>> as they seem at first, if one structures the script logically.
>> 
>> The below code explains:
>> 
>> On LCcontrolScript pcommand,pdata
>> 
>> If pcommand = empty then
>> Put "step1();" into tJS
>> Do tJS in widget "my browser"
>> 
>> Else if pcommand = "return from step 1" then
>> -- process pdata 
>> Put "step2();" into tJS
>> Do tJS in widget "my browser"
>> 
>> Else if pcommand = "return from step 2" then
>> --process pdata 
>> Put "step3();" into tJS
>> Do tJS in widget "my browser
>> 
>> Else if pcommand = "return from step 3" then
>> --process pdata 
>> --Finish doing whatever it needs and enjoy a great JavaScript display
>> End if
>> 
>> End LCcontrolScript
> 
> ___
> use-livecode mailing list
> use-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: HTML5 deployment: progress comes into sight

2017-05-31 Thread Jonathan Lynch via use-livecode
Would it be possible to create a widget that links to an Inkscape library that 
processes svg data and sends it back to the widget to be displayed the way PNG 
is displayed?

Sent from my iPhone

> On May 31, 2017, at 7:18 AM, Richmond Mathewson via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Weel you could start with ALL SVG images made in Inkscape: monochromatic 
> "thingies" have limited use.
> 
> Richmond.
> 
>> On 5/31/17 11:48 am, Mark Waddingham via use-livecode wrote:
>>> On 2017-05-31 10:38, Jonathan Lynch via use-livecode wrote:
>>> A native svg object that accurately displays all svg files is
>>> essential. I strongly support Mark's point on that issue. This is not
>>> reinventing the wheel - it's attaching the already invented wheel to
>>> the wagon.
>> 
>> Heh - well more accurately - attaching a LiveCode-compatible instance of the 
>> already invented wheel pattern to the LiveCode wagon ;)
>> 
>> Accurately displaying *all* SVG files might take quite a while (SVG is quite 
>> a large standard) - however, there are smaller subsets (Basic/Tiny) which 
>> cover the 'icon' use-case sufficiently. So they are a good place to start.
>> 
>> Warmest Regards,
>> 
>> Mark.
>> 
> 
> ___
> use-livecode mailing list
> use-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


Using callbacks within LC and JS

2017-05-31 Thread Jonathan Lynch via use-livecode
This is in response to a different thread, but worth discussing on its own.

I just wanted to explain my view on why callbacks are not as horrible as they 
seem at first, if one structures the script logically.

The below code explains:

On LCcontrolScript pcommand,pdata

If pcommand = empty then
Put "step1();" into tJS
Do tJS in widget "my browser"

Else if pcommand = "return from step 1" then
-- process pdata 
Put "step2();" into tJS
Do tJS in widget "my browser"

Else if pcommand = "return from step 2" then
--process pdata 
Put "step3();" into tJS
Do tJS in widget "my browser

Else if pcommand = "return from step 3" then
--process pdata 
--Finish doing whatever it needs and enjoy a great JavaScript display
End if

End LCcontrolScript

On the JS side, the different functions use 
"liveCode.LCcontrolScript(tcommand,tdata);" to return the output.

As long as we structure our callback thread logically, doing a bunch of 
callbacks between LC and JS is not so bad.

The same structure can be used by functions initiated in JS. 

Having done some messy callbacks, I have learned my lesson on this. 


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


Re: HTML5 deployment: progress comes into sight

2017-05-31 Thread Jonathan Lynch via use-livecode
A native svg object that accurately displays all svg files is essential. I 
strongly support Mark's point on that issue. This is not reinventing the wheel 
- it's attaching the already invented wheel to the wagon.

Sent from my iPhone

> On May 31, 2017, at 4:26 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
>> On 2017-05-31 09:01, Dan Brown via use-livecode wrote:
>> I'll also add that for all the wonderful possibilities that LCB brings
>> there is a very real danger that countless hours will be spent using it to
>> re-invent the wheel.
> 
> That is true of every language ever implemented ;)
> 
> However, one of the goals of LCB is to allow it to be used as the 'glue' 
> language allowing LiveCode Script to access 'things written in other 
> languages' with (eventually) as much syntactic fidelity as you get with 
> builtin-in engine functionality. Hopefully, reducing the need to re-invent 
> the wheel to the minimum required to make other-world libraries look more 
> LiveCode like.
> 
> i.e. One of its main goals is to rid ourselves of the need to 're-invent the 
> wheel'.
> 
>> Take for instance the displaying of svg's. This is a solved problem in the
>> browser and has been for a long time but in native livecode it's still in
>> the infant stages of implementation (to put it mildly). The best solutions
>> for user interface "widgets" are arguably being created in the form of
>> javascript libraries. To me it makes total sense to integrate with that
>> ecosystem and free up LCB / livecode developer hours for solving other
>> problems
> 
> True - but then if I want SVG icons in my app, and I don't need the browser 
> widget at all then I might balk at the 70-100Mb bloat I have to add to 
> Windows / Linux apps to get it. Furthermore, I might balk at the start up 
> time of my app on mobile devices, whilst I use the browser widget to load all 
> my SVGs and render them into PNGs at various sizes (unless you instantiate a 
> browser widget for every SVG icon you want to use and want to put up with the 
> restrictions that places on you, and the overhead in terms of use).
> 
> Certainly we need to be careful about 're-inventing the wheel' but that just 
> means making good choices. In this case, the case for 'native' SVG support in 
> LiveCode is overwhelming - the more lightweight it is, the faster it is, the 
> more utility it has. (Also, the main problem here is 'SVG as a replacement 
> for PNG icons' which is a much smaller problem to solve than an editable SVG 
> canvas - which is what you get if you go the via-browser route).
> 
> In terms of JavaScript 'widgets' in general, then we already have a 
> reasonable strategy for using them now - you use a browser widget and load it 
> in there. For example, FileMaker has a BrowserView element and there is a 
> plugin 'React' which allows you to defined JavaScript controls and have them 
> rendered in the browser. Admittedly using such things is a little trickier 
> than we'd like at present - due to the lack of synchronous 'do as javascript'.
> 
> Anyway, I agree that using existing libraries and code as much as possible is 
> probably the best way to expand LiveCode's capabilities - hence LCB :)
> 
> 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

___
use-livecode mailing list
use-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] This Week in LiveCode 84

2017-05-29 Thread Jonathan Lynch via use-livecode
I see that you guys added an "exit on suspend" checkbox. Thank you!

Sent from my iPhone

> On May 29, 2017, at 7:13 AM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hi all,
> 
> Read about new developments in LiveCode open source and the open source
> community in today's edition of the "This Week in LiveCode" newsletter!
> 
>Read issue #84 here: https://goo.gl/x5JX4g
> 
> This is a weekly newsletter about LiveCode, focussing on what's been
> going on in and around the open source project. New issues will be
> released weekly on Mondays. We have a dedicated mailing list that will
> deliver each issue directly to you e-mail, so you don't miss any!
> 
> If you have anything you'd like mentioned (a project, a discussion
> somewhere, an upcoming event) then please get in touch.
> 
> 
> -- 
> Panagiotis Merakos 
> LiveCode Software Developer
> 
> 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

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Apparently, mobile phone compasses do not work well

2017-05-27 Thread Jonathan Lynch via use-livecode
After a bit of experimentation with different devices, and researching online, 
I have come to realize that the device simply cannot consistently detect one's 
bearing with accuracy.

I am going to mimic the way Pokémon Go lets the user spin the view around at 
will, but still auto adjusts the position as the user walks.

Just something to bear in mind for anyone else developing augmented reality 
apps.

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

Re: Does MobileSensorReading work?

2017-05-27 Thread Jonathan Lynch via use-livecode
If it helps anyone - one can apparently recalibrate the compass by facing 
north, stopping sensor tracking, and restarting sensor tracking. It is only a 
temporary solution.

Sent from my iPhone

> On May 27, 2017, at 10:21 AM, jonathandly...@gmail.com wrote:
> 
> The problem might be on my phone - the compass app does the same thing!
> 
> Sent from my iPhone
> 
>> On May 27, 2017, at 8:31 AM, jonathandly...@gmail.com wrote:
>> 
>> The mobile sensor reading is having a problem when combined with the plist 
>> hack.
>> 
>> When I hit the home button to put the app in pause mode, and then go back 
>> into the app, the device thinks that north is in whichever direction the 
>> phone is facing when the app resumes.
>> 
>> It is strange.
>> 
>> Sent from my iPhone
>> 
>>> On May 26, 2017, at 12:44 PM, jonathandly...@gmail.com wrote:
>>> 
>>> Thank you Devin :)
>>> 
>>> Sent from my iPhone
>>> 
>>>> On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode 
>>>> <use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Jonathan,
>>>> 
>>>> I worked it out for my class. Here’s a sample app that takes you through 
>>>> the main points.
>>>> 
>>>> http://livecode.byu.edu/mobile/sensorExercise.php
>>>> 
>>>> Devin
>>>> 
>>>> On May 26, 2017, at 9:30 AM, Jonathan Lynch via use-livecode 
>>>> <use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> 
>>>> wrote:
>>>> 
>>>> Never mind - I see
>>>> 
>>>> It works after you turn on mobileSensorStartTracking, and appears to 
>>>> return an array on my device
>>>> 
>>>> Sent from my iPhone
>>>> 
>>>> On May 26, 2017, at 10:56 AM, Jonathan Lynch 
>>>> <jonathandly...@gmail.com<mailto:jonathandly...@gmail.com>> wrote:
>>>> 
>>>> 
>>>> I put a button on my app and put the app on my iPhone.
>>>> 
>>>> The button had the following script:
>>>> 
>>>> 
>>>> on mouseUp
>>>> 
>>>> put MobileSensorReading("location",true) into tReading
>>>> 
>>>> answer the Keys of tReading
>>>> 
>>>> answer tReading
>>>> 
>>>> end mouseUp
>>>> 
>>>> 
>>>> I figured this would tell me if the function was supposed to return an 
>>>> array or a variable, since I had read both online.
>>>> 
>>>> Interestingly, it returned empty for both.
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Do all things with love
>>>> ___
>>>> 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

___
use-livecode mailing list
use-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: Does MobileSensorReading work?

2017-05-27 Thread Jonathan Lynch via use-livecode
The problem might be on my phone - the compass app does the same thing!

Sent from my iPhone

> On May 27, 2017, at 8:31 AM, jonathandly...@gmail.com wrote:
> 
> The mobile sensor reading is having a problem when combined with the plist 
> hack.
> 
> When I hit the home button to put the app in pause mode, and then go back 
> into the app, the device thinks that north is in whichever direction the 
> phone is facing when the app resumes.
> 
> It is strange.
> 
> Sent from my iPhone
> 
>> On May 26, 2017, at 12:44 PM, jonathandly...@gmail.com wrote:
>> 
>> Thank you Devin :)
>> 
>> Sent from my iPhone
>> 
>>> On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> Jonathan,
>>> 
>>> I worked it out for my class. Here’s a sample app that takes you through 
>>> the main points.
>>> 
>>> http://livecode.byu.edu/mobile/sensorExercise.php
>>> 
>>> Devin
>>> 
>>> On May 26, 2017, at 9:30 AM, Jonathan Lynch via use-livecode 
>>> <use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:
>>> 
>>> Never mind - I see
>>> 
>>> It works after you turn on mobileSensorStartTracking, and appears to return 
>>> an array on my device
>>> 
>>> Sent from my iPhone
>>> 
>>> On May 26, 2017, at 10:56 AM, Jonathan Lynch 
>>> <jonathandly...@gmail.com<mailto:jonathandly...@gmail.com>> wrote:
>>> 
>>> 
>>> I put a button on my app and put the app on my iPhone.
>>> 
>>> The button had the following script:
>>> 
>>> 
>>> on mouseUp
>>> 
>>> put MobileSensorReading("location",true) into tReading
>>> 
>>> answer the Keys of tReading
>>> 
>>> answer tReading
>>> 
>>> end mouseUp
>>> 
>>> 
>>> I figured this would tell me if the function was supposed to return an 
>>> array or a variable, since I had read both online.
>>> 
>>> Interestingly, it returned empty for both.
>>> 
>>> 
>>> 
>>> --
>>> Do all things with love
>>> ___
>>> 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

___
use-livecode mailing list
use-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: Does MobileSensorReading work?

2017-05-27 Thread Jonathan Lynch via use-livecode
The mobile sensor reading is having a problem when combined with the plist hack.

When I hit the home button to put the app in pause mode, and then go back into 
the app, the device thinks that north is in whichever direction the phone is 
facing when the app resumes.

It is strange.

Sent from my iPhone

> On May 26, 2017, at 12:44 PM, jonathandly...@gmail.com wrote:
> 
> Thank you Devin :)
> 
> Sent from my iPhone
> 
>> On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Jonathan,
>> 
>> I worked it out for my class. Here’s a sample app that takes you through the 
>> main points.
>> 
>> http://livecode.byu.edu/mobile/sensorExercise.php
>> 
>> Devin
>> 
>> On May 26, 2017, at 9:30 AM, Jonathan Lynch via use-livecode 
>> <use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Never mind - I see
>> 
>> It works after you turn on mobileSensorStartTracking, and appears to return 
>> an array on my device
>> 
>> Sent from my iPhone
>> 
>> On May 26, 2017, at 10:56 AM, Jonathan Lynch 
>> <jonathandly...@gmail.com<mailto:jonathandly...@gmail.com>> wrote:
>> 
>> 
>> I put a button on my app and put the app on my iPhone.
>> 
>> The button had the following script:
>> 
>> 
>> on mouseUp
>> 
>> put MobileSensorReading("location",true) into tReading
>> 
>> answer the Keys of tReading
>> 
>> answer tReading
>> 
>> end mouseUp
>> 
>> 
>> I figured this would tell me if the function was supposed to return an array 
>> or a variable, since I had read both online.
>> 
>> Interestingly, it returned empty for both.
>> 
>> 
>> 
>> --
>> Do all things with love
>> ___
>> 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

___
use-livecode mailing list
use-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: Does MobileSensorReading work?

2017-05-26 Thread Jonathan Lynch via use-livecode
Thank you Devin :)

Sent from my iPhone

> On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Jonathan,
> 
> I worked it out for my class. Here’s a sample app that takes you through the 
> main points.
> 
> http://livecode.byu.edu/mobile/sensorExercise.php
> 
> Devin
> 
> On May 26, 2017, at 9:30 AM, Jonathan Lynch via use-livecode 
> <use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Never mind - I see
> 
> It works after you turn on mobileSensorStartTracking, and appears to return 
> an array on my device
> 
> Sent from my iPhone
> 
> On May 26, 2017, at 10:56 AM, Jonathan Lynch 
> <jonathandly...@gmail.com<mailto:jonathandly...@gmail.com>> wrote:
> 
> 
> I put a button on my app and put the app on my iPhone.
> 
> The button had the following script:
> 
> 
> on mouseUp
> 
> put MobileSensorReading("location",true) into tReading
> 
> answer the Keys of tReading
> 
> answer tReading
> 
> end mouseUp
> 
> 
> I figured this would tell me if the function was supposed to return an array 
> or a variable, since I had read both online.
> 
> Interestingly, it returned empty for both.
> 
> 
> 
> --
> Do all things with love
> ___
> 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

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Is there any way at all to have a mobile app simply resume rather than restart?

2017-05-26 Thread Jonathan Lynch via use-livecode
Hi Ralph,

It is working just fine. Thanks!



Sent from my iPhone

> On May 25, 2017, at 6:45 PM, Ralph DiMola via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> It works for me on OSX 10.11.6
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Mike Kerner via use-livecode
> Sent: Wednesday, May 24, 2017 10:04 PM
> To: How to use LiveCode
> Cc: Mike Kerner
> Subject: Re: Is there any way at all to have a mobile app simply resume
> rather than restart?
> 
> I'm pretty sure you can't do it while it's still in the applications folder.
> You have to command-drag it out of the applications folder, first, before
> you modify it - at least I do, anyway.
> 
> On Wed, May 24, 2017 at 5:57 PM, Jonathan Lynch via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> This is great Ralph
>> 
>> Thank you
>> 
>> I wonder if this can open up other possibilities as well
>> 
>> Sent from my iPhone
>> 
>>> On May 24, 2017, at 5:17 PM, Ralph DiMola 
>>> <rdim...@evergreeninfo.net>
>> wrote:
>>> 
>>> 1) Go to the Applications folder
>>> 2) Right click on the LC app you are using and select "Show Package 
>>> Contents"
>>> 3) Navigate to the "Tools/Runtime/iOS" folder
>>> 4) Right click on all the device/simulator folders one at a time and
>> select
>>> "Get Info"
>>> 5) At the bottom click on the "Read only" to the right of your 
>>> account
>> name
>>> and select "Read & Write"
>>> 6) Repeat 5 for all device/simulator folders
>>> 7) In each of the device/simulator folders edit the setting.plist file.
>>> 8) To edit... right click the setting.plist file and select "Open With"
>> and
>>> then "Other..." and select "TextEdit.app".
>>> 9) You will get a warning that the file is locked. Choose the Unlock
>> option.
>>> 
>>> 10) Either change UIApplicationExitsOnSuspend key value to "False" 
>>> or
>> like I
>>> do delete the key all together(2 lines)
>>> 11) repeat 8-10 for setting.plist in each of the device/simulator
>> folders.
>>> 12) Fire up LC and make an iOS app.
>>> 
>>> Ralph DiMola
>>> IT Director
>>> Evergreen Information Services
>>> rdim...@evergreeninfo.net
>>> 
>>> 
>>> -Original Message-
>>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
>> Behalf
>>> Of Jonathan Lynch via use-livecode
>>> Sent: Wednesday, May 24, 2017 4:37 PM
>>> To: How to use LiveCode
>>> Cc: jonathandly...@gmail.com
>>> Subject: Re: Is there any way at all to have a mobile app simply 
>>> resume rather than restart?
>>> 
>>> I don't actually know how to do any of the steps for this - would be
>> easy on
>>> a pc. Researching it now.
>>> 
>>> Sent from my iPhone
>>> 
>>>> On May 24, 2017, at 4:27 PM, jonathandly...@gmail.com wrote:
>>>> 
>>>> I read that on the forums, but I defer to Ralph on this.
>>>> 
>>>> I am playing with the hack now.
>>>> 
>>>> I think I could also have a legitimate reason for playing audio -
>> changing
>>> the music as a user gets closer to a marker - but that would be a 
>>> lot of trouble to set up right now.
>>>> 
>>>> Sent from my iPhone
>>>> 
>>>>> On May 24, 2017, at 4:07 PM, Mike Kerner via use-livecode
>>> <use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> Are you sure?  I'm pretty sure I have at least a couple of apps I 
>>>>> built in
>>>>> 8 that still use the hack.
>>>>> 
>>>>> On Wed, May 24, 2017 at 3:54 PM, Jonathan Lynch via use-livecode < 
>>>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>>> It looks like the plist hack is not available in version 8.
>>>>>> 
>>>>>> Choosing background audio works - but that means I need to have a 
>>>>>> plausible reason for having background audio or Apple reviewers 
>>>>>> might ding the app.
>>>>>> 
>>>>>> What a pain - why not just allow it to work the way 

Re: Does MobileSensorReading work?

2017-05-26 Thread Jonathan Lynch via use-livecode
Never mind - I see

It works after you turn on mobileSensorStartTracking, and appears to return an 
array on my device

Sent from my iPhone

> On May 26, 2017, at 10:56 AM, Jonathan Lynch  wrote:
> 
> 
> I put a button on my app and put the app on my iPhone.
> 
> The button had the following script:
> 
> 
> on mouseUp
> 
> put MobileSensorReading("location",true) into tReading
> 
> answer the Keys of tReading
> 
> answer tReading
> 
> end mouseUp
> 
> 
> I figured this would tell me if the function was supposed to return an array 
> or a variable, since I had read both online.
> 
> Interestingly, it returned empty for both.
> 
> 
> 
> -- 
> Do all things with love
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Does MobileSensorReading work?

2017-05-26 Thread Jonathan Lynch via use-livecode
I put a button on my app and put the app on my iPhone.

The button had the following script:


on mouseUp

put MobileSensorReading("location",true) into tReading

answer the Keys of tReading

answer tReading

end mouseUp

I figured this would tell me if the function was supposed to return an
array or a variable, since I had read both online.

Interestingly, it returned empty for both.



-- 
Do all things with love
___
use-livecode mailing list
use-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: Apparent peculiar behavior in browser widget on iOS

2017-05-25 Thread Jonathan Lynch via use-livecode
More specifically - this seems to happen after setting the htmltext by script. 

It works fine if the browser widget already has the right htmltext when the 
stack loads.

Sent from my iPhone

> On May 25, 2017, at 12:59 PM, jonathandly...@gmail.com wrote:
> 
> It appears that one cannot send a JavaScript message from the browser widget 
> to LC from a JS function initiated by a body onload event.
> 
> It works on mac, but not on iPhone.
> 
> It is most peculiar and I am wondering if anyone else has encountered 
> anything like this.
> 
> 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


Apparent peculiar behavior in browser widget on iOS

2017-05-25 Thread Jonathan Lynch via use-livecode
It appears that one cannot send a JavaScript message from the browser widget to 
LC from a JS function initiated by a body onload event.

It works on mac, but not on iPhone.

It is most peculiar and I am wondering if anyone else has encountered anything 
like this.

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


Re: Is there any way at all to have a mobile app simply resume rather than restart?

2017-05-24 Thread Jonathan Lynch via use-livecode
This is great Ralph 

Thank you

I wonder if this can open up other possibilities as well

Sent from my iPhone

> On May 24, 2017, at 5:17 PM, Ralph DiMola <rdim...@evergreeninfo.net> wrote:
> 
> 1) Go to the Applications folder
> 2) Right click on the LC app you are using and select "Show Package
> Contents"
> 3) Navigate to the "Tools/Runtime/iOS" folder
> 4) Right click on all the device/simulator folders one at a time and select
> "Get Info"
> 5) At the bottom click on the "Read only" to the right of your account name
> and select "Read & Write"
> 6) Repeat 5 for all device/simulator folders
> 7) In each of the device/simulator folders edit the setting.plist file.
> 8) To edit... right click the setting.plist file and select "Open With" and
> then "Other..." and select "TextEdit.app".
> 9) You will get a warning that the file is locked. Choose the Unlock option.
> 
> 10) Either change UIApplicationExitsOnSuspend key value to "False" or like I
> do delete the key all together(2 lines)
> 11) repeat 8-10 for setting.plist in each of the device/simulator folders.
> 12) Fire up LC and make an iOS app.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Jonathan Lynch via use-livecode
> Sent: Wednesday, May 24, 2017 4:37 PM
> To: How to use LiveCode
> Cc: jonathandly...@gmail.com
> Subject: Re: Is there any way at all to have a mobile app simply resume
> rather than restart?
> 
> I don't actually know how to do any of the steps for this - would be easy on
> a pc. Researching it now.
> 
> Sent from my iPhone
> 
>> On May 24, 2017, at 4:27 PM, jonathandly...@gmail.com wrote:
>> 
>> I read that on the forums, but I defer to Ralph on this.
>> 
>> I am playing with the hack now.
>> 
>> I think I could also have a legitimate reason for playing audio - changing
> the music as a user gets closer to a marker - but that would be a lot of
> trouble to set up right now.
>> 
>> Sent from my iPhone
>> 
>>> On May 24, 2017, at 4:07 PM, Mike Kerner via use-livecode
> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> Are you sure?  I'm pretty sure I have at least a couple of apps I 
>>> built in
>>> 8 that still use the hack.
>>> 
>>> On Wed, May 24, 2017 at 3:54 PM, Jonathan Lynch via use-livecode < 
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>>> It looks like the plist hack is not available in version 8.
>>>> 
>>>> Choosing background audio works - but that means I need to have a 
>>>> plausible reason for having background audio or Apple reviewers 
>>>> might ding the app.
>>>> 
>>>> What a pain - why not just allow it to work the way other apps work?
>>>> 
>>>> Sent from my iPhone
>>>> 
>>>>> On May 24, 2017, at 3:43 PM, jonathandly...@gmail.com wrote:
>>>>> 
>>>>> Thank you!
>>>>> 
>>>>> Sent from my iPhone
>>>>> 
>>>>>> On May 24, 2017, at 3:34 PM, Mike Kerner via use-livecode <
>>>> use-livecode@lists.runrev.com> wrote:
>>>>>> 
>>>>>> If you're referring to ios, look up "plist hack", here.  The only 
>>>>>> thing
>>>> to
>>>>>> remember is that for each version of LC, you have to perform the 
>>>>>> hack, again, until Edinburgh gives us a Standalone Settings option.
>>>>>> 
>>>>>> On Wed, May 24, 2017 at 3:22 PM, Jonathan Lynch via use-livecode < 
>>>>>> use-livecode@lists.runrev.com> wrote:
>>>>>> 
>>>>>>> Having to restart the app from scratch sucks. I can store the 
>>>>>>> current state, but my users would have to wait for the map widget 
>>>>>>> to reload
>>>> every
>>>>>>> time they came back from another app.
>>>>>>> 
>>>>>>> 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:
>>>>>>> 

Re: Is there any way at all to have a mobile app simply resume rather than restart?

2017-05-24 Thread Jonathan Lynch via use-livecode
I don't actually know how to do any of the steps for this - would be easy on a 
pc. Researching it now.

Sent from my iPhone

> On May 24, 2017, at 4:27 PM, jonathandly...@gmail.com wrote:
> 
> I read that on the forums, but I defer to Ralph on this.
> 
> I am playing with the hack now.
> 
> I think I could also have a legitimate reason for playing audio - changing 
> the music as a user gets closer to a marker - but that would be a lot of 
> trouble to set up right now.
> 
> Sent from my iPhone
> 
>> On May 24, 2017, at 4:07 PM, Mike Kerner via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Are you sure?  I'm pretty sure I have at least a couple of apps I built in
>> 8 that still use the hack.
>> 
>> On Wed, May 24, 2017 at 3:54 PM, Jonathan Lynch via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> It looks like the plist hack is not available in version 8.
>>> 
>>> Choosing background audio works - but that means I need to have a
>>> plausible reason for having background audio or Apple reviewers might ding
>>> the app.
>>> 
>>> What a pain - why not just allow it to work the way other apps work?
>>> 
>>> Sent from my iPhone
>>> 
>>>> On May 24, 2017, at 3:43 PM, jonathandly...@gmail.com wrote:
>>>> 
>>>> Thank you!
>>>> 
>>>> Sent from my iPhone
>>>> 
>>>>> On May 24, 2017, at 3:34 PM, Mike Kerner via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> If you're referring to ios, look up "plist hack", here.  The only thing
>>> to
>>>>> remember is that for each version of LC, you have to perform the hack,
>>>>> again, until Edinburgh gives us a Standalone Settings option.
>>>>> 
>>>>> On Wed, May 24, 2017 at 3:22 PM, Jonathan Lynch via use-livecode <
>>>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>>> Having to restart the app from scratch sucks. I can store the current
>>>>>> state, but my users would have to wait for the map widget to reload
>>> every
>>>>>> time they came back from another app.
>>>>>> 
>>>>>> 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
>>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> On the first day, God created the heavens and the Earth
>>>>> On the second day, God created the oceans.
>>>>> On the third day, God put the animals on hold for a few hours,
>>>>> and did a little diving.
>>>>> And God said, "This is good."
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-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
>>> 
>> 
>> 
>> 
>> -- 
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>  and did a little diving.
>> And God said, "This is good."
>> ___
>> use-livecode mailing list
>> use-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: Is there any way at all to have a mobile app simply resume rather than restart?

2017-05-24 Thread Jonathan Lynch via use-livecode
I read that on the forums, but I defer to Ralph on this.

I am playing with the hack now.

I think I could also have a legitimate reason for playing audio - changing the 
music as a user gets closer to a marker - but that would be a lot of trouble to 
set up right now.

Sent from my iPhone

> On May 24, 2017, at 4:07 PM, Mike Kerner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Are you sure?  I'm pretty sure I have at least a couple of apps I built in
> 8 that still use the hack.
> 
> On Wed, May 24, 2017 at 3:54 PM, Jonathan Lynch via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> It looks like the plist hack is not available in version 8.
>> 
>> Choosing background audio works - but that means I need to have a
>> plausible reason for having background audio or Apple reviewers might ding
>> the app.
>> 
>> What a pain - why not just allow it to work the way other apps work?
>> 
>> Sent from my iPhone
>> 
>>> On May 24, 2017, at 3:43 PM, jonathandly...@gmail.com wrote:
>>> 
>>> Thank you!
>>> 
>>> Sent from my iPhone
>>> 
>>>> On May 24, 2017, at 3:34 PM, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> If you're referring to ios, look up "plist hack", here.  The only thing
>> to
>>>> remember is that for each version of LC, you have to perform the hack,
>>>> again, until Edinburgh gives us a Standalone Settings option.
>>>> 
>>>> On Wed, May 24, 2017 at 3:22 PM, Jonathan Lynch via use-livecode <
>>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>>> Having to restart the app from scratch sucks. I can store the current
>>>>> state, but my users would have to wait for the map widget to reload
>> every
>>>>> time they came back from another app.
>>>>> 
>>>>> 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
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> On the first day, God created the heavens and the Earth
>>>> On the second day, God created the oceans.
>>>> On the third day, God put the animals on hold for a few hours,
>>>> and did a little diving.
>>>> And God said, "This is good."
>>>> ___
>>>> use-livecode mailing list
>>>> use-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
>> 
> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-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: Is there any way at all to have a mobile app simply resume rather than restart?

2017-05-24 Thread Jonathan Lynch via use-livecode
It looks like the plist hack is not available in version 8. 

Choosing background audio works - but that means I need to have a plausible 
reason for having background audio or Apple reviewers might ding the app.

What a pain - why not just allow it to work the way other apps work?

Sent from my iPhone

> On May 24, 2017, at 3:43 PM, jonathandly...@gmail.com wrote:
> 
> Thank you!
> 
> Sent from my iPhone
> 
>> On May 24, 2017, at 3:34 PM, Mike Kerner via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> If you're referring to ios, look up "plist hack", here.  The only thing to
>> remember is that for each version of LC, you have to perform the hack,
>> again, until Edinburgh gives us a Standalone Settings option.
>> 
>> On Wed, May 24, 2017 at 3:22 PM, Jonathan Lynch via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Having to restart the app from scratch sucks. I can store the current
>>> state, but my users would have to wait for the map widget to reload every
>>> time they came back from another app.
>>> 
>>> 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
>>> 
>> 
>> 
>> 
>> -- 
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>  and did a little diving.
>> And God said, "This is good."
>> ___
>> use-livecode mailing list
>> use-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: Is there any way at all to have a mobile app simply resume rather than restart?

2017-05-24 Thread Jonathan Lynch via use-livecode
Thank you!

Sent from my iPhone

> On May 24, 2017, at 3:34 PM, Mike Kerner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> If you're referring to ios, look up "plist hack", here.  The only thing to
> remember is that for each version of LC, you have to perform the hack,
> again, until Edinburgh gives us a Standalone Settings option.
> 
> On Wed, May 24, 2017 at 3:22 PM, Jonathan Lynch via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Having to restart the app from scratch sucks. I can store the current
>> state, but my users would have to wait for the map widget to reload every
>> time they came back from another app.
>> 
>> 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
>> 
> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-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


Is there any way at all to have a mobile app simply resume rather than restart?

2017-05-24 Thread Jonathan Lynch via use-livecode
Having to restart the app from scratch sucks. I can store the current state, 
but my users would have to wait for the map widget to reload every time they 
came back from another app.

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


Re: send mouseup to control

2017-05-24 Thread Jonathan Lynch via use-livecode
I just send the ID of the sending object as a parameter.

Sent from my iPhone

On May 24, 2017, at 1:58 PM, hh via use-livecode 
 wrote:

>> Alejandro T. wrote:
>> Reading LiveCode Dictionary about the target and send,
>> could not find an obvious way to get the name of a message
>> sender without putting first this name in another container
>> (a custom property, a field or a global variable).
> 
> Yet another option could be to use more parameters:
> -- b is the button number (obligatory)
> -- [b may be also misused for any positive integer]
> -- clicking the control with that handler leaves x empty
> on mouseUp b,x
> switch x
>case ...
>  break
>case ...
> ...
>default -- x is empty
>  -- the direct-click code, use b
>   end switch
> end mouseUp
> 
> 
> ___
> use-livecode mailing list
> use-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: Sql problem

2017-05-23 Thread Jonathan Lynch via use-livecode
One quick note about base64encode:

LC adds linefeeds. After you base64encode, you may need to replace linefeed 
with empty in the variable.

Sent from my iPhone

> On May 23, 2017, at 8:10 PM, William Prothero via use-livecode 
>  wrote:
> 
> Andre,
> This is good advice. I did it this way as a shortcut for an app I’ve built 
> for myself only. You are right that it makes debugging harder because I can’t 
> use other management applications to examine the contents. 
> 
> For many years now I’ve used php cgi’s to connect to the remote mysql db and 
> it works well. I just haven’t spent the time to set up JSON. 
> 
> But it looks like I could dispense with the php and directly access the mySQL 
> db from my mobile app, without a cgi?
> 
> Best,
> Bill
> 
>> On May 23, 2017, at 3:30 PM, Andre Garzia via use-livecode 
>>  wrote:
>> 
>> William,
>> 
>> If I may add a bit of personal opinion here... so, I have been using and
>> storing LC stuff in databases for a long time. Not only I have been storing
>> arrays in database but I had them flying over TCP sockets and being
>> decoded/encoded as needed. For a long time I used the same approach as you,
>> which is to arrayEncode + base64 the array.
>> 
>> I don't do that any longer. That combination is very hard to debug. I would
>> advise you simply to use JSON and store it as JSON on the db. Instead of
>> encoding the array twice, you do it only once with jsonexport() and then
>> when importing, you do it only once with jsonimport()
>> 
>> Not only that reduces complexity but it also makes it a lot easier to
>> debug. As a bonus, your data can be consumed by other applications which
>> are not based on LC which may open a whole ecosystem of plugins and
>> interoperation to your product.
>> 
>> Cheers
>> andre
>> 
>> 
>> On Sun, May 21, 2017 at 9:45 PM, William Prothero via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Never mind. I got it working. I’m not exactly sure about the problem
>>> because the method I used should have been quite general. However, what
>>> made it work is that I had the contents of a list field in the array I was
>>> storing and that somehow caused an error when I tried to decode the array.
>>> I deleted that array key, because there was no reason I needed to have it
>>> in the db anyway, and it worked.
>>> 
>>> I’ll look into why and report back if I find anything interesting.
>>> Best,
>>> Bill
>>> 
 On May 21, 2017, at 5:23 PM, William Prothero via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
 
 Whoops, I lied.
 The data is stored incorrectly in the simulator too.
 Hmm….
 The IDE stores it correctly. There is something in the encoding that I’m
>>> missing.
 Bill
 
> On May 21, 2017, at 5:03 PM, William Prothero via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
> 
> Folks:
> I have an app that stores data to a mysql database on my server. It
>>> works fine in the IDE and in the iPhone simulator. However, when I load the
>>> app onto the iPhone, the saved data is corrupted.
> 
> I am saving an array. The array is saved in a big string that has been
>>> base64 encoded.
> 
> When saving, I do:
> 
> put arrayEncode(tArray) into tData
> 
> put base64encode(tData) into xData
> 
> put urlEncode(xData) into xData
> 
> xData is sent to the db
> 
> When I read back the data, I do the inverse:
> 
> urlDecode
> base64Decode
> arrayDecode
> 
> The base64 data on the db is different when I store it from the iPhone.
>>> I can see this with Navicat, which I use for db management. So, the problem
>>> is in the storing of the data.
> 
> What the heck? I am just using a post command to a php script that
>>> writes to the db.
> 
> Why would the iPhone data that is sent be different from that sent in
>>> the simulator?
> 
> Mac OSX 10.12.4, Livecode 8.1.4 (rc2) and XCode 8.3.
> 
> Any suggestions would be welcome.
> Thanks,
> Bill P.
> 
> William A. Prothero
> http://earthlearningsolution.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
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription 

Re: Can I copy a card from one stack to another?

2017-05-19 Thread Jonathan Lynch via use-livecode
Why not?

Copy card "mycard" of stack "stack1" to stack "stack2"

Copy button "button1" of card "mycard" of stack "stack2" to card "myothercard" 
of stack "stack1"


Sent from my iPhone

> On May 19, 2017, at 8:45 PM, William Prothero via use-livecode 
>  wrote:
> 
> Folks,
> I inadvertently deleted a group from all my cards and then did new work I 
> don’t want to lose on a  card. Can I copy this card to another stack with a 
> different name, then copy objects from that stack back to my original stack? 
> This seems very iffy.
> 
> Possible?
> Bill
> 
> 
> William A. Prothero
> http://earthlearningsolution.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

Re: which port is beeing used with get URL?

2017-05-19 Thread Jonathan Lynch via use-livecode
Do tsnet commands hit the same network blocks as put? 

Sent from my iPhone

> On May 19, 2017, at 5:05 AM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Hi Timo,
> 
> a firewall setting also might cause this. Many security tools have a app 
> control included which controls the network access of applications. It could 
> be that the LC app is not allowed to do any networking.  Can you check with 
> the  customer which Antivirus/Firewall software is used?
> 
> Matthias
> 
> 
> Matthias Rebbe
> +49 5741 31
> matthiasrebbe.eu 
> 
>> Am 19.05.2017 um 10:40 schrieb Tiemo Hollmann TB via use-livecode 
>> >:
>> 
>> Hello,
>> 
>> LC6 and 8. Again and again I have customers, where my program doesn't gets
>> an internet connection with standard "put URL foo into res". This happens
>> only at "institutional customers" with "bigger" networks, obviously with
>> proxy servers, firewalls, etc. On "private" PCs I never happen this. The
>> user can setup the proxy credentials in my program, that is ok for some
>> customers. At other customers my program still doesn't gets access to the
>> internet and often the admin of the customer doesn't find the reason what is
>> blocking my program. Usually most firewalls pop up with a request, if they
>> are blocking a new program, but in these cases the firewalls keep silent, so
>> it is hard to find the reason.
>> 
>> 
>> 
>> Am I right, that using "put URL" is a standard http:// protocol via port
>> 8080? Or is there a special port being used by LC?
>> 
>> 
>> 
>> Are there any ideas from your experience, what and how to check for to find
>> the blocking factor in a customer network?
>> 
>> 
>> 
>> Thanks for your experiences
>> 
>> Tiemo
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: Snaptshot of Browser Widget in iOS?

2017-05-18 Thread Jonathan Lynch via use-livecode
There are some JavaScript libraries that can convert an HTML page into an image 
(not just a canvas object) - that could be your backup if all else fails.

Sent from my iPhone

> On May 18, 2017, at 6:26 PM, JOHN PATTEN via use-livecode 
>  wrote:
> 
> Hi All!
> 
> I am trying to lay some objects (text fields, graphics, etc.) over a browser 
> widget. I am essentially just taking a screen capture and then layering the 
> objects on top of the image. Here is my script:
> 
> on mouseUp
> lock screen
> put the rect of current stack into tCoord
> 
> set the width of image 1 to the width of current stack
> set the height of image 1 to the height of current stack
> set the topleft of image 1 to 0,0
> export snapshot from rect tCoord to file specialFolderPath("documents") & 
> "File1.png"
> set the visible of widget "browser" to false
> set the filename of image id 1008 to ""
> wait 2
> set the filename of image id 1008 to SpecialFolderPath("documents") & 
> "File1.png"
> -- I believe i needed the three previous lines to get this to work for some 
> reason???
> show image id 1008 with visual effect dissolve slowly
> unlock screen
> 
> end mouseUp
> 
> 
> This works fine on my Mac, but when I test it in the iOS simulator it does 
> not work. Is it not possible to take a snapshot of the browser widget in iOS?
> 
> 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

___
use-livecode mailing list
use-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: Incorporating ImageMagick into an LC program?

2017-05-16 Thread Jonathan Lynch via use-livecode
I don't know.

I was just wondering about interfacing through an LCB library or widget. That 
way, the LC folks would not have to be involved. 

If you don't mind a 2 second delay, the command line option works fine, but I 
think it should be faster.

I have all the tools I need now, to get Augmented Earth to market, so I am not 
too worried about. Still, it would be cool.


Sent from my iPhone

> On May 16, 2017, at 8:14 PM, hh via use-livecode 
>  wrote:
> 
> Dictionary: open process
> 
> There is also a MagickWand C-API
> ( https://www.imagemagick.org/script/magick-wand.php ).
> But who should do that incorporation into the engine?
> 
> ___
> use-livecode mailing list
> use-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


Incorporating ImageMagick into an LC program?

2017-05-16 Thread Jonathan Lynch via use-livecode
I once made an app that used command line calls to ImageMagick. That worked 
fine, but with a slight delay.

Would it be difficult to create an lcb script that directly interfaces with 
ImageMagick?

As long as you give them credit, their license would allow it.
https://www.imagemagick.org/script/license.php

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


Re: Writing Extensions

2017-05-16 Thread Jonathan Lynch via use-livecode
I also am curious about this.

Sent from my iPhone

> On May 16, 2017, at 4:03 PM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> Hi Mark,
> 
> Did you choose this task to measure how fast
> is LiveCode Builder?
> 
> I want to know the answer too.
> How fast is LCB working with imagedata?
> How fast is LCB working with transform matrices?
> 
> Al
> 
> On Tue, May 16, 2017 at 4:48 PM, Mark Wieder via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> 
>> Having spent a bit of the day experimenting with LCB, I have this to say:
>> 
>> the documentation is atrocious
>> 
>> ...also, the only thing I have to say about error reporting in the
>> Extension Builder is that it lets you know there's an error. There's a
>> caret displayed under the error line that misleadingly appears to point to
>> the problem, when actually it's just pointing to the middle of the line.
>> And "Syntax error" isn't a very rewarding message.
>> 
>> It took me three hours today to figure out how to convert a hex number
>> into decimal format.
> ___
> use-livecode mailing list
> use-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: WannaCry [OT]

2017-05-16 Thread Jonathan Lynch via use-livecode
Right before it absorbs us into the machine overlord.

Sent from my iPhone

> On May 16, 2017, at 10:45 AM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> Mark Waddingan wrote:
>> the fact that there are probably not just billions
>> but trillions of lines of C/C++ code in the world
>> means that things are probably not going to change
>> much soon - the cost to rewrite all of that in a language
>> such as Rust would probably be larger than the entire
>> economic output of the entire world.
> 
> That is exactly the kind of work that
> Artificial Intelligence could do without
> breaking the bank! :-)
> 
> 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

___
use-livecode mailing list
use-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: Transparent browser widgets?

2017-05-15 Thread Jonathan Lynch via use-livecode
Thank you for this, Mark.

I realize how many improvement requests the LC staff has to handle, so I do 
understand why we cannot all have our way whenever we make a request.

Sent from my iPhone

> On May 15, 2017, at 8:12 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> I've added:
> 
> http://quality.livecode.com/show_bug.cgi?id=19697
> 
> As an enhancement request for an 'opaque' property - at least on
> Mac, Android and iOS.
> 
> There is also this:
> 
> http://quality.livecode.com/show_bug.cgi?id=17613
> 
> Which, again, should be feasible on Mac, Android and iOS.
> 
> 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

___
use-livecode mailing list
use-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: Transparent browser widgets?

2017-05-15 Thread Jonathan Lynch via use-livecode
Hi Mark,

Would you guys consider looking into this further? It would give developers so 
many presentation options.

Sent from my iPhone

> On May 15, 2017, at 7:19 AM, Mark Waddingham via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
>> On 2017-05-13 19:35, Jonathan Lynch via use-livecode wrote:
>> Apparently, both WebView (android) and uiwebview (iOS) have transparent 
>> modes.
>> Would it be easy for the LC team to implement a transparent mode for
>> browser widgets, where the background color is transparent, allowing
>> other objects to show through?
>> This would obviate the need for some the processor intensive image
>> transfers in and out of the widget.
>> I know one would have to set the background-color of the body element
>> to transparent and set a couple of settings in the WebView calls. Is
>> that all it would take?
> 
> The browser widget uses a system 'view' (UIView on Mac, View on Android,
> HWND on Windows, NSView on Mac and X11 Window on Linux) to host the browser
> control - thus whether or not they can be composited with a transparent
> background depends on the system.
> 
> For Mac, Android and iOS it is probably possible by just toggling a flag
> to say whether the view is opaque or not (although I've not looked into
> it).
> 
> For Windows, Linux things are more tricky - as it requires that child
> windows composite into the parent window. The 'traditional' model on those
> platforms is that child windows are islands-on-their-own. That being said,
> CEF does have a windowless mode in more recent versions which might be
> usable to get a similar effect. However, I'm not sure what would be involved
> in providing that as a choice.
> 
> 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

___
use-livecode mailing list
use-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: Transparent browser widgets?

2017-05-13 Thread Jonathan Lynch via use-livecode
I used to have an occasional bug in 8.1.3 where the browser widget would get a 
transparent background.

I had to restart the ide when that happened.

So, I think it may be possible.

Sent from my iPhone

> On May 13, 2017, at 7:15 PM, hh via use-livecode 
>  wrote:
> 
> I'll bet that a transparent background for the browser widget is
> impossible to have. This would require that webkit or Chromium
> (or whatever LC uses for the browser widget) allow a transparent
> background.
> 
> What will be probably possible is setting the blendLevel of the
> widget (as a whole), see Mark's note here:
> http://quality.livecode.com/show_bug.cgi?id=19667 
> 
> 
> ___
> use-livecode mailing list
> use-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: SVG widget?

2017-05-13 Thread Jonathan Lynch via use-livecode
I wish they would just buy an svg library and create a real svg object. This 
seems like such an obvious thing to do.

Sent from my iPhone

> On May 13, 2017, at 4:00 PM, Richmond via use-livecode 
>  wrote:
> 
> Well . . . .
> 
> here [ https://livecode.com/resources/roadmap/ ] all that is mentioned is a
> 
> "SVG vector shape widget"
> 
> Which is what we've got :/
> 
> Obviously full, multi-path SVG import is not
> being considered.
> 
> Richmond.
> 
>> On 13.05.2017 21:16, Alejandro Tejada via use-livecode wrote:
>> What happened to the multiple color SVG widget?
>> http://forums.livecode.com/viewtopic.php?f=93=27811=147279#p147286
>> 
>> Al
>> 
>> Scott Rossi wrote:
>> 
>>> Maybe it’s more accurate to say “one single path definition”
>>> because you aren’t limited to a single vector path.
>>> You can create compound graphics from multiple paths
>>> as is done in many icons and graphics.
>>> For example:
>>> go url "http://tactilemedia.com/download/svg_sample.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

Transparent browser widgets?

2017-05-13 Thread Jonathan Lynch via use-livecode
Apparently, both WebView (android) and uiwebview (iOS) have transparent modes.

Would it be easy for the LC team to implement a transparent mode for browser 
widgets, where the background color is transparent, allowing other objects to 
show through?

This would obviate the need for some the processor intensive image transfers in 
and out of the widget.

I know one would have to set the background-color of the body element to 
transparent and set a couple of settings in the WebView calls. Is that all it 
would take?

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


Re: SVG powered images

2017-05-13 Thread Jonathan Lynch via use-livecode
I feel like HH has an important point - this method uses a lot of processor 
power. We should minimize the burden on the processor (small animation, 
efficient JavaScript) and make sure our target users will consistently have the 
processing power to handle this kind of animation.


Sent from my iPhone

> On May 13, 2017, at 8:22 AM, hh via use-livecode 
>  wrote:
> 
> @Klaus
> I tested the svg-to-png conversion using both revBrowser and browser widget on
> Mac 10.12.4. This works. It doesn't work on Mac 10.10. (probably also Mac 
> 10.11).
> This is caused by webkit which LC uses on Mac.
> Where it runs, taking frames from an svg animation or from a video is 
> "stuttering"
> because the svg or video already takes most of the graphic card's power.
> 
> @Alejandro
> This SVG animation is a fine demo to show that pure LC script can be much 
> better
> than SVG animation. Adjust there with a menu the speed to your machine (you 
> can
> also change color and sizes of the gears while the animation is running). 
> 
> http://forums.livecode.com/viewtopic.php?p=137068#p137068
> ___
> use-livecode mailing list
> use-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: SVG powered images

2017-05-13 Thread Jonathan Lynch via use-livecode
For svg animation, it seems like it would be more efficient to let the 
animation play in the widget and just periodically export a frame, rather than 
rewrite the svg every time.



Sent from my iPhone

> On May 13, 2017, at 6:50 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Addition, the animated SVG is not displayed in any browser widget at all!?
> 
> 
> 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


Re: SVG powered images

2017-05-12 Thread Jonathan Lynch via use-livecode
Hi Hermann - I just got this message - I arrived at the same onload conclusion.

I get it now, but the way the JavaScript had to be ordered seemed 
counterintuitive at first.

Thanks for your help on this :)

Sent from my iPhone

On May 12, 2017, at 5:24 AM, hh via use-livecode 
 wrote:

>> Jonathan L. wrote:
>> However, delaying the command to send for the image does not work
>> for the first resizing of the image in this scenario.
> 
> It works. I have it running here with the browser widget. I finally
> got it using an "onload" for the image and for the window.
> 
> ...
> image1.onload = function() {
>   ctx.drawImage(image1,0,0,twidth,theight);
> }
> ...
> window.onload=processsvg(twidth,theight,tID);
> 
> After that sending toDataURL() to the canvas delayed by 1 tick has here
> no misfunction.
> 
> I wrote it also for a revBrowserInstance what can be used in LC 6/7/8/9 
> but on Mac only, because linux has no revBroser working and windows only
> one that doesn't support Canvas2d. This is essentially the same technique
> (but doesn't use a javascriptHandler).
> 
> I put this LC 6/7/8/9 version on livecodeshare/"sample stacks" so that
> your browser widget version is still unique ...
> 
> I have also a fast method, runs with 30 fps, for taking PNG-frames from a
> video, so that converting an SVG animation to PNGs is no problem (though
> I can't see any sense in doing that).
> 
> ___
> use-livecode mailing list
> use-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: SVG powered images

2017-05-12 Thread Jonathan Lynch via use-livecode
How does it look?

Sent from my iPhone

> On May 11, 2017, at 10:15 PM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> This mousedown script shows a rough preview
> of the SVG animation if you put it into the image:
> 
> on mousedown
> put the id of me into tID
>   repeat while the mouse is down
>   send "processSVG tID" to widget "SVGBrowser1"
>   end repeat
> end mousedown
> 
> 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

___
use-livecode mailing list
use-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: SVG powered images

2017-05-12 Thread Jonathan Lynch via use-livecode
Hey guys - I figured out a solution for that bug I had previously written a 
hack for. I use the image.onload handler in the JavaScript for this. It works 
consistently now. I just had to get my order of events correct in the 
JavaScript.

So please check out the new version.

J

Sent from my iPhone

> On May 11, 2017, at 10:15 PM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> This mousedown script shows a rough preview
> of the SVG animation if you put it into the image:
> 
> on mousedown
> put the id of me into tID
>   repeat while the mouse is down
>   send "processSVG tID" to widget "SVGBrowser1"
>   end repeat
> end mousedown
> 
> 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

___
use-livecode mailing list
use-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: SVG powered images

2017-05-11 Thread Jonathan Lynch via use-livecode
To do an animation it would need a continuous but interruptible callback loop - 
with delayed sending for the next iteration after the previous iteration has 
finished.

I think it is doable.

Sent from my iPhone

> On May 11, 2017, at 9:31 PM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> Hi Hermann,
> 
> I tried to apply your script, but just get an error.
> Surely, it's because I do follow correctly
> your instructions:
> 
>> You could try to leave out the "liveCode.JStoLC" from the html.
>> Instead send the conversion 'delayed", 1 tick should be enough:
> local svgb="SVGBrowser1"
> send "processSVG tID" to widget svgb
> put "var dd=document.getElementById('canvas1');" & \
> "liveCode.JStoLC(dd.toDataURL(),tID)") into js
> send "do js in widget svgb" to me in 1 tick
> 
> By the way, open and resize an animated SVG like this:
> https://openclipart.org/download/188969/WalkingMan.svg
> 
> Notice how it changes to different animation frames
> each time that you resize the image. :D
> 
> 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

___
use-livecode mailing list
use-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: SVG powered images

2017-05-11 Thread Jonathan Lynch via use-livecode
I tried splitting up the chain like this. Even sending in 10 milliseconds did 
not work. The best test is to close LiveCode then open it back up and run the 
stack. If resizing one of the images works the first time, then it is good. 

However, delaying the command to send for the image does not work for the first 
resizing of the image in this scenario.

The way it is posted right now seems to work fine. I am going to leave it that 
way for now, while I try to find a way to detect when the canvas is fully 
rendered in JavaScript.

Sent from my iPhone

> On May 11, 2017, at 7:24 PM, hh via use-livecode 
>  wrote:
> 
> You could try to leave out the "liveCode.JStoLC" from the html.
> Instead send the conversion 'delayed", 1 tick should be enough:
> 
> local svgb="SVGBrowser1"
> send "processSVG tID" to widget svgb
> put "var dd=document.getElementById('canvas1');" & \
> "liveCode.JStoLC(dd.toDataURL(),tID)") into js
> send "do js in widget svgb" to me in 1 tick
> 
> 
> ___
> use-livecode mailing list
> use-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: SVG powered images

2017-05-11 Thread Jonathan Lynch via use-livecode
Did some more research. Yup - the image renders in the canvas asynchronously. 
So, on first load it is exporting the canvas image before that image is 
rendered.

Going to see if I can add an event handler that is triggered when the canvas is 
finished.

Thanks for the tip :)

Sent from my iPhone

> On May 11, 2017, at 5:59 PM, jonathandly...@gmail.com wrote:
> 
> Ah
> 
> Yes - the svg data is cached.
> 
> That would explain why it must happen for every image.
> 
> Thanks Hermann.
> 
> I will tinker some more.
> 
> Sent from my iPhone
> 
> On May 11, 2017, at 5:52 PM, hh via use-livecode 
>  wrote:
> 
>>> JL wrote:
>>> If it were from that, then we could not switch back and forth
>>> between resizing different images. It would show the output of
>>> the previous image processed. But that does not happen.
>>> I thought I chained the commands linearly, but I will check
>>> that again.
>> 
>> I didn't say the second call shows the result from the _previous_ call,
>> I said it shows the result from the meanwhile finished _first_ call
>> (with that svg data, that is thereafter cached).
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: SVG powered images

2017-05-11 Thread Jonathan Lynch via use-livecode
Ah

Yes - the svg data is cached.

That would explain why it must happen for every image.

Thanks Hermann.

I will tinker some more.

Sent from my iPhone

On May 11, 2017, at 5:52 PM, hh via use-livecode 
 wrote:

>> JL wrote:
>> If it were from that, then we could not switch back and forth
>> between resizing different images. It would show the output of
>> the previous image processed. But that does not happen.
>> I thought I chained the commands linearly, but I will check
>> that again.
> 
> I didn't say the second call shows the result from the _previous_ call,
> I said it shows the result from the meanwhile finished _first_ call
> (with that svg data, that is thereafter cached).
> 
> 
> ___
> use-livecode mailing list
> use-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: SVG powered images

2017-05-11 Thread Jonathan Lynch via use-livecode
Thanks Hermann 

If it were from that, then we could not switch back and forth between resizing 
different images. It would show the output of the previous image processed. But 
that does not happen.

I thought I chained the commands linearly, but I will check that again.

Sent from my iPhone

> On May 11, 2017, at 5:25 PM, jonathandly...@gmail.com wrote:
> 
> Thanks Ajelandro,
> 
> I have thought a bit about how to show a browser animation through an image 
> object.
> 
> I think it can be done, but might use a lot of processing power.
> 
> Could be really cool with webgl animations.
> 
> Sent from my iPhone
> 
>> On May 11, 2017, at 4:32 PM, Alejandro Tejada via use-livecode 
>>  wrote:
>> 
>> Hi Jonathan,
>> 
>> This stack opens up a lot of new possibilities.
>> Many thanks again for sharing! :D
>> http://livecodeshare.runrev.com/stack/830/SVG-Powered-Images
>> 
>> If we modify SVG file on the custom property mysvgdata
>> Does images updates automatically?
>> 
>> How could we load an animated svg and play it,
>> frame by frame, using the png image?
>> For example, this Mechanical Gears animation:
>> https://openclipart.org/download/228417/gear-anim.svg
>> 
>> Thanks in advance for your answers and
>> Keep Up this Great Work! :D
>> 
>> 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

___
use-livecode mailing list
use-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: SVG powered images

2017-05-11 Thread Jonathan Lynch via use-livecode
Thanks Ajelandro,

I have thought a bit about how to show a browser animation through an image 
object.

I think it can be done, but might use a lot of processing power.

Could be really cool with webgl animations.

Sent from my iPhone

> On May 11, 2017, at 4:32 PM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> Hi Jonathan,
> 
> This stack opens up a lot of new possibilities.
> Many thanks again for sharing! :D
> http://livecodeshare.runrev.com/stack/830/SVG-Powered-Images
> 
> If we modify SVG file on the custom property mysvgdata
> Does images updates automatically?
> 
> How could we load an animated svg and play it,
> frame by frame, using the png image?
> For example, this Mechanical Gears animation:
> https://openclipart.org/download/228417/gear-anim.svg
> 
> Thanks in advance for your answers and
> Keep Up this Great Work! :D
> 
> 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

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


SVG powered images

2017-05-11 Thread Jonathan Lynch via use-livecode
Hi everyone,

I just uploaded version 1 of a stack called "SVG Powered Images" onto 
livecodeshare.

Just go to livecodeshare.runrev.com and sort for the newest upload. This stack 
makes it practical to use fully scalable SVG files in your stack.

It is not as good as having a full SVG object, but it is the next best thing. 
It does use the browser widget, which could be an issue for some situations.

Peace,

J

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


Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-11 Thread Jonathan Lynch via use-livecode
I agree - but I need fully scalable controls for Augmented Earth now, not 
later, and the current SVG objects are not complete.

My app uses the browser widget anyway, so not worried about the overhead.

Sent from my iPhone

> On May 11, 2017, at 10:49 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
> jonathandlynch wrote:
> 
> > I just did an experiment. It appears to be possible to have an image
> > object that stores svg data in a custom property. It connects to a
> > hidden browser widget to do the following:
> >
> > - squirt the svg data into an HTML canvas
> > - resize the svg image using the setscale() method
> > - export the resized image (with transparency) to a variable
> > - pass that variable back to LC
> > - set the image content of the image to that variable
> >
> > The entire operation took 4 milliseconds for a moderate sized svg
> > image.
> >
> > This means we could have svg-quality resizable images, for responsive
> > design scripts.
> 
> Clever workaround, but looking at the bigger picture of platform adoption, do 
> we really want to tell new users that to display SVGs you need to embed an 
> entire browser application inside your application?
> 
> What is the purpose of the existing SVG widget if not to render SVGs?
> 
> -- 
> 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


Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-11 Thread Jonathan Lynch via use-livecode
Hi Alejandro,

I am almost done. It has a weird bug where the widget only works after the 
first attempt for each image. It works great after that. I will get it, though.

Sent from my iPhone

> On May 10, 2017, at 11:09 PM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> Hi All,
> 
>> On May 10, 2017, Hermann wrote:
>> This is essentially already done by Alejandro with SVGtoPNG,
>> see the Forum/RichMedia.
> 
> Many Thanks for remember these stacks! :D
> They worked more as an experiment or a Proof-of-Concept.
> Jonathan's work in this area is the real deal.
> Immediately useful and easy to use.
> 
> Jonathan Lynch wrote:
>> Ah - sorry to reinvent the wheel. I already did it, though,
>> and it allows for live near-perfect resizing, so I will go ahead
>> and share it for that one aspect.
> 
> Great! Many thanks for sharing your work. :D
> I hope that you find tine to write a step by step
> tutorial about how to use many useful javascript libraries
> from Livecode. (like bzip2 Javascript libraries)
> Keep Up this great work!
> 
> 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

___
use-livecode mailing list
use-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 a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread Jonathan Lynch via use-livecode
Ah - sorry to reinvent the wheel. I already did it, though, and it allows for 
live near-perfect resizing, so I will go ahead and share it for that one aspect.

Sent from my iPhone

> On May 10, 2017, at 6:40 PM, hh via use-livecode 
>  wrote:
> 
> This is essentially already done by Alejandro with SVGtoPNG,
> see the Forum/RichMedia.
> 
> 
> ___
> use-livecode mailing list
> use-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


Using a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread Jonathan Lynch via use-livecode
I just did an experiment. It appears to be possible to have an image object 
that stores svg data in a custom property. It connects to a hidden browser 
widget to do the following:

- squirt the svg data into an HTML canvas
- resize the svg image using the setscale() method
- export the resized image (with transparency) to a variable
- pass that variable back to LC
- set the image content of the image to that variable

The entire operation took 4 milliseconds for a moderate sized svg image.

This means we could have svg-quality resizable images, for responsive design 
scripts.

I will try to create a browser widget with all of the necessary scripts in that 
one object, so you can import SVG files at will, display them in an 
auto-generated image, and painlessly resize the image at will.

To do that, one would have to include the browser widget in a hidden place on 
any stacks that use these pseudo SVG images.

Please let me know if you have any suggestions. I think I can get the stack up 
on livecodeshare in the next couple days.

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


Re: LC buttons look like poo in iOS, options?

2017-05-10 Thread Jonathan Lynch via use-livecode
I tried it - this helps, but still looks pretty rough.

I think I have an idea for how we can use SVG files pretty fluidly, though.

Sent from my iPhone

> On May 10, 2017, at 9:40 AM, jonathandly...@gmail.com wrote:
> 
> Thanks Colin, definitely going to try this.
> 
> The app resizes and repositions everything based on screen dimensions, so 
> changing the resolution won't present any problems.
> 
> Sent from my iPhone
> 
>> On May 10, 2017, at 9:34 AM, Colin Holgate via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Without that line the browser part will be using native code to use Retina, 
>> and the LiveCode part won’t be using Retina.
>> 
>> Not sure if it will make a difference on Android, there you just get more 
>> pixels. As there are so many different screen sizes, Google don’t do the 
>> automatic handling of doubling up the image that iOS does.
>> 
>> Now, whether it even fills the screen on either platform will depend on the 
>> scale modes you’re using.
>> 
>> 
>>> On May 10, 2017, at 8:43 AM, Jonathan Lynch via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> I do not - is the issue about insufficient resolution?
>>> 
>>> Buttons displayed through a browser don't look jagged, so I thought it was 
>>> more about how they are rendered.
>>> 
>>> I also want it to look good on Android, which does not have Retina display.
>>> 
>>> I will give it a try and report back.
>>> 
>>> Sent from my iPhone
>>> 
>>>> On May 10, 2017, at 7:59 AM, Colin Holgate via use-livecode 
>>>> <use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Do you have something on these lines?:
>>>> 
>>>> “on preopenstack
>>>> if the platform contains "iphone" then iphoneUseDeviceResolution true
>>>> end preopenstack”
>>>> 
>>>> 
>>>>> On May 10, 2017, at 7:38 AM, Jonathan Lynch via use-livecode 
>>>>> <use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> I just tested Augmented Earth on my iPhone. I was thrilled that webgl 
>>>>> works in the browser widget with the right standalone settings.
>>>>> 
>>>>> However, I was a bit distressed to see raggedy edges on round-radius 
>>>>> buttons.
>>>>> 
>>>>> What object should we use to have scalable buttons that look good on all 
>>>>> platforms?
>>>>> 
>>>>> 
>>>>> 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
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-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

<    1   2   3   4   >