Re: Audio in Background

2022-06-27 Thread Dan Friedman via use-livecode
Panos,

Just wanted you to know that adding “iphoneEnableRemoteControl” did the trick!  
 The app received the “remoteControlReceived” message and was able to act on 
that message even in the background.  Sweet!

Thank you!

Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com


From: panagiotis m 
Date: Monday, June 27, 2022 at 10:25 AM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: Audio in Background

Hello Dan

In fact this feature might be supported already.

If you have a look at the dictionary, there is the "iphoneEnableRemoteControl" 
command.

This is to enable remote control. Then, you can use "setRemoteControlDisplay" 
to update the metadata and such.

Then, you get "remoteControlReceived" events when the buttons in the remote 
control are pressed.

(remote control is the thingy in the Control Center)

Note that this code has not been tested recently. I'll have a play tomorrow and 
see if it still works.

Kind regards,
Panos

On Mon, 27 Jun 2022 at 19:25, Dan Friedman 
mailto:d...@clearvisiontech.com>> wrote:
Panos,

Thank you...  That fixed it!  The audio continues when the app is sent to the 
background.   However, the application's audio does not appear in the Control 
Center:

https://www.imore.com/sites/imore.com/files/styles/xlarge/public/field/image/2017/10/ios-11-control-center-view-now-playing-screens-01.jpeg

Is this possible?


-Dan


On 6/27/22, 8:49 AM, "use-livecode on behalf of panagiotis m via use-livecode" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of 
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Hello Dan,

On iOS, I think you have to add this line in your openStack handler (or
elsewhere):

iphoneSetAudioCategory "playback"

    Kind regards,
    Panos
    --

On Mon, 27 Jun 2022 at 18:29, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

> Happy Monday!   I am using the native player control (on both iOS and
> Android).  It's working quite well!   The only problem I have is that the
> background audio doesn't seem to honor this control.  If I play audio in a
> native browser, it works.   Is there something I need to set or do to get
> it to work?   I have "Android Background Audio" selected in application
> settings and "Background Audio" checked in the "Requirements" panel.
>
> Thanks in advance!
> -Dan
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Audio in Background

2022-06-27 Thread Dan Friedman via use-livecode
Panos,

Thank you...  That fixed it!  The audio continues when the app is sent to the 
background.   However, the application's audio does not appear in the Control 
Center:

https://www.imore.com/sites/imore.com/files/styles/xlarge/public/field/image/2017/10/ios-11-control-center-view-now-playing-screens-01.jpeg

Is this possible?


-Dan
 

On 6/27/22, 8:49 AM, "use-livecode on behalf of panagiotis m via use-livecode" 
 wrote:

Hello Dan,

On iOS, I think you have to add this line in your openStack handler (or
elsewhere):

iphoneSetAudioCategory "playback"

Kind regards,
Panos
--

On Mon, 27 Jun 2022 at 18:29, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Happy Monday!   I am using the native player control (on both iOS and
> Android).  It's working quite well!   The only problem I have is that the
> background audio doesn't seem to honor this control.  If I play audio in a
> native browser, it works.   Is there something I need to set or do to get
> it to work?   I have "Android Background Audio" selected in application
> settings and "Background Audio" checked in the "Requirements" panel.
>
> Thanks in advance!
> -Dan
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-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


Audio in Background

2022-06-27 Thread Dan Friedman via use-livecode
Happy Monday!   I am using the native player control (on both iOS and Android). 
 It's working quite well!   The only problem I have is that the background 
audio doesn't seem to honor this control.  If I play audio in a native browser, 
it works.   Is there something I need to set or do to get it to work?   I have 
"Android Background Audio" selected in application settings and "Background 
Audio" checked in the "Requirements" panel.

Thanks in advance!
-Dan

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


Re: Audio Control on Mobile?

2022-05-15 Thread Dan Friedman via use-livecode
Alan,

Thank you for the info.  I know of the mobileSound items... but, it doesn't 
have all the commands we need.  For example, there is no method to start (or 
change) the sounds play position, or poll the sound for the current position.

My client wants to make a music playing app.  Need to replicate a music 
player... so, we need to keep our [custom] transport in sync with the sound.  
Stop, Start, Pause, Scrub, update current time and time remaining, etc.  EASY 
on desktop, can't seem to do this on mobile with LiveCode.

-Dan
 

On 5/15/22, 5:12 AM, "Alan Stenhouse"  wrote:

Hi Dan,

Check out mobilePlaySoundOnChannel in the dictionary and the related 
commands linked to it.

Don't think there's a player command for mobile, though I may have missed 
it...!

HTH

cheers,

Alan 

> On 15 May 2022, at 1:30 am, use-livecode-requ...@lists.runrev.com wrote:
> 
> Date: Fri, 13 May 2022 19:40:11 +
> From: Dan Friedman 
> To: How to use LiveCode 
> Subject: Audio Control on Mobile?
> Message-ID: <395fac0d-aca3-463e-ab3a-b932d222c...@clearvisiontech.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hello!   On desktop, there is the player object which is great!   
However, it doesn't work on Mobile.  Is there a way to deal with an audio file 
on mobile (Android and iOS)?   Here's what I need to do:
> 
> - Load an audio file from a server
> - Play the file
> - Pause file
> - Set the cursor (where to play from or jump to)
> - Know when the end of file is reached
> - length of audio file
> - current play position
> - file state (isPlaying or isPaused)
> 
> Thank you in advance!
> 
> -Dan


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


Audio Control on Mobile?

2022-05-13 Thread Dan Friedman via use-livecode
Hello!   On desktop, there is the player object which is great!   However, it 
doesn't work on Mobile.  Is there a way to deal with an audio file on mobile 
(Android and iOS)?   Here's what I need to do:

- Load an audio file from a server
- Play the file
- Pause file
- Set the cursor (where to play from or jump to)
- Know when the end of file is reached
- length of audio file
- current play position
- file state (isPlaying or isPaused)

Thank you in advance!

-Dan

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


Signing With Apple on iOS Woes

2022-03-28 Thread Dan Friedman via use-livecode
I am trying to user a browser widget to do a login with Apple.  When I load my 
page (that redirects to apple with the appropriate keys) on my desktop (in the 
IDE) it works perfect!   When I load the URL in the iOS Simulator, I get a 
browserDocumentLoadFailed message and the error is "navigation request 
cancelled" and then the page loads and seems to respond correctly.  However, on 
a actual iPhone, we get the browserDocumentLoadFailed with the error "The 
operation couldn't be completed. (NSUELErrorDomain error -999).

Anyone have any advice on this issue?

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


Emojis in Text

2022-03-18 Thread Dan Friedman via use-livecode
I can't be the first to bring this up, so sorry if this has been asked 
already...

Is there a current solution for Emojis in text?  On a mobile device, in a 
native field, a user enters a emoji (no method to stop them that I can find).  
I save that text somewhere like a database.  When I load it back (into a LC 
field for display), it appears as a question mark.   What up?   Anyone have 
knowledge on this topic?   Is there a useEmojis property I don't know about?

-Dan

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


Sign In with Apple and Google

2022-03-07 Thread Dan Friedman via use-livecode
Hey all... does anyone have a method to do user sign-ins with Apple and Google 
(on iOS AND Android)?  I know we could do it in a webpage, but wondered if 
there was a plug-in or better method to handle it.   Any advice on this?

Thanks in advance,
-Dan

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


Re: Into the future

2022-02-28 Thread Dan Friedman via use-livecode
" I think LC should have this facility built into the standalone builder "
Couldn't agree more!!   This should "just work" in LiveCode.

-Dan



On 2/28/22, 10:39 AM, "use-livecode on behalf of General 2018 via 
use-livecode"  wrote:

Just had the same pain.

mrSignNotarizeHelperV3 was great and sorted all the MacOS command line 
stuff with ease ( I think LC should have this facility built into the 
standalone builder)

The Apple side of things unfortunately are what they are.

Regards
Camm

> On 28 Feb 2022, at 18:20, Bob Sneidar via use-livecode 
 wrote:
> 
> I understand that perfectly. I am not blaming the LC people, but the net 
effect is what it is. I *would* like to see the option for NOT codesigning 
apps, so that the choice can be left up to us, but I suspect that with OS 11, 
the option to run non-codesigned apps has already been deprecated. 
> 
> Bob S
> 
> 
>> On Feb 28, 2022, at 09:51 , Paul Dupuis via use-livecode 
 wrote:
>> 
>> It isn't really a LiveCode ting. This is Apple placing these 
requirements on their developers no matter what language you write code in for 
the macOS.
>> 
>>> On 2/28/2022 12:43 PM, Bob Sneidar via use-livecode wrote:
>>> I guess the question now becomes, what is the last Livecode app that 
can create standalones without requiring these certificates? I may need to 
plant my flag there and go no further.
>>> 
>>> Bob S
>>> 
>>> 
 On Feb 28, 2022, at 09:36 , Bob Sneidar via use-livecode 
 wrote:
 
 It occurs to me that this may drive a lot of hobbyist Livecoders away, 
and discourage others from coming onboard. There ought to be some kind of 
disclaimer on the website, since it is a paid product only now. I'd be a bit 
miffed if I bought an application for developing new apps and didn't know that 
there would be more cash outlay required before it would work.
 
 Bob S
 
 
> On Feb 28, 2022, at 09:25 , Paul Dupuis via use-livecode 
 wrote:
> 
> No, you really have to go through all of that. The few helper stacks 
out there are just front ends (using the shell command to call command line 
utilities from xcode) that make it easier once you have everything set up.
> 
> Yes, it sucks.
> 
> 
> On 2/28/2022 12:18 PM, Bob Sneidar via use-livecode wrote:
>> Okay, so I am at the point that I cannot build apps without 
codesigning and notarizing. Livecode will throw an error now if I try and don't 
have these certificates installed. Great.
>> 
>> So I have been going through the tutorial, and I see I have to be an 
Apple Developer, which means I have to shell out yet another $100 per year. 
Fine, I did that, even though my app is for internal consumption only.
>> 
>> Now It appears that for me to get the certificates needed to create 
a Mac standalone, I need xCode! Okay, I go to download xCode, and it will not 
install because my MacOS is too old! 10.15.1 is apparently ancient! So I am at 
the point now where I am asking myself, is this really worth it? After all the 
back and forth on the list where people's certificates expire, or the version 
of xCode they are forced to use isn't compatible with one thing or another, is 
building Mac standalones really worth it?
>> 
>> So my question is, do I really have to go through all this just to 
create a Mac standalone from livecode? Or do these other utilities, 
mrSignNotarizeHelperV3 for example, eliminate the need for all of that?
>> 
>> Bob S
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-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 

Re: Loading a LONG list with images

2022-02-22 Thread Dan Friedman via use-livecode
Tom,

Ok... I finally figured out the setting of dgNumberOfRecords and adding a 
GetDataForLine command.  So, the data is now loading. And, I am doing the check 
in FillInData to see if the image is loaded or not.  If it's not, I call 
getAndCachePreview with in turn does the download of the image.  The question 
is, when the download is complete where and how are you sending the message to 
refresh the row now that we have the image?

Thank you!
Dan 


On 2/21/22, 3:51 PM, "use-livecode on behalf of Tom Glod via use-livecode" 
 wrote:

notice the use of send "" in 0 milliseconds...

This ensures that the rendering of the grid does not get held up by the
download.  so the download happens in the background.


On Mon, Feb 21, 2022 at 6:47 PM Tom Glod  wrote:

> This is how i did it .  I hope this helps.
>
> First to use the "numberofrecords" way of setting the datagrid data.
> This is key, that way you only ever trigger loading of visible rows.
>
> This is the code from my dg column.
>
> global PixabayResults
>
>
>   if PixabayResults["cache"]["DL:" & PixabayResults["data"][the
> dgindex of me]["previewURL"]] is empty then
>  send "GetImageTrigger " & the dgindex of me & comma & quote &
> PixabayResults["data"][the dgindex of me]["previewURL"] & quote & comma &
> random(25500) to card "Search Pixabay"
>  put image id 1410033 of card "Resources" into image 1 of me --
> 14110033 image id is the placeholder.
>  set the visible of image 1 of me to true
>  set the MyIndex of me to empty
>  //set the visible of group "Image Tools" of me to false
>   else
>  put PixabayResults["cache"]["DL:" & PixabayResults["data"][the
> dgindex of me]["previewURL"]] into image 1 of me
>  set the visible of image 1 of me to true
>  set the MyIndex of me to the dgIndex of me
>  delete global PixabayResults["downloaded"][the dgIndex of me] --
> delete the flag to update this row because its a visible row with newly
> downloaded file
>  //set the visible of group "Image Tools" of me to false
>   end if
>
>
> on GetImageTrigger ThisIndex,ThisURL,ThisRandom
>send "GetAndCachePreviewImage " & ThisIndex & comma & quote & ThisURL &
> quote & comma & random(25500) to card "Search Pixabay" in 0 milliseconds
> end GetImageTrigger
>
> on GetAndCachePreviewImage ThisIndex,ThisURL,ThisRandomNumber
>Task_Scheduler_Add "Download File To Variable","DL:" &
> ThisURL,ThisURL,"" -- this schedules TSNET request to download image then
> waits for the image to download
>
>wait until AppStarterStackTaskScheduler["finished"]["DL:" & ThisURL] is
> not empty with messages -- wait with messages until its finished
>
>if AppStarterStackTaskScheduler["finished"]["DL:" & ThisURL] is "error"
> then
>   throw "Thumbnail Download Failed:" & ThisURL
>else
>   put AppStarterStackTaskScheduler["data"]["DL:" & ThisURL]["data"]
> into PixabayResults["cache"]["DL:" & ThisURL]
>       put 1 into PixabayResults["downloaded"][ThisIndex]
>   delete variable AppStarterStackTaskScheduler["data"]["DL:" &
> ThisURL]["data"]
>end if
> end GetAndCachePreviewImage
>
>
>
>
>
>
>
>
>
>
> On Mon, Feb 21, 2022 at 6:20 PM Tom Glod  wrote:
>
>> Dan can you check this video and the pixabay search example?
>> https://youtu.be/jN2bQbhQ0L8?t=216
>> Is this what you have in mind?
>> These images are loaded as the row comes into view.
>>
>> On Mon, Feb 21, 2022 at 6:07 PM Dan Friedman via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>>> Richard,
>>>
>>> Probably not over a couple thousand.  The images are square -- they need
>>> to be resized to the DG template image size, but not scaled (H vs W).
>>>
>>> -Dan
>>>
>>>
>>> On 2/21/22, 12:14 PM, "use-livecode on behalf of Richard Gaskin

Re: Loading a LONG list with images

2022-02-22 Thread Dan Friedman via use-livecode
Mark,

>> i.e. make sure the datagrid is only creating rows on demand, rather than 
>> up front, and then requesting images and updating them when they arrive

How do you do that?  What property do I set, or method is used to only load the 
displayed rows?

Tom's code snippet is a WONDERFUL start and I get the concept, but there are a 
bunch of missing parts that I'm not sure how (or where) to code.   Also, I 
don't know if it really matters or not, but Tom sent the code from his dg 
column, I am using a form DG.

-Dan
 

On 2/22/22, 12:51 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2022-02-21 23:47, Tom Glod via use-livecode wrote:
> This is how i did it .  I hope this helps.
> 
> First to use the "numberofrecords" way of setting the datagrid data.
> This is key, that way you only ever trigger loading of visible rows.

So I've not got much to add to Tom's method

i.e. make sure the datagrid is only creating rows on demand, rather than 
up front, and then requesting images and updating them when they arrive

Beyond a suggestion to ensure the images which are being downloaded are 
already suitably sized/thumbnailed for display.

Decompressing images is a relatively expensive operation - decompressing 
and then downsizing them (thumbnailing) even more so.

So, if you control the webservice that is providing the images it would 
probably be worth making it so that the server can send you images at 
the size needed and do the thumbnailing on the server (caching the 
results alongside the original image on the server).

For maximum fidelity you want the width/height * the device pixel scale 
(which can vary from 1 to 3 these days).

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: Loading a LONG list with images

2022-02-21 Thread Dan Friedman via use-livecode
Tom,

Yes, assuming that is a DG in your video, that's just what I'm looking to do!   

-Dan


On 2/21/22, 3:22 PM, "use-livecode on behalf of Tom Glod via use-livecode" 
 wrote:

Dan can you check this video and the pixabay search example?
https://youtu.be/jN2bQbhQ0L8?t=216
Is this what you have in mind?
These images are loaded as the row comes into view.

On Mon, Feb 21, 2022 at 6:07 PM Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Richard,
>
> Probably not over a couple thousand.  The images are square -- they need
> to be resized to the DG template image size, but not scaled (H vs W).
>
> -Dan
>
>
> On 2/21/22, 12:14 PM, "use-livecode on behalf of Richard Gaskin via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
>
> How many images?
>
> I once made a solution for 3,000 images, but it may not scale well
> above
> 8,000 or so depending on memory and connection speed.
>
> --
>   Richard Gaskin
>   Fourth World Systems
>
>
>
>
> Dan Friedman wrote:
>
>  > Does anyone have any answers to the issue of loading a long list
> with
>  > images so that it loads images "as needed" like a webpage does.
>  >
>  > I have a DataGrid with several hundred rows.  Each row has a
> specific
>  > image that is to be displayed with that row (like a list of songs).
>  > The image is loaded from the web.   Is there a method to load the
>  > DataGrid and only load the images for the rows that are shown?
>  And,
>  > when you scroll the grid, the images for the newly shown rows are
> then
>  > loaded.  The loading need to happen somehow without halting the
>  > scrolling or making it stutter.
>  >
>  > I hope that makes sense!
>  > -Dan
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-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: Loading a LONG list with images

2022-02-21 Thread Dan Friedman via use-livecode
Richard,

Probably not over a couple thousand.  The images are square -- they need to be 
resized to the DG template image size, but not scaled (H vs W).

-Dan
 

On 2/21/22, 12:14 PM, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

How many images?

I once made a solution for 3,000 images, but it may not scale well above 
8,000 or so depending on memory and connection speed.

-- 
  Richard Gaskin
  Fourth World Systems




Dan Friedman wrote:

 > Does anyone have any answers to the issue of loading a long list with
 > images so that it loads images "as needed" like a webpage does.
 >
 > I have a DataGrid with several hundred rows.  Each row has a specific
 > image that is to be displayed with that row (like a list of songs).
 > The image is loaded from the web.   Is there a method to load the
 > DataGrid and only load the images for the rows that are shown?   And,
 > when you scroll the grid, the images for the newly shown rows are then
 > loaded.  The loading need to happen somehow without halting the
 > scrolling or making it stutter.
 >
 > I hope that makes sense!
 > -Dan



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

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


Loading a LONG list with images

2022-02-21 Thread Dan Friedman via use-livecode
Does anyone have any answers to the issue of loading a long list with images so 
that it loads images "as needed" like a webpage does.

I have a DataGrid with several hundred rows.  Each row has a specific image 
that is to be displayed with that row (like a list of songs).  The image is 
loaded from the web.   Is there a method to load the DataGrid and only load the 
images for the rows that are shown?   And, when you scroll the grid, the images 
for the newly shown rows are then loaded.  The loading need to happen somehow 
without halting the scrolling or making it stutter. 

I hope that makes sense!
-Dan

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


Re: browserDocumentLoadComplete

2022-02-16 Thread Dan Friedman via use-livecode
Panos,

Glad to hear this will get resolved in the next release.  I hope that the 
Android "pan" issue (https://quality.livecode.com/show_bug.cgi?id=23245) and 
others like it also get resolved.  These are quite critical to everyday life on 
mobile.

FYI... I found a work-around for the browserDocumentLoadComplete issue... I 
simply save the data to a local file and load the file as the URL.  Problem 
solved.

-Dan
 

On 2/16/22, 7:46 AM, "use-livecode on behalf of panagiotis m via use-livecode" 
 wrote:

Hello again :)

Correction: We do have a patch for this issue, but it needs refined to make
sure the new behavior is 'correct'/'better' than the current behavior, so
it might not make it into 10.0.0 DP-2.

But it is in our TODO list for LC 10.

Kind regards,
Panos
--

On Wed, 16 Feb 2022 at 17:36, panagiotis m  wrote:

> Hello all,
>
> Hopefully this will be fixed in the upcoming release of LC 10.0.0 DP-2
>
> (https://quality.livecode.com/show_bug.cgi?id=21599)
>
> Kind regards,
> Panos
> --
>
> On Wed, 16 Feb 2022 at 12:04, hakan--- via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Maybe you could do a js callback on document loaded
>>
>> 
>> window.onload = (event) =>
>>  {
>> livecode.jscallback('The page has fully loaded’);
>> );
>> 
>>
>> :-Håkan
>> > 15 feb. 2022 kl. 00:08 skrev Tom Glod via use-livecode <
>> use-livecode@lists.runrev.com>:
>> >
>> > Hi Dan, I reported that bug a couple months back, it was confirmed and
>> > accepted, so its on the list to be fixed.  I know there is work on the
>> > browser being done, so one would assume.
>> > You will find it will work sometimes, but mostly not.
>> > I don't think there is much we can do, I would love to learn of a
>> > workaround also, but I don't see how.
>> >
>> > On Mon, Feb 14, 2022 at 5:58 PM Dan Friedman via use-livecode <
>> > use-livecode@lists.runrev.com> wrote:
>> >
>> >> Greetings!  I am loading a browser widget by setting the htmlText of
>> the
>> >> widget to some html code.  This is working fine!   However, how can I
>> >> determine when the page is done loading?   The
>> browserDocumentLoadComplete
>> >> message isn't being sent?   Nor is browserNavigateComplete.   Any
>> ideas?
>> >>
>> >> -Dan
>> >>
>> >> ___
>> >> use-livecode mailing list
>> >> use-livecode@lists.runrev.com
>> >> Please visit this url to subscribe, unsubscribe and manage your
>> >> subscription preferences:
>> >> http://lists.runrev.com/mailman/listinfo/use-livecode
>> >>
>> > ___
>> > use-livecode mailing list
>> > use-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


browserDocumentLoadComplete

2022-02-14 Thread Dan Friedman via use-livecode
Greetings!  I am loading a browser widget by setting the htmlText of the widget 
to some html code.  This is working fine!   However, how can I determine when 
the page is done loading?   The browserDocumentLoadComplete message isn't being 
sent?   Nor is browserNavigateComplete.   Any ideas?

-Dan

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


Re: Video Chat?

2022-01-10 Thread Dan Friedman via use-livecode
Tom,

I just tried using whereby (via a php page we created) in LiveCode (the IDE) 
and its stuck on "Loading camera and audio...".   I've tried both the browser 
widget and the revBrowserOpen() method.  What versions of LC are you using?   
I'm on 9.6.5.  Do you have a sample stack that is working for you?

FWIW, the php page we made works perfectly is a browser on desktop and mobile.

-Dan
 

On 1/7/22, 9:15 AM, "use-livecode on behalf of Tom Glod via use-livecode" 
 wrote:

Yes, since recently, you can use webrtc chat inside the browser.  It picks
up the camera and mic.  I tested a couple of them and they seemed to work
fine.  whereby.com is a good one to try

On Fri, Jan 7, 2022 at 12:05 PM Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Does anyone know if it's possible to do a live Video Chat in a LC
> project/app?
>
> -Dan
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-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


Video Chat?

2022-01-07 Thread Dan Friedman via use-livecode
Does anyone know if it's possible to do a live Video Chat in a LC project/app?

-Dan

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


Re: LC 9.5.6, Android and JSONToArray

2021-12-06 Thread Dan Friedman via use-livecode
Panos,

Thank you for the reply.  Sorry about the typo... the versions are:

9.6.4 -- WORKING
9.6.5 -- NOT WORKING

And, yes.  I have "mergJSON" selected (as well as "JSON Library").

FYI... I only updated to 9.6.5 because Jacqueline mentioned bug 23245 might be 
resolved in 9.6.5.  
(http://lists.runrev.com/pipermail/use-livecode/2021-October/265900.html)


- Dan

 

On 12/6/21, 3:09 AM, "use-livecode on behalf of panagiotis m via use-livecode" 
 wrote:

Hello Dan,

Could you please confirm the working and non-working versions? There is no
9.5.6 or 9.5.4 version of LiveCode.

Also, to use JSONToArray() you have to include "mergJSON" in the
Inclusions, not  "JSON Library". The  "JSON Library" is needed for
"JSONImport" and "JSONExport" functions.

    Hope this helps.

Cheers,
Panos

On Mon, 6 Dec 2021 at 01:07, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I just built an app for Android in 9.5.6.  I am finding that JSONToArray()
> isn't working.   I built the same app in 9.5.4, and JSONToArray() works
> just fine.  (Yes, I have "JSON Library" selected in the Inclusions in the
> Standalone Application Settings).   Is this a bug or is JSONToArray() no
> longer supported in 9.5.6?
>
> Any advice or knowledge would be appreciated.
>
> -Dan
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-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


LC 9.5.6, Android and JSONToArray

2021-12-05 Thread Dan Friedman via use-livecode
I just built an app for Android in 9.5.6.  I am finding that JSONToArray() 
isn't working.   I built the same app in 9.5.4, and JSONToArray() works just 
fine.  (Yes, I have "JSON Library" selected in the Inclusions in the Standalone 
Application Settings).   Is this a bug or is JSONToArray() no longer supported 
in 9.5.6?

Any advice or knowledge would be appreciated.

-Dan

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


DataGrid Edit Mode and Fixed Control Height

2021-11-07 Thread Dan Friedman via use-livecode
So, using the edit mode of a data grid is great!   When enabled, I can drag the 
hamburger icon to reoder the rows... easy!   But, if I set the "fixed control 
height" of the data grid to false, the hamburger icon no longer appears!  Same 
with the select icon for each row.   I have messed with the properties and code 
and can't seem to figure out how to get the draggable icon to appear when 
"fixed control height" is false.   Anyone know the solution or is this a 
limitation of the data grid?

Thanks in advance,
-Dan

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


Count Up Timer?

2021-11-01 Thread Dan Friedman via use-livecode
Anyone ever done a count up timer?   For example, if we supply the seconds of 
1605553200, we want to display the number of years, months, days, hours, 
minutes and seconds since that time.   For example, "How long have you been 
alive?".   This needs to be precise – need to account for leap years, days in 
month, etc.

Save me!!   :)

-Dan

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


Re: Custom URLs

2021-09-02 Thread Dan Friedman via use-livecode
Sean,

Thank you!   But, these solutions require that the Custom URL is added to the 
app at deployment.  Not going to work for my client.   I was looking to get an 
understanding as to why these URLs need to be in the pList.  Not sure of the 
reasoning behind this... I need to be able to explain to client why I can't 
deliver their desired functionalty. 

Thank you!
-Dan


On 9/1/21, 2:34 PM, "use-livecode on behalf of Sean Cole (Pi) via 
use-livecode"  wrote:

Dan,
These will be useful to you:

https://stackoverflow.com/questions/21893447/facebook-sdk-app-not-registered-as-a-url-scheme
https://github.com/facebookarchive/react-native-fbsdk/issues/707

Pi

On Wed, 1 Sept 2021 at 18:38, David Bovill via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I don’t know Dan as its been a while since I looked into this - but it
> sounds like a typical security thing Apple insists on for the AppStore?
> They tend (when compared to Android), to lock that sort of thing down save
> for a few standard (internet) url schema.
>
> Schedule a call with me
    > On 1 Sep 2021, 18:05 +0100, Dan Friedman via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> > I need a little help here...
> >
> > I am creating a mobile app for a client that wants to simply launch
> another app. To do this, I am trying to use a custom url to launch an
> external app. For example:
> >
> > launch url "fb:"
> >
> > This works fine on Android, but on iOS, I get "no association" (yes,
> Facebook is installed). Then I read that you have to enter the Custom URLs
> you want to use in the "App URL Query Whitelist" area in the Application
> Builder. Is this true? Why does the app have to know at compile time what
> URLs are going to be opened? In my app's case, client can change and edit
> the list on a server, so the list of apps to launch are received by the 
our
> app at launch.
> >
> > "mailto:;, "http:", "music:" and "tel:" all work just fine on iOS
> without being included in the App URL Query Whitelist.
> >
> > Anyone have any insight to this process?
> >
> > Thanks in advance!
> > -Dan
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-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: Custom URLs

2021-09-02 Thread Dan Friedman via use-livecode
Keith,

Thanks for the assist... In some cases a http call will open the mobile app if 
it's installed.  For example, https://m.facebook.com will launch the mobile 
app.  However, now with further testing, I have a new problem.  On android, if 
the app isn't installed it's not returning "no association".  The result is 
empty.  Must be a bug!  I'm using LC Business 9.6.2

Thank you!
-Dan
 

On 9/1/21, 10:36 AM, "use-livecode on behalf of Keith Martin via use-livecode" 
 wrote:

Only one thought: the protocols that do work on iOS are general 
declarations that are routed to an app/service as the host OS thinks is 
appropriate. Less common ones and app-specific ones do have to be registered... 
in the app that wants to be able RECEIVE them. So if the FB app doesn’t have 
that set up already it seems it can’t be done.


https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app
 
<https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app>

Would it work well enough to use a regular https URL to the resource on 
Facebook? It would open in the user’s browser, but it may be enough.

k


> On 1 Sep 2021, at 18:04, Dan Friedman via use-livecode 
 wrote:
> 
> I need a little help here...
> 
> I am creating a mobile app for a client that wants to simply launch 
another app.  To do this, I am trying to use a custom url to launch an external 
app.  For example:
> 
> launch url "fb:"
> 
> This works fine on Android, but on iOS, I get "no association" (yes, 
Facebook is installed).  Then I read that you have to enter the Custom URLs you 
want to use in the "App URL Query Whitelist" area in the Application Builder.   
Is this true?   Why does the app have to know at compile time what URLs are 
going to be opened?  In my app's case, client can change and edit the list on a 
server, so the list of apps to launch are received by the our app at launch.
> 
> "mailto:;, "http:", "music:" and "tel:" all work just fine on iOS without 
being included in the App URL Query Whitelist.
> 
> Anyone have any insight to this process?
> 
> Thanks in advance!
> -Dan
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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


Custom URLs

2021-09-01 Thread Dan Friedman via use-livecode
I need a little help here...

I am creating a mobile app for a client that wants to simply launch another 
app.  To do this, I am trying to use a custom url to launch an external app.  
For example:

launch url "fb:"

This works fine on Android, but on iOS, I get "no association" (yes, Facebook 
is installed).  Then I read that you have to enter the Custom URLs you want to 
use in the "App URL Query Whitelist" area in the Application Builder.   Is this 
true?   Why does the app have to know at compile time what URLs are going to be 
opened?  In my app's case, client can change and edit the list on a server, so 
the list of apps to launch are received by the our app at launch.

"mailto:;, "http:", "music:" and "tel:" all work just fine on iOS without being 
included in the App URL Query Whitelist.

Anyone have any insight to this process?

Thanks in advance!
-Dan

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


Ask Command on Android

2021-07-01 Thread Dan Friedman via use-livecode
Greetings!   When I run the ask command on a iOS device, the dialog appears, 
the soft keyboard appears and you can begin typing.   However, on a Android 
device, the dialog appears but the keyboard doesn't not immediately open.   You 
have to tap into the text area of the ask dialog to open the keyboard so you 
can type.Is there a way to get the keyboard to appear immediately like it 
does on iOS?

Thanks in advance,
-Dan

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


Missing Private Key Woes

2021-06-16 Thread Dan Friedman via use-livecode
I am reaching out for some assistance while I have 1 hair left in my head!   
Can't build standalone for iOS in LC... get this message:  "There was an error 
while saving the standalone application - could not find a valid identity to 
use for the selected profile."

I look in XCode > Preferences > Accounts and I see the Signing certificate says 
"Missing Private Key".   Is this the issue?  Does anyone have any advice on 
this?

With much gratitude,
-Dan

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


What happened to mobilePickDate ??

2021-06-15 Thread Dan Friedman via use-livecode
Has anyone tried mobilePickDate in LC 9.6.2?   On both a phone and tablet, you 
don't get a picker!   It popups a dialog that contains the date (or time).  
Then you have to tap the date/time and then you get the most tiny date (or 
time) editor.  Is this the new Apple Guidline for picking a date/time??   Can't 
be!   This must be a bug.   And, on an iPhone, it's so far to the bottom of the 
screen, it's barely usable!Anyone have any insight on this?

-Dan

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


Re: iOS screen size

2021-05-21 Thread Dan Friedman via use-livecode
Panos,

Yup.  That's exactly what it was.   Thanks!

-Dan
 

On 5/21/21, 1:23 AM, "use-livecode on behalf of panagiotis merakos via 
use-livecode"  wrote:

Hello Dan,

Rough guess, are you including a custom plist? If so, then this plist was
probably created by an older LC version, before storyboard support was
added. If this is the case, the (old) plist expects some splash images,
which are not in the app bundle, thus you see the black bars.

Kind regards,
Panos
--

On Fri, 21 May 2021 at 11:16, Mark Smith via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Dan,
>
> did you try fullscreen set to “ShowAll”?
>
> Also,I set the background color of my splash to a color that matched the
> background of my splash screen image so now it “appears” to cover the full
> screen of all device sizes.
>
> Mark
>
    >
    > > On May 20, 2021, at 9:22 PM, Dan Friedman via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Stupid Question (I should know this!)...   Why in my iOS app not scaled
> to the device?   I am getting black bars at the top and bottom of the
> device.   I thought this once had to do with the splash screens, but
> changing the "Launch Image" doesn't seem to have any effect.  I don't
> recall having to set fullscreenmode, but that seems to have no effect
> either.
> >
> > LC 9.6.1
> > XCode 11.3.1
> >
> > -Dan
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-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


iOS screen size

2021-05-20 Thread Dan Friedman via use-livecode
Stupid Question (I should know this!)...   Why in my iOS app not scaled to the 
device?   I am getting black bars at the top and bottom of the device.   I 
thought this once had to do with the splash screens, but changing the "Launch 
Image" doesn't seem to have any effect.  I don't recall having to set 
fullscreenmode, but that seems to have no effect either.

LC 9.6.1
XCode 11.3.1

-Dan

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


LC and Websockets

2021-03-27 Thread Dan Friedman via use-livecode
Greetings!

I've been looking around the boards and whatnot and see there has been some 
discussion about implementing web sockets in LiveCode.  Has anyone come up with 
a library or a way to do this effectively for the Big 4 (Windows, Mac, iOS and 
Android)?

Thanks in advance,
Dan

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


Re: Printing BackgroundColor of text

2021-03-07 Thread Dan Friedman via use-livecode
Thanks Håkan...  I already reported it.

Get Outlook for iOS

From: ha...@exformedia.se 
Sent: Sunday, March 7, 2021 9:02:16 AM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: Printing BackgroundColor of text

Looks like a bug to me, and on top of that the HTML should be updated IMHO as 
the -tag is officially deprecated in HTML 5. But, that’s another story. 
When I try I get the same error! So, I guess it is a bug that should be 
reported-

:-Håkan
On 4 Mar 2021, 21:06 +0100, How to use LiveCode 
, wrote:

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


Printing BackgroundColor of text

2021-03-04 Thread Dan Friedman via use-livecode
I seem to be having an issue printing text with a backgroundColor.  Anyone else 
have this experience?  SIMPLE to reproduce:

Make a stack and put a field in it.  Set the htmlText of the field to this:

Color:  0233 Deep Marsh

Now, run this either in a button or in the multiline message box:

open printing to pdf (specialFolderPath("desktop") & "/test.pdf")
print card 1 of this stack
close printing

Everything prints except the color.

If you set the color of the text, the text does print in color:

Color:  0233 Deep Marsh

Fails in both LC 9.6.0 and 9.6.1


Any thoughts?   Is this a bug, or am I doing something wrong?

-Dan

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


clipboardData on Mobile?

2021-01-27 Thread Dan Friedman via use-livecode
Greetings!

Is there a way to set the clipboardData a mobile device?  (iOS and Android).

Client want's a "copy" button so they can paste the text outside of the app (in 
Notes, or a external document).


-Dan

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


Re: lock screen

2021-01-22 Thread Dan Friedman via use-livecode
Same here.   Anytime I want to lock the screen, I do this:

on lockTheScreen
  if not the lockScreen then
lock screen
  end if
end lockTheScreen

When needed, I use this:

on unLockTheScreen
  repeat until not lockScreen
unlock screen
  end repeat
end unLockTheScreen


That's my 2 cents.

-Dan


On 1/22/21, 7:38 AM, "use-livecode on behalf of Paul Dupuis via use-livecode" 
 wrote:

When I have a handler that needs to lock the screen I will often do the 
following

begins handler

put the lockScreen into tPreserveLockScreen
if not tPreserveLockScreen then lock screen
...
code
...
if not tPreserveLockScreen then unlock screen

end handler

Code in our main LC app is large enough that there are instances where 
the some code that calls the handler needs to lock the screen and other 
code that call it does not, but the handler always wants to hide changed 
until done.


On 1/22/2021 9:24 AM, Craig newman via use-livecode wrote:
> Something else you might want to to know, though it may only be academic.
>
> LockScreen commands are queued. So if you lock the screen twice, you have 
to explicitly unlock twice in order to clear the locked state.
>
> It does not matter what happens in the flow of code in terms of screen 
locking, whether other command or function calls are made. The queue rules 
throughout. All is reset at idle time.
>
> Craig
>
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
Behalf Of Brian Milby via use-livecode
> Sent: Friday, January 22, 2021 6:50 AM
> To: How to use LiveCode 
> Cc: Brian Milby 
> Subject: Re: lock screen
>
> I’m sure someone else can be more clear, but when the engine gets to an 
idle state then locks should be cleared.  In your example, it would probably 
clear at the end of that mouseUp handler, but aTest would completely run with 
the screen locked.
>
> Sent from my iPhone
>
>> On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
 wrote:
>>
>> Just looking for clarity with regard to lock screen.
>>
>> Is there only one state for the screen, either locked or not locked and 
when is that state changed.
>>
>> ---
>> on mouseUp
>>
>> lock screen
>>
>> aTest
>>
>> end mouseUp
>>
>> 
>> on aTest
>>
>> — is the screen still locked here
>>
>> end aTest
>>
>> 
>>
>> At what point is unlock screen called by livecode without me calling it 
directly.
>>
>> The docs say when all pending handlers have completed but what exactly 
is a pending handler.
>>
>>
>>
>> Thanks
>>
>> Terry
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-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


Anyone heard of "App Clips"?

2020-11-13 Thread Dan Friedman via use-livecode
I have a client asking for us to implement a "App Clip".  Anyone know if LC can 
deal with this?

https://developer.apple.com/app-clips/

-Dan

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


Re: Line length

2020-10-26 Thread Dan Friedman via use-livecode
Bob,

I do what you're talking about all the time.   Here's my setObjectHeightToText 
command that I use (pass it the long id of the field, and the minimum height 
you want):

on setObjectHeightToText lID,minH
  put the rect of lID into tRect
  put item 2 of tRect + the formattedHeight of lID into item 4 of tRect
  if minH > 1 then
if item 4 of tRect - item 2 of tRect < minH then
  put item 2 of tRect + minH into item 4 of tRect
end if
  end if
  set the rect of lID to tRect
end setObjectHeightToText

Hope that helps!

-Dan
 

On 10/26/20, 10:18 AM, "use-livecode on behalf of Bob Sneidar via 
use-livecode"  wrote:

I have a field on one of my apps whose width needs to change depending on 
content, but there is a minimum and a maximum width aspect, so that an empty 
field doesn’t appear like a weird tiny rectangle or stretch to overlap other 
objects. 

I use something like:

if the formattedWidth of field x < tMinWidth then set the width of field x 
to tMinWidth
else if the formattedWidth of field x > tMaxWidth then set the width of 
field x to tMaxWidth
else set the width of field x to the formattedWidth of field x

Bob S


> On Oct 24, 2020, at 3:35 AM, Klaus major-k via use-livecode 
 wrote:
> 
> Hi Richmond,
> 
>> Am 24.10.2020 um 12:17 schrieb Richmond via use-livecode 
:
>> 
>> Over in the Forums someone has asked a question about measuring the 
length of text lines.
>> Of course one can count characters, but in most alphabetic systems 
different characters have different lengths.
>> Is there a way to measure the length as in LENGTH of a line rather than 
count the number of characters it
>> contains?
> 
> ...
> put the formattedwidth of line 1 of fld 1
> ...
> 
>> Richmond.
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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: DG outcomes on desktop vs mobile

2020-10-23 Thread Dan Friedman via use-livecode
Phil,

One thing I have noticed is if you have a put command with no destination, 
mobile devices DO NOT LIKE THIS!!   It will halt script execution completely as 
if it were an error.   For example:

put myVar

This would normally put the contents of myVar into the message box.  But on a 
real phone, it's a disaster!   Maybe you have one of these put's somewhere that 
is halting executing and causing the DG not to be filled.   Just a thought.

-Dan



On 10/23/20, 10:25 AM, "use-livecode on behalf of Phil Davis via use-livecode" 
 wrote:

That's a good question. On desktop, the array variable is full of data. 
On the iPad it's apparently empty. I'll drill down further and see 
what's going on.

Thanks for the idea.
Phil


On 10/23/20 1:03 AM, JeeJeeStudio via use-livecode wrote:
> What do you see when you answer the data you set the dgdata to? Does it
> show the values?
>
> Op vr 23 okt. 2020 08:44 schreef Phil Davis via use-livecode <
> use-livecode@lists.runrev.com>:
>
>> I'm building an iPad app that reads a bunch of files into an array and
>> then sets the dgData of a form DG to that array. The array is
>> well-formed for DG use. After setting the dgData of the DG, the result
>> is empty. Only one problem: the DG now contains no data. (I also tried
>> setting the dgText of the DG to a flat version of the same data and got
>> the same outcome.)
>>
>> I can then create another array from custom property data and set the
>> dgData of the same form DG to that array and it works.
>>
>> On the desktop, however, the same DG loading process never fails.
>>
>> The data being loaded is all text - nothing esoteric.
>>
>> Does anyone have any ideas how I can find & fix the problem(s)? Or have
>> you run into this before?
>>
>> Thank you -
>> Phil Davis
>>
>> --
>> Phil Davis
>> 503-307-4363
>>
>>
>> ___
>> use-livecode mailing list
>> use-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
>

-- 
Phil Davis
503-307-4363


___
use-livecode mailing list
use-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: Odd data in message box

2020-10-18 Thread Dan Friedman via use-livecode
//@Dan: Do you have a custom errorDialog handler in your message path?

I do not.

-Dan

 

On 10/18/20, 9:44 AM, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

True, but what would anyone go out of their way to write an error 
handler that provides less useful information than what LC provides if 
left alone?

And some of the error info I see shared in the forums is from newer 
users, who seem unlikely to have ventured into the relatively arcane 
world of custom error processing.

I hope I simply misunderstand what I've been seeing, that perhaps there 
isn't something broken in recent versions of the IDE's error handling.

In Dan's message from yesterday he wrote:

   1. Why didn't the debugger throw an error?  Instead, it put this error
  chunk in the message box?

@Dan: Do you have a custom errorDialog handler in your message path?

-- 
  Richard Gaskin
  Fourth World Systems



J. Landman Gay wrote:
> If there's an errorDialog handler, errors bypass the IDE. That's one way 
it 
> could happen.
> 
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On October 17, 2020 4:06:03 PM Richard Gaskin via use-livecode 
>  wrote:
> 
>> J. Landman Gay wrote:
    >>> On 10/17/20 12:13 PM, Dan Friedman via use-livecode wrote:
>>>> Where did Jacque get that list of codes?
>>>
>>>  From a plugin Richard and I wrote some years ago. It dynamically loads 
the 
>>>  error list based on
>>> the version of LC you're using. You can look up individual codes, or 
paste 
>>> in a list of errors
>>> which is what I did with your report.
>>
>> Tools like that can be useful at runtime to help fill out logs and such.
>>
>> But I've been seeing a surprising number of conversations here and in
>> the forums suggesting that people are seeing raw error info in the IDE.
>>
>> If that's true, what broke with the IDE's more guided error handling?
>>
>> --
>>  Richard Gaskin


___
use-livecode mailing list
use-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: Odd data in message box

2020-10-17 Thread Dan Friedman via use-livecode
Mark and Jacque,

Thank you for your assistance.  There was invalid data in sTime.  
Interestingly, it wasn't from the data I was loading... it was old data coming 
from a reference to an array in a datagrid.  Setting the datagrid's Persistent 
Data to false resolved the problem.

A couple follow up questions:

1. Why didn't the debugger throw an error?  Instead, it put this error chunk in 
the message box?
2. Where did Jacque get that list of codes?   Is there some support docs I 
don't know about that explain these types of thing?

Again, thank you both for your help.  What would we do without this list, and 
the talented and helpful people on it?!

-Dan 


On 10/16/20, 12:36 PM, "use-livecode on behalf of Mark Wieder via 
use-livecode"  wrote:

On 10/16/20 9:57 AM, Dan Friedman wrote:
> Mark,
> 
> THANK YOU for the reply...   Line 2185 is:
> 
>   put sTime + ((timeOffset*60)*60) into sTime

That's what I thought. The error you're getting (see Jacque's annotated 
list) is pointing to an invalid value for sTime in some iteration of 
that function call. My guess is either sTime is empty or not a numeric 
value.

Try something like this to pinpoint the error:

   if char 1 of timeOffset = "-" then
 put ((timeOffset*60)*60) into pTimeOffset
 put sTime - pTimeOffset into sTime
   else
 try
 put sTime + ((timeOffset*60)*60) into sTime
 catch e
 put the sTime & cr executionContexts & cr after msg
 end try
   end if


-- 
  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: Odd data in message box

2020-10-16 Thread Dan Friedman via use-livecode
Mark,

THANK YOU for the reply...   Line 2185 is:

put sTime + ((timeOffset*60)*60) into sTime


function convertToLocalTime sTime  //sTime is already been converted to seconds 
format
  //convert the time using the hour offset for local time zone
  put word 6 of the internet date into timeOffset
  put (abs(timeOffset))*1 into timeOffset
  put timeOffset/100 into timeOffset
  if char 1 of timeOffset = "-" then
put ((timeOffset*60)*60) into pTimeOffset
put sTime - pTimeOffset into sTime
  else
put sTime + ((timeOffset*60)*60) into sTime   //<- 2185
  end if

  return sTime
end convertToLocalTime


Thank you!  
 
Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com
 

On 10/16/20, 9:49 AM, "use-livecode on behalf of Mark Wieder via use-livecode" 
 wrote:

    On 10/16/20 8:46 AM, Dan Friedman via use-livecode wrote:

> There is no problem with this function, and it's producing the correct 
time.   However, when it's all said and done, I get this in the message box:
> 
> 394,2185,1

what's line 2185 look like?

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


Odd data in message box

2020-10-16 Thread Dan Friedman via use-livecode
I get a bunch of data from my server.  In this array, there are some dates.  I 
roll through each one converting the date to local time:

function convertToLocalTime sTime  //sTime is already been converted to seconds 
format
  //convert the time using the hour offset for local time zone
  put word 6 of the internet date into timeOffset
  put (abs(timeOffset))*1 into timeOffset
  put timeOffset/100 into timeOffset
  if char 1 of timeOffset = "-" then
put ((timeOffset*60)*60) into pTimeOffset
put sTime - pTimeOffset into sTime
  else
put sTime + ((timeOffset*60)*60) into sTime
  end if
  
  return sTime
end convertToLocalTime

There is no problem with this function, and it's producing the correct time.   
However, when it's all said and done, I get this in the message box:

394,2185,1
465,2185,1
253,2185,1
241,2181,1,convertToLocalTime
353,0,0,stack "/Users/Dan1/Desktop/Ignite/MY App/App/main.livecode"
219,2130,9,convertToLocalTime
465,2130,9
253,2130,9
241,2129,1,convertKevinDate
353,0,0,stack "/Users/ Dan1/Desktop/Ignite/MY App/App/main.livecode"
219,38,41,convertKevinDate
119,38,41
118,38,41
118,38,41
465,38,41
241,38,1,FillInData
353,0,0,button id 1410 of card id 1406 of stack "Data Grid Templates 
1571787360744" of stack "/Users/Dan1/Desktop/Ignite/MY App/App/main.livecode"
675,3536,1,FillInData
253,3536,1
253,3536,1
490,3536,1
253,3536,1

Any thoughts? 

-Dan

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


backKey with DataGrid

2020-10-06 Thread Dan Friedman via use-livecode
Here's a weird one...   I have a card with a number of objects on it.  There is 
a button named "Back" which takes you back to card X.  There is also a 
dataGrid.  In the mainStack script, I have a this backKey command:

on backKey
  //this is sent only on Android when the user presses the hardware "back" key
  if there is a btn "Back" of this card then
send "mouseUp" to btn "Back" of this card in 1 tick
  end if
  
  exit to top
end backKey

When the card opens, and you tap the backKey (on an android device of course), 
it works great!   Now, if I scroll the dataGrid, the backKey message fails.  If 
I then tap any other control on the screen (not the dataGrid), then the backKey 
message works again.  This is true even if the dataGrid has no data (ie.:  set 
the dgData of grp "myDataGrid" to "").

I have verified that there is only 1 button named "Back" on the entire card 
(including the template for the dataGrid).

When I say the "backKey" message fails, what really happens is the statement  
"if there is a btn "Back" of this card" does result as true, but the sending of 
the "mouseUp" message isn't sent (or perhaps it's not received).  Also, if I 
just tap the "Back" button it does go back.

Any ideas?

-Dan

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


Re: Looping though a numerically indexed array

2020-09-10 Thread Dan Friedman via use-livecode
David,

Maybe there are better ways, but here's what I always do when I have an array 
with numbered keys...

put the keys of pArray into aKeys
sort lines of aKeys numeric
repeat for each line k in aKeys
   //do something with pArray[k]
end repeat

Hope that helps.   :)

-Dan
 

On 9/10/20, 2:39 PM, "use-livecode on behalf of David Bovill via use-livecode" 
 wrote:

Ah that explains it. The extents works but I seem to remember for each is 
considerably faster
On 2 Sep 2020, 16:29 +0100, Brian Milby via use-livecode 
, wrote:
> As long as the array is indexed starting at 1 with no gaps it should work 
by looping for each element. I just did a quick test to confirm. I built a 100 
element array and it looped in order. I deleted 2 keys and then it didn’t. I 
then added those 2 missing keys back and it worked again.
>
> Sent from my iPhone
>
> > On Sep 2, 2020, at 10:55 AM, David Bovill via use-livecode 
 wrote:
> >
> > I’m pretty sure there must be a way to efficiently loop through 
numerically indexed arrays
> >
> > Repeat for each key and repeat for each element does not seem to sort 
the keys in numeric order,. Of course I can get the keys and sort them before 
repeating - but is there a more efficient way?
> > ___
> > use-livecode mailing list
> > use-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: iOS app denied: AVAudioSession

2020-08-24 Thread Dan Friedman via use-livecode
Update...

Turns out, I was looking for the call for microphone consent in the wrong 
place.  I was looking at app launch, but it was appearing when using 
mergAVCamCreate.  So, I AM seeing the microphone consent even though I am not 
using the Microphone.   Here's what I'm doing:

on mouseUp  //a button on the card
mergAVAudioSessionSetCategory "ambient" //Added this, but still getting the 
microphone consent
mergAVRequestMediaAccess "video"
end mouseUp

on mergAVMediaAccess pType,pGranted
  if (pType = "video") and pGranted then
set the returnTo of stack "barcodeScanner-iOS" to the long id of me
open stack "barcodeScanner-iOS"
  end if
end mergAVMediaAccess

on preOpenStack  //stack "barcodeScanner-iOS"
  mergAVCamCreate
  mergAVCamSet "rect",the rect of btn "scannerRect"
  mergAVCamSet "visible",true
  mergAVCamStartBarcodeReader
end preOpenStack

Why would this bring up the microphone consent dialog?


Thank you!
-Dan
 

On 8/21/20, 8:53 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2020-08-21 16:39, Dan Friedman via use-livecode wrote:
> Any thoughts?   Client is waiting for this post!

The only difference between 9.6.1-rc-1 and rc-2 was the removal of some 
no-longer-used references to an Ad SDK on Android. 9.6.1 was the same as 
9.6.1-rc-2 (except for version).

Apple update their review processes all the time, so it is possible they 
changed something between the two app submissions.

The most important question here is: Can you reproduce the request for 
microphone access which Apple observed?

If not, then you need to find out how they did and dispute the rejection 
- it could be human error on their side...

If you can, then it suggests that you might have some code buried 
somewhere setting the audio category - or use of the video camera is 
using a default category Apple doesn't like.

Make sure you aren't asking for a video camera with both audio and video 
- i.e. just audio only.

Failing that, there is mergAVAudioSessionSetCategory - you could try 
explicitly setting the category to "ambient" on startup.

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: iOS app denied: AVAudioSession

2020-08-21 Thread Dan Friedman via use-livecode
Ralph,

I have no idea.  This is the screen shot that Apple included in the "Resolution 
Center" when they denied the app.   I assume they are using people in another 
country to review apps?

-Dan
 

On 8/21/20, 10:49 AM, "use-livecode on behalf of Ralph DiMola via 
use-livecode"  wrote:

Dan,

Why is there a foreign language in the left top bar header to the right of 
the time? I spent some time in Japan and this message suspiciously looks like 
katakana and kanji.

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 Dan Friedman via use-livecode
Sent: Friday, August 21, 2020 12:15 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: Re: iOS app denied: AVAudioSession

Mark,

THANK YOU for the quick reply.   I wasn't using 9.6.1-rc-1 and rc-2, I was 
using 9.6.1-rc-2 and the final release of 9.6.1.

>> Can you reproduce the request for microphone access which Apple observed?
I cannot.  I installed the submitted app (using TestFlight) on my iPhone X 
and I DID NOT get the Microphone request dialog.

Apple did provide a screen shot of the dialog they see, but it's strange... 
  Why is it in a different language?   And, could this have anything to do with 
the issue?
See it here:  https://www.clearvisiontech.com/temp/fromApple.png

What would you suggest I do next?


Thank you!

Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com


On 8/21/20, 8:53 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

    On 2020-08-21 16:39, Dan Friedman via use-livecode wrote:
> Any thoughts?   Client is waiting for this post!

The only difference between 9.6.1-rc-1 and rc-2 was the removal of some 
no-longer-used references to an Ad SDK on Android. 9.6.1 was the same 
as 
9.6.1-rc-2 (except for version).

Apple update their review processes all the time, so it is possible 
they 
changed something between the two app submissions.

The most important question here is: Can you reproduce the request for 
microphone access which Apple observed?

If not, then you need to find out how they did and dispute the 
rejection 
- it could be human error on their side...

If you can, then it suggests that you might have some code buried 
somewhere setting the audio category - or use of the video camera is 
using a default category Apple doesn't like.

Make sure you aren't asking for a video camera with both audio and 
video 
- i.e. just audio only.

Failing that, there is mergAVAudioSessionSetCategory - you could try 
explicitly setting the category to "ambient" on startup.

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


___
use-livecode mailing list
use-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: iOS app denied: AVAudioSession

2020-08-21 Thread Dan Friedman via use-livecode
Mark,

THANK YOU for the quick reply.   I wasn't using 9.6.1-rc-1 and rc-2, I was 
using 9.6.1-rc-2 and the final release of 9.6.1.

>> Can you reproduce the request for microphone access which Apple observed?
I cannot.  I installed the submitted app (using TestFlight) on my iPhone X and 
I DID NOT get the Microphone request dialog.

Apple did provide a screen shot of the dialog they see, but it's strange...   
Why is it in a different language?   And, could this have anything to do with 
the issue?
See it here:  https://www.clearvisiontech.com/temp/fromApple.png

What would you suggest I do next?


Thank you!
 
Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com
 

On 8/21/20, 8:53 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2020-08-21 16:39, Dan Friedman via use-livecode wrote:
> Any thoughts?   Client is waiting for this post!

The only difference between 9.6.1-rc-1 and rc-2 was the removal of some 
no-longer-used references to an Ad SDK on Android. 9.6.1 was the same as 
9.6.1-rc-2 (except for version).

Apple update their review processes all the time, so it is possible they 
changed something between the two app submissions.

The most important question here is: Can you reproduce the request for 
microphone access which Apple observed?

If not, then you need to find out how they did and dispute the rejection 
- it could be human error on their side...

If you can, then it suggests that you might have some code buried 
somewhere setting the audio category - or use of the video camera is 
using a default category Apple doesn't like.

Make sure you aren't asking for a video camera with both audio and video 
- i.e. just audio only.

Failing that, there is mergAVAudioSessionSetCategory - you could try 
explicitly setting the category to "ambient" on startup.

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


iOS app denied: AVAudioSession

2020-08-21 Thread Dan Friedman via use-livecode
I recently uploaded an iOS app to Apple with no problems.   After it was 
approved and released, my client wanted to change the app description in the 
app store.  As you know, you can only do this as a new version (stupid!).  So, 
I made a new build of the same exact app (without changing a line of code) and 
submitted it to Apple.   It was denied because:



Guideline 2.5.1 - Performance - Software Requirements

During review, we were prompted to provide consent to use the microphone. 
However, we were not able to locate any features in your app that use the 
microphone for audio recording.

Next Steps

The microphone consent request is generated by the use of either 
AVAudioSessionCategoryRecord or AVAudioSessionCategoryPlayAndRecord audio 
categories. If you do not intend to record audio with your app, please choose 
the AVAudioSession session category that fits your app's needs or modify your 
app to include audio-recording features.

If these features are located in your app, please reply to this message in 
Resolution Center to provide information on how to locate them.

Please see attached screenshot for details.



The app doesn't use the Microphone.  The ONLY difference I can see between this 
build and the previous is the first build was with LC Business 9.6.1 (rc 2), 
and this build is with LC Business 9.6.1.  I do have "mergAV" selected in 
Inclusions in the Standalone App Settings (I am using the camera to capture a 
barcode), but "mergMicrophone" is not selected.   Is there an new issue in LC 
Business 9.6.1 that is setting the AVAudioSession to something is shouldn't?   
Maybe I should just rebuild with LC Business 9.6.1 (rc 2) and submit?

Any thoughts?   Client is waiting for this post!

Thank you in advance,
-Dan

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


Calendar External?

2020-08-19 Thread Dan Friedman via use-livecode
Quick question  With Apple's eventKit, would it be possible to create an LC 
External to add an event to the device's calendar?

I have a client who wants their app to add an event to the phone's calendar 
(iOS and Android).   Importing a ICS file is an option, but the user doesn't 
have the ability to edit, remove or interact with the event once it's in the 
calendar.

Any thoughts?

-Dan

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


autoCapitalizationType in ask dialog

2020-08-17 Thread Dan Friedman via use-livecode
I know you can use mobileSetKeyboardType to set the keyboard, but is it 
possible to set the autoCapitalizationType for the ask command on mobile?  It 
seems to be defaulting to "none", when you would think a default would be 
"sentences".

-Dan

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


Add Event To Calendar?

2020-08-06 Thread Dan Friedman via use-livecode
I'm sure someone has tackled this task... Is there any way to add an event to a 
calendar on mobile (iOS and Android)? Looking for a mobileAddCalendarEvent 
command.  

Thanks in advance,
-Dan

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


Odd Files in an Android apk

2020-08-02 Thread Dan Friedman via use-livecode
Using LC version 9.6.1 (rc1), I built by Android app.   The app seemed a bit on 
the large side.  So, upon examining the files in the apk, I found this:


Volume in drive D has no label.
 Volume Serial Number is 7C03-D597

 Directory of D:\apktest\assets\tsNet.lcextd\iOS

08/02/2020  09:22 PM  .
08/02/2020  09:22 PM  ..
07/28/2020  02:45 AM 6,751,828 External-Device-10_2
07/28/2020  02:45 AM 6,751,828 External-Device-11_2
07/28/2020  02:45 AM 6,666,588 External-Device-12_1
07/28/2020  02:45 AM 6,666,588 External-Device-13_2
07/28/2020  02:46 AM 6,666,588 External-Device-13_5
07/29/2020  05:17 AM 4,769,472 External-Simulator-10_2
07/29/2020  05:17 AM 4,769,472 External-Simulator-11_2
07/29/2020  05:17 AM 4,533,360 External-Simulator-12_1
07/29/2020  05:17 AM 4,533,360 External-Simulator-13_2
07/29/2020  05:17 AM 4,533,360 External-Simulator-13_5
  11 File(s) 56,642,444 bytes
   2 Dir(s)  101,128,318,976 bytes free


Why would there be an iOS folder in the tsNet directory of an Android apk?

Also, I did not select the "Android x86" checkbox in the Application Setting, 
but the external for tsNet External-x86 was still included in the apk:


Volume in drive D has no label.
 Volume Serial Number is 7C03-D597

 Directory of D:\apktest\assets\tsNet.lcextd\Android

08/02/2020  09:29 PM  .
08/02/2020  09:29 PM  ..
07/28/2020  02:45 AM 5,145 Classes
07/28/2020  02:45 AM 2,867,456 External-arm64-v8a
07/28/2020  02:45 AM 2,223,820 External-armeabi
07/28/2020  02:45 AM 1,904,364 External-armeabi-v7a
07/28/2020  02:45 AM 2,653,944 External-x86
07/28/2020  02:45 AM 2,941,840 External-x86_64
   7 File(s) 12,596,569 bytes
   2 Dir(s)  101,128,314,880 bytes free


Perhaps this is a Bug or are all these files somehow required?   Any thoughts?

-Dan

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


Re: Styled text on mobile

2020-07-18 Thread Dan Friedman via use-livecode
Scriptable rich text in a native mobile text field?   I second that!

-Dan
 

On 7/18/20, 9:01 AM, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

J. Landman Gay wrote:

 > It's possible. For a LiveCode field, note that the font has to have
 > a font variant for each style. Some time ago LC stopped supporting
 > artificially altered font styles. The native system font on each
 > mobile OS supports all styles.
 >
 > Or do you mean something else?

I probably should have specified: I was hoping there might be at least 
something in the works to bring the scripted mobile-native editable 
field up to par with other apps that allow styles to be applied to text 
the user writes.

I would expect to build the UI to set style attributes as we do on the 
desktop, if it were possible.

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


returnKey and ask on iPhone

2020-07-14 Thread Dan Friedman via use-livecode
Question... Why doesn't the returnKey on my iPhone change to the "Next" option?

mobileSetKeyboardReturnKey "next"

ask "" with pLabel titled askTitle
if the result = "cancel" then
exit thisThing
end if
put it into tAskData

What am I doing wrong?

-Dan

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


iOS - open next field?

2020-06-30 Thread Dan Friedman via use-livecode
Is there a way you activate and utilize the "prev" and "next" button on iOS 
keyboards?   You know, these buttons:

https://i.stack.imgur.com/FzrPy.png

If you have more than one text field on a card, we want to "tab" between 
fields. 

-Dan

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


Re: AR in LiveCode Browser?

2020-06-30 Thread Dan Friedman via use-livecode
Ikea's app does this.  Many other apps also provide an in-app AR expierence.   
How are they doing it?   And how can I do this in my LC app?

-Dan



On 6/30/20, 9:44 AM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2020-06-30 15:46, Dan Friedman via use-livecode wrote:
> Klaus,
> 
> No, mobile.  If I open the link (https://nexen.ehpec.com/usdz.html) in
> Safari on my iPhone, I get total interaction with the AR (Augmented
> Reality) object.  If I open the same URL in a LiveCode browser (native
> or widget) it doesn't open the object at all.

It seems that WKWebView (which is the embeddable browser framework on 
iOS, and the only one*) does not support AR files - 

https://stackoverflow.com/questions/60685400/ar-images-not-working-inside-the-wkwebview.

Warmest Regards,

Mark.

* On iOS there is only allowed to be one browser framework - the one 
Apple provides. Chrome and Firefox (and all other 'alternative' 
browsers) are just 'familiar' UI wrappers around WKWebView.

-- 
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: AR in LiveCode Browser?

2020-06-30 Thread Dan Friedman via use-livecode
Ralph,

On my old Moto it didn’t work.  However, one of the guys in my weekly poker 
game has a Note 10.  I opened that url on his Note 10 last night and it did the 
whole AR thing correctly.

-Dan


From: Ralph DiMola 
Sent: Tuesday, June 30, 2020 8:00 AM
To: Dan Friedman; 'How to use LiveCode'
Subject: RE: AR in LiveCode Browser?

It looks like I was wrong about what engine is used for the browser widget(see 
Mark's comment) I commented after I tried it on my Android phone with Chrome. 
All I got was a request for a download of the usdz file. Talked before I fully 
investigated (ask Margaret about that). I thought that the browser would 
directly open the AR. I'm a little fuzzy on how to open and view these AR's.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: Dan Friedman [mailto:d...@clearvisiontech.com]
Sent: Tuesday, June 30, 2020 10:47 AM
To: How to use LiveCode
Cc: Ralph DiMola
Subject: Re: AR in LiveCode Browser?

Ralph,

I tried the link in the Google App (which I assume uses Chrome) on my iPhone.   
It worked as expected, with total interaction with the AR (Augmented Reality) 
object.  But, it fails in a LiveCode browser (native or widget).

-Dan


On 6/29/20, 6:16 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

The LiveCode browser uses Chromium. Chrome does not support AR usdz files.
This seems to be an Apple iOS 12+ only format. When looking for LC Browser
compatibility try URLs in Chrome. If the link works in Chrome 99.9% of the
time it works in the LC browser widget. There's no obstacle stopping it from
being implemented in Chrome(therefore Android) but I guess there's some
licensing issues(money).

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 Dan Friedman via use-livecode
Sent: Monday, June 29, 2020 7:48 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: AR in LiveCode Browser?

I am trying to display and use an AR object in a webpage in a LiveCode
browser.   It don't work!Feels like the LC browser (native or widget)
doesn't have access to the native AR features.   For example, if I open this
URL https://nexen.ehpec.com/usdz.html in Safari, it works great!   If I open
it in a LC browser, it doesn't launch AR.   Is the a limitation of LC?   Or
do I have to flip a switch somewhere?

Thanks in advance!
-Dan

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


___
use-livecode mailing list
use-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: AR in LiveCode Browser?

2020-06-30 Thread Dan Friedman via use-livecode
Klaus,

No, mobile.  If I open the link (https://nexen.ehpec.com/usdz.html) in Safari 
on my iPhone, I get total interaction with the AR (Augmented Reality) object.  
If I open the same URL in a LiveCode browser (native or widget) it doesn't open 
the object at all.

-Dan
 

On 6/30/20, 2:08 AM, "use-livecode on behalf of Klaus major-k via 
use-livecode"  wrote:

Hi Dan,

> Am 30.06.2020 um 01:47 schrieb Dan Friedman via use-livecode 
:
> 
> I am trying to display and use an AR object in a webpage in a LiveCode 
browser.   It don't work!Feels like the LC browser (native or widget) 
doesn't have access to the native AR features.   For example, if I open this 
URL https://nexen.ehpec.com/usdz.html in Safari, it works great! 

if I open that url in Safari, the .USDZ file gets downloaded and not 
displayed in Safari.
However I can open (and interact with) the file with QuickLook or even 
Preview.

We are talking about Desktop, aren't we?


Best

Klaus

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


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

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


Re: AR in LiveCode Browser?

2020-06-30 Thread Dan Friedman via use-livecode
Ralph,

I tried the link in the Google App (which I assume uses Chrome) on my iPhone.   
It worked as expected, with total interaction with the AR (Augmented Reality) 
object.  But, it fails in a LiveCode browser (native or widget).

-Dan
 

On 6/29/20, 6:16 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

The LiveCode browser uses Chromium. Chrome does not support AR usdz files.
This seems to be an Apple iOS 12+ only format. When looking for LC Browser
compatibility try URLs in Chrome. If the link works in Chrome 99.9% of the
time it works in the LC browser widget. There's no obstacle stopping it from
being implemented in Chrome(therefore Android) but I guess there's some
licensing issues(money).

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 Dan Friedman via use-livecode
Sent: Monday, June 29, 2020 7:48 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: AR in LiveCode Browser?

I am trying to display and use an AR object in a webpage in a LiveCode
browser.   It don't work!Feels like the LC browser (native or widget)
doesn't have access to the native AR features.   For example, if I open this
URL https://nexen.ehpec.com/usdz.html in Safari, it works great!   If I open
it in a LC browser, it doesn't launch AR.   Is the a limitation of LC?   Or
do I have to flip a switch somewhere?

Thanks in advance!
-Dan

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


___
use-livecode mailing list
use-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


AR in LiveCode Browser?

2020-06-29 Thread Dan Friedman via use-livecode
I am trying to display and use an AR object in a webpage in a LiveCode browser. 
  It don't work!Feels like the LC browser (native or widget) doesn't have 
access to the native AR features.   For example, if I open this URL 
https://nexen.ehpec.com/usdz.html in Safari, it works great!   If I open it in 
a LC browser, it doesn't launch AR.   Is the a limitation of LC?   Or do I have 
to flip a switch somewhere?

Thanks in advance!
-Dan

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


Re: Mobile Keyboard

2020-06-23 Thread Dan Friedman via use-livecode
Ralph,

I had this same issue on a project.  The problem is when the card/stack opens, 
LiveCode want to activate the first typable field it finds.  If my old memory 
is correct, what I did was this:

on preOpenCard
set the lockText of fld "thisDarnField" to true 
end preOpenCard

on openCard
send "doUnlockTheField" to this card in 1 tick //don't send this until 
everything is done loading (you could probably send this in the preOpenCard too)
end openCard

on doUnlockTheField
set the lockText of fld "thisDarnField" to false
end doUnlockTheField


Hope that helps and I hope it works!   I hope my cobweb-ridden brain remembers 
this correctly!

-Dan


On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

I have a card with one focusable input field.
How can I keep the keyboard from opening until the user taps into the field?

I tried putting "focus on nothing"s in various places such as preopencard
and opencard with no success?

I think this has been discussed before. Was there ever a solution for both
iOS and Android?

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net



___
use-livecode mailing list
use-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


Dismiss Answer Dialog on Android

2020-06-21 Thread Dan Friedman via use-livecode
On android, if you issue an answer command and tap outside the bounds of the 
dialog, it = the last button supplied.  For example:

answer "Are you sure you want to logout?" with "Cancel" or "Logout"

If you tap outside the dialog, the dialog is dismissed and it = "Logout".  Is 
this the correct behavior?   Shouldn't tapping outside the dialog do nothing, 
or beep?   I would think you would have to tap one of the choices to continue.  
 Maybe this is standard Android behavior?

Anyone have any insight to this behavior?  Or, is this a bug?

-Dan

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


Datagrid Scrollers

2020-06-04 Thread Dan Friedman via use-livecode
Hello!I am having an issue with a DataGrid's scroller.   The DataGrid is in 
another group ("flyupMenu")  that is located off-screen at the bottom (the top 
of grp " flyupMenu " = the bottom of the card).   Then, when a button is 
clicked, "flyupMenu" is moved up into view.  At this point everything looks 
good.   However, you can't swipe the DataGrid to change the scroll.  It is 
nonresponsive or isn't there.   I found the DataGrid's scroller (it's the long 
id of the DataGrid), and it's location is the original position below the card. 
  I tried everything I can think of to "reset" the scroller, but nothing has 
worked.   I changed the size of the DataGrid, I set the rect of the scroller to 
the rect of the DataGrid, I reloaded the DataGrid's dgData... nothing has 
worked to get the scroller to respond to touch.

Any thoughts?

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


ADA Compliency

2020-05-26 Thread Dan Friedman via use-livecode
Has anyone done anything in regards to ADA compliancy in mobile apps built with 
LiveCode?   Using the apple or android accessibility tools such as Screen 
reading, for example. 

-Dan

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


Re: Counting unique items in a file

2020-04-27 Thread Dan Friedman via use-livecode
Skip,

Haven't tested, but pope about this...

function getUniqueNames inData,pColumn
  put "" into uNames
  set the itemDel to tab
  repeat for each line l in inData
add 1 to uNames[item pColumn of l]
  end repeat
  
  return uNames
end getUniqueNames

You should get back an array keyed by the unique names, and how many instances 
of each one


-Dan



On 4/27/20, 10:25 AM, "use-livecode on behalf of Skip Kimpel via use-livecode" 
 wrote:

Good afternoon LC'ers,

I am loading a tab delimited file into a variable and I need to pull out
all unique names from a certain column (let's say column 10) and count how
many times that name appears in that column.

I know there has to be an easy way of doing it.  Every time I try to start
coding this it get wyyy too long :)

Simple approach?

SKIP
___
use-livecode mailing list
use-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


mobileControlGet and htmlText

2020-04-09 Thread Dan Friedman via use-livecode
Greetings!

Is it possible to get the htmlText (the content of the current HTML document) 
of a native browser?   On desktop, I can do this easily with: 
revBrowserGet(tBrowserId,"htmlText").   Is there a mobile equivalent?

-Dan

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


Re: StackSize limit on iOS

2020-03-06 Thread Dan Friedman via use-livecode
Paul,

Thank you for the suggestion, but maxWidth is at the default.   Regardless, I 
don't think the maxWidth property is in play when you set the dimensions of a 
stack by script.

Any other thoughts?   Kinda stuck!


-Dan
 

On 3/6/20, 5:34 AM, "use-livecode on behalf of Paul Dupuis via use-livecode" 
 wrote:

just a guess, but does "printingStack" have a maxWidth value set (other 
than the default of 65535)?

On 3/5/2020 10:46 PM, Dan Friedman via use-livecode wrote:
> I am trying to produce a landscape PDF on a iPhone…
>
> open inv stack "printingStack"
> set the width of stack "printingStack" to (11*72)
> set the height of stack "printingStack" to (8.5*72)
> answer the width of stack "printingStack" //---  this returns 414 ??? 
//
>
> I am using LC Business 9.6
> I know this was working on a prior version of LC / iOS
>
> Is there some new trick to this?  Or, is there now some limitation on 
setting the size of a stack to something other than the width of the mobile 
device?   If so, how do we generate a standard size PDF?
>
> Thanks in advance,
> -Dan 

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


StackSize limit on iOS

2020-03-05 Thread Dan Friedman via use-livecode
I am trying to produce a landscape PDF on a iPhone…

open inv stack "printingStack"
set the width of stack "printingStack" to (11*72)
set the height of stack "printingStack" to (8.5*72)
answer the width of stack "printingStack" //---  this returns 414 ??? 
//

I am using LC Business 9.6
I know this was working on a prior version of LC / iOS

Is there some new trick to this?  Or, is there now some limitation on setting 
the size of a stack to something other than the width of the mobile device?   
If so, how do we generate a standard size PDF?

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


Re: mobileGetDeviceToken

2020-03-03 Thread Dan Friedman via use-livecode
Mark,

Yes, I realized that the issue is a change in iOS 13 after I posted.   Thank 
you for the news of pending the update.  Do you know when will DP3 be 
available?   I have apps that are failing as we speak.

-Dan


On 3/3/20, 10:32 AM, "Mark Waddingham via use-livecode" 
 wrote:

On 2020-03-03 18:18, Dan Friedman via use-livecode wrote:
> Greeting!   On iOS, prior to LC 9.6, mobileGetDeviceToken() would
> return something like this:
> 
>   <965b251c 6cb1926d e3cb366f dfb16ddd e6b9086a 8a3cac9e 5f857679 
> 376eab7C>
> 
> However, with LC 9.6, I'm getting this:
> 
>   {length=32,bytes=0xd923cbf42faacfae79b44e252fc64fc3...6c57203f87b56e10}
> 
> Anyone know how to extract a valid token from this??

Unfortunately you cannot. The problem occurred because we are now 
building against
the iOS13 SDK... Apple decided to change the return value of an internal 
call used
to turn the binary id into a string :|

A fix for this has already been merged, and will appear in 9.6-DP-3:

   QCC Report: <https://quality.livecode.com/show_bug.cgi?id=22577>

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


mobileGetDeviceToken

2020-03-03 Thread Dan Friedman via use-livecode
Greeting!   On iOS, prior to LC 9.6, mobileGetDeviceToken() would return 
something like this:

<965b251c 6cb1926d e3cb366f dfb16ddd e6b9086a 8a3cac9e 5f857679 
376eab7C>

However, with LC 9.6, I'm getting this:

{length=32,bytes=0xd923cbf42faacfae79b44e252fc64fc3...6c57203f87b56e10}

Anyone know how to extract a valid token from this??

>From what I read here, https://nshipster.com/apns-device-tokens/, LC isn't 
>returning what we need -- the token.


-Dan

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


Face/Touch ID

2020-01-21 Thread Dan Friedman via use-livecode
Greetings!   

If memory serves we can use mergLA for Touch ID.   Is there a method for Face 
ID?

Thanks!
-Dan

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


Re: Parent Group of the Target

2020-01-07 Thread Dan Friedman via use-livecode
BR,

Try "the owner of the target".  Or, the long id of the owner of the target.  
Hope that helps.

-Dan


On 1/7/20, 7:20 AM, "use-livecode on behalf of Sannyasin Brahmanathaswami via 
use-livecode"  wrote:

I could have sworn we passed way before, but I can't find it anywhere on 
the list

what is the most efficient was to get the name of the "Parent Group" of the 
target?

Do we really have to parse this?

widget id 67388 of group id 67392 of card id 8169 of stack 
"/Users/brahmanathaswami/Documents/_Siva-Siva-App/Siva-Siva-Portal.livecode"

To get the name of "group id 67392"

?

BR




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


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


Android Native Text Field Odd Behavior

2019-12-02 Thread Dan Friedman via use-livecode
Is this a bug?  Can anyone confirm?

1. On an Android device, create a text entry native mobile control.
2. Type “test” (or any other text).
3. Type space.
4. Type back-space
5. Type any text

The first word you typed gets repeated.  Seems to be the same issue as this:  
https://github.com/AnySoftKeyboard/AnySoftKeyboard/issues/1323

Using LC9.5.1 rc1
Tested on Android 7 and 9

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


put img into img after import snapshot

2019-11-30 Thread Dan Friedman via use-livecode
This works perfectly on desktop.  Why would it fail on mobile?

put 0,the bottom of btn "newsHeader",the width of this stack,the top of grc 
"scaleRectangle" into pRect
import snapshot from rect pRect
put img 2 into img 1 // THIS LINE DOESN’T DO ANYTHING
delete img 2
set the rect of img "editingImage" to pRect

“put img 2 into img 1” DOES work if it’s an image that’s not from the import 
snapshot command.  Is there something I have to do to the image before this 
will work?

Using LC 9.5.1 rc1

Thanks in advance!
-Dan

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


DataGrid: load images when in view

2019-11-08 Thread Dan Friedman via use-livecode
Greetings!

Say you have a form DataGrid that is displaying 100 entries.  Each entry has an 
image (loaded from a server) and some text.  When you set the dgData, it will 
get all 100 images as it's building the rows.  This is obviously going to take 
some time to load.  Is there a way to have the DataGrid only load the row's 
image when that row comes into view?  This way it will load the images as they 
are needed.

Thanks in advance!
-Dan

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


Re: Windows, Underlines and Printing

2019-11-03 Thread Dan Friedman via use-livecode
Craig,

Yes, it's working as expected on a Mac.   Seems to be only an issue on Windows.

-Dan


On 11/3/19, 7:11 AM, "use-livecode on behalf of dunbarx--- via use-livecode" 
 wrote:

Hi. 

I don't suppose you have tested on a Mac? If not, I will when I get to my 
office tomorrow. 

Craig


-Original Message-
    From: Dan Friedman via use-livecode 
To: How to use LiveCode 
Cc: Dan Friedman 
Sent: Sat, Nov 2, 2019 1:04 pm
Subject: Windows, Underlines and Printing

Greeting!

I have a field on a stack.  In that field is some text and one word is 
underlined.  If I print the card on a windows computer, the underline isn't 
printed.  If I print the card to PDF, the underline is printed.  I tried LC 
9.0.4 Indy, 9.5.0 Business and 9.5.1 rc1 Business.

Can anyone confirm?

-Dan


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


Windows, Underlines and Printing

2019-11-02 Thread Dan Friedman via use-livecode
Greeting!

I have a field on a stack.  In that field is some text and one word is 
underlined.   If I print the card on a windows computer, the underline isn't 
printed.  If I print the card to PDF, the underline is printed.   I tried LC 
9.0.4 Indy, 9.5.0 Business and 9.5.1 rc1 Business.

Can anyone confirm?

-Dan


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


Re: Set font dynamically to fit text

2019-10-13 Thread Dan Friedman via use-livecode
Sannyasin,

I've been doing this for years.  Works well...

on doShrinkToFit lFldID,startingSize,minSize
  set the textSize of lFldID to startingSize
  repeat until the formattedHeight of lFldID <= the height of lFldID
set the textSize of lFldID to (the textSize of lFldID - 1)
if the textSize of lFldID < minSize then
  exit repeat
end if
  end repeat
end doShrinkToFit

Of course, the moment you start with this type of work, you'll immediately wish 
LiveCode would support fractional font sizes!

Hope that helps...

-Dan


On 10/12/19, 5:21 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami 
via use-livecode"  wrote:

Assuming one is not putting whole pages into small fields, does any one 
have an efficient run time LC algorithm that will set the font size so that the 
formatted text will all appear in the field without needing to scroll?

BR

Satchiai Iru - Be a Witness
___
use-livecode mailing list
use-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


DataGrid and scroll down refresh

2019-10-03 Thread Dan Friedman via use-livecode
Greeting!

For mobile, it has become VERY common to  scroll down past the top of a list to 
refresh the data (usually a loading wheel appears).  Is there a method to 
accomplish this with the DataGrid?

-Dan

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


So... Xcode, macOS and Livecode... where are we now?

2019-09-30 Thread Dan Friedman via use-livecode
Good Morning!   I have LiveCode 9.5.0 and MacOS  10.14.6.  What version of 
Xcode do I need for iOS and macOS development?

That's in advance!
-Dan

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


Re: help with mobileSetKeyboardType

2019-09-26 Thread Dan Friedman via use-livecode
I too was not able to get this to work:

mobileControlSet “input”, “keyboardType”, “search”

But, I see that "search" is not listed in the docs as an acceptable 
keyboardType value.  When I tried any of the listed values, it did work.

Thanks for the assist Devin!

-Dan


On 9/26/19, 12:53 PM, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

FWIW, I couldn't get this to work at all:

mobileControlSet “input”, “keyboardType”, “search”

The only thing that worked for me was mobileSetKeyboardType, with the 
caveat that it had to be issued after the native control was created. 
And the glitch there is that it doesn't take effect until the keyboard 
is re-activated, so you have to make sure that the field isn't focused 
until after you set up the native control. That is, if the keyboard pops 
up due to auto-focusing when the card opens, the keyboard won't be right 
until the next time it appears.

On 9/26/19 1:45 PM, Devin Asay via use-livecode wrote:
> Dan,
> 
> I believe it’s because setting keyboard type with a mobile native control 
is done by setting a property with mobileControlSet:
> 
> mobileControlCreate "input","_editingField”
> mobileControlSet “input”, “keyboardType”, “number”
> 
> The mobileSetKeyboardType command works in all other circumstances, 
including with native LiveCode fields.
> 
    > Devin
    > 
> 
>> On Sep 26, 2019, at 12:31 PM, Dan Friedman via use-livecode 
 wrote:
>>
>> I am having some trouble with mobileSetKeyboardType.  Can anyone tell me 
why mobileSetKeyboardType works with this:
>>
>> mobileSetKeyboardType "number"
>> ask "Enter a number"
>>
>> But it doesn’t work with this:
>>
>> mobileSetKeyboardType "number"
>> mobileControlCreate "input","_editingField"
>> mobileControlSet "_editingField","rect","20,20,200,60"
>> mobileControlSet "_editingField","text","123"
>> mobileControlSet "_editingField","visible",true
>> mobileControlDo "_editingField","focus"
>>
>> Doesn't seem to matter what I set mobileSetKeyboardType to or when I set 
it.  It always shows the "normal" keyboard.
>>
>> Using LiveCode Business 9.5.0, testing on a iPhone X
>>
>> -Dan
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


help with mobileSetKeyboardType

2019-09-26 Thread Dan Friedman via use-livecode
I am having some trouble with mobileSetKeyboardType.  Can anyone tell me why 
mobileSetKeyboardType works with this:

mobileSetKeyboardType "number"
ask "Enter a number"

But it doesn’t work with this:

mobileSetKeyboardType "number"
mobileControlCreate "input","_editingField"
mobileControlSet "_editingField","rect","20,20,200,60"
mobileControlSet "_editingField","text","123"
mobileControlSet "_editingField","visible",true
mobileControlDo "_editingField","focus"

Doesn't seem to matter what I set mobileSetKeyboardType to or when I set it.  
It always shows the "normal" keyboard.

Using LiveCode Business 9.5.0, testing on a iPhone X

-Dan

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


Re: Print to PDF on Android?

2019-09-20 Thread Dan Friedman via use-livecode
While you may see this as a workaround, it is not.   Having to leave your 
application to produce the PDF is absolutely unacceptable and unprofessional.  
It's also dangerous to even talk about.  I fear the fine folks at LiveCode will 
say, "Great!  They have a workaround.  Looks like we don't have to deal with 
this at all!".  LiveCode, this is a pretty big hole in the functionality of LC. 
 I do hope you will address this issue – and soon!

-Dan


On 9/20/19, 1:54 PM, "use-livecode on behalf of JJS via use-livecode" 
 wrote:

Nice.

Save a simple text as html and then launch it opens the browser.

*launch URL ("file:" & specialFolderPath("documents") & "order.html")*

It seems Chrome can print to pdf after all, press share and print, then 
you can choose.

So next i want to add an image.

And therefore i will export the image to a jpg or whatever file, then 
save the text written as html markup language instead of plain text, and 
add the image url as reference.

see if that works also.


Doei,

Jerry

Op 20-9-2019 om 16:08 schreef JJS via use-livecode:
> A workaround could be (for text) (for photos or mixed with text i 
> don't know for sure)
>
> save text as a text file
>
> launch the text file in a browser (we can laung a url or browser so 
> also probably the url of the file where it is stored)
>
> then in the browser press the 3 dots in the right upper corner
>
> then press SHARE and you can print it.
>
>
> If you have Opera browser installed, then there is an option to save 
> the page as a PDF and you can also print
>
> In FireFox you have to press PAGE and then you can choose save as PDF 
> or PRINT
>
> in Chrome i see no option to save as PDF.
>
> Maybe you can save the whole as an html file with text and photos, 
> then launch a browser, then save as pdf or print it.
>
>
> I'm gonna try someting, for me it's just text to print with this project.
>
> One advantage of Opera is it has standard unlimited VPN.
>
>
> Doei,
>
> Jerry
>
>
> Op 20-9-2019 om 05:46 schreef scott--- via use-livecode:
>> Hello Dan,
>>
>> Hello Dan,
>>
>> For Android PDF creation I use Jan Schenkel’s  Quartum PDF Library.  
>> <http://www.quartam.com>  It isn’t an ideal  (or even possible) 
>> solution in many cases because it doesn’t support unicode but in my 
>> case that wasn’t a deal breaker.
>>
>> -- 
>> Scott Morrow
>>
>> Elementary Software
>> (Now with 20% less chalk dust!)
    >> web   https://elementarysoftware.com/
>> email sc...@elementarysoftware.com
>> booth1-800-615-0867
>> --
>>
>>
>>> On Sep 19, 2019, at 9:47 AM, Dan Friedman via use-livecode 
>>>  wrote:
>>>
>>> Come on LiveCode!!  We really can't generate one of the most popular 
>>> file formats on the most popular mobile platform? This is a joke!   
>>> This is a MAJOR issue for me and I am sure others.  This pretty much 
>>> kills my project.  Damn.
>>>
>>> -Dan
>>>
>>>
>>> On 9/19/19, 9:41 AM, "use-livecode on behalf of Klaus major-k via 
>>> use-livecode" >> use-livecode@lists.runrev.com> wrote:
>>>
>>> Hi Dan,
>>>
>>>> Am 19.09.2019 um 18:39 schrieb Dan Friedman via use-livecode 
>>>> :
>>>>
>>>> I can't seem to find a way to generate a PDF on Android.  Is this 
>>>> really not possible?
>>> no, unfortunately still not supported by LC.
>>>
>>>> Thanks!
>>>> -Dan
>>> Best
>>>
>>> Klaus
>>>
>>> --
>>> Klaus Major
>>> https://www.major-k.de
>>> kl...@major-k.de
>>>
>>>
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> _

Re: Print to PDF on Android?

2019-09-19 Thread Dan Friedman via use-livecode
Come on LiveCode!!  We really can't generate one of the most popular file 
formats on the most popular mobile platform?   This is a joke!   This is a 
MAJOR issue for me and I am sure others.  This pretty much kills my project.  
Damn.

-Dan


On 9/19/19, 9:41 AM, "use-livecode on behalf of Klaus major-k via 
use-livecode"  wrote:

Hi Dan,

> Am 19.09.2019 um 18:39 schrieb Dan Friedman via use-livecode 
:
> 
> I can't seem to find a way to generate a PDF on Android.  Is this really 
not possible?

no, unfortunately still not supported by LC.

> Thanks!
> -Dan

Best

Klaus

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


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


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


Print to PDF on Android?

2019-09-19 Thread Dan Friedman via use-livecode
I can't seem to find a way to generate a PDF on Android.  Is this really not 
possible?

Thanks!
-Dan

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


WARNING ITMS-90339

2019-09-16 Thread Dan Friedman via use-livecode
Greetings!   FYI, I got this message in Application Uploader this morning:

WARNING ITMS-90339: "Deprecated Info.plist Key. The Info.plist contains a key 
'UIApplicationExitsOnSuspend' in bundle YourAPP [YourAPP.app] that will soon be 
unsupported. Remove the key, rebuild your app and resubmit."

I assume LC is aware of this and is working on a solution.  But, thought I 
would post anyway.

-Dan

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


Re: iOS + UIWebView = Denied!

2019-09-03 Thread Dan Friedman via use-livecode
Mark,

That's good to hear!Thanks for the info.

-Dan
 

On 9/2/19, 10:23 PM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2019-09-03 06:06, Dan Friedman via use-livecode wrote:
> So, I uploaded an update to TestFlight today, and this is what I got 
> from Apple:
> 
> ITMS-90809: Deprecated API Usage - Apple will stop accepting
> submissions of apps that use UIWebView APIs . See
> https://developer.apple.com/documentation/uikit/uiwebview for more
> information.
> 
> Anyone know what this is about?  I'm guessing the LC Browser Widget is
> now invalid/deprecated?

Not quite yet - it is just a warning at this point - you can still 
submit your
app and it will be accepted.

We have been aware of this for a while (although, as usual Apple give 
precious
little warning about when the axe will fall) and have been working hard 
on adding
a WKWebView (the non-deprecated replacement) backend to the browser 
widget which
will solve the problem.

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


iOS + UIWebView = Denied!

2019-09-02 Thread Dan Friedman via use-livecode
So, I uploaded an update to TestFlight today, and this is what I got from Apple:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of 
apps that use UIWebView APIs . See 
https://developer.apple.com/documentation/uikit/uiwebview for more information.

Anyone know what this is about?  I'm guessing the LC Browser Widget is now 
invalid/deprecated?

-Dan
 

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


Re: Android Speed Woes

2019-08-30 Thread Dan Friedman via use-livecode
Ok... so here's an update...

The card that contains all this is a calendar.  On this card is a header, a 
datagrid that lists the events of the selected day, and another group with 84 
controls in it (one button and field for each possible day) that makes up the 
calendar's grid, and more.   When you click "New Entry" or "Edit Entry", we 
hide the calendar and show the group "newEventG" which, as you know, contains 
several other groups for setting the event's properties (title, notes, dates, 
repeat, and more).  It is in the group "newEventG" that we are seeing all the 
sluggish behavior.

Last night, I painstakingly moved group "newEventG" to its own card.  Now, the 
speed is no longer an issue.  It's snappy and responsive.  I have to wonder if 
having a hidden group with so many controls was messing things up.

Mark, to answer your question, there isn't one image on the entire card.
ShowFocusBorder was on.
All these were correct:
- opaque must be false
- showName must be false
- hScrollbar must be false
- vScrollbar must be false
- showBorder must be false
- all bitmap effects must be empty

I am in a good place now and ok to continue with my project (although the 
tablet version is now funky as it moves to another card for event editing 
rather than the group overlay).  I hope all this helps LC resolve whatever this 
issue is.

-Dan


On 8/29/19, 11:56 PM, "use-livecode on behalf of Mark Waddingham via 
use-livecode"  wrote:

On 2019-08-29 16:24, Dan Friedman via use-livecode wrote:
> Hello again!   I am have a tough time getting things to run snappy on
> an Android device.  It's blazing fast on my computer, and more than
> acceptable on my iPhone, but on any android device, it's slow...
> noticeably sluggish.   The issue is mainly hiding/showing groups.  For
> example:
> 
> put the milliseconds into m
> lock screen --for visual effect in rect (the rect of grc "ne_BG")
> //removed the animation for speed testing
> hide grp "ne_mainControls"
> show grp "ne_repeatG"
> unlock screen --with visual effect push left
> answer (the milliseconds - m)
> 
> The result of m is:
> iMac = 10
> iOS = 1   (iPhoneX)
> Android = 516  (Moto G5 Plus Android 7.0)
> 
> The groups contain no images or complex graphics.  Just some buttons 
> and fields.
> 
> I have tried it with and without acceleratedRendering.  Actually, with
> acceleratedRendering enabled it took longer, m=558.
> 
> I have it setup like this:
> Card "calendar"
>Group "newEventG"  --> layerMode set to "Container"
>   Group "ne_mainControls"  --> layerMode set to "Dynamic"
>   Group " ne_repeatG"  --> layerMode set to "Dynamic"
> 
> Any thoughts or advice?  Most other functions are working within
> acceptable ranges/speeds.

So the first thing to do is (on Desktop) run with acceleratedRendering 
and ensure that:
1) 'the effective layerMode of group "newEventG"' is container
2) 'the effective layerMode of group "ne_mainControls" is dynamic
3) 'the effective layerMode of group "ne_repeatG" is dynamic

If (1) does not turn out to be the case then acceleratedRendering will 
have a slightly negative effect (as the engine will be doing what it 
would do without acceleratedRendering on, but also paying the overhead 
of caching the result!). To fix this you'll need to tweak the properties 
of the newEventG group:

- opaque must be false
- showName must be false
- hScrollbar must be false
- vScrollbar must be false
- showBorder must be false
- all bitmap effects must be empty

Essentially the rule here is that for a group to be a container layer it 
must not have to render anything itself (as it is just meant to 
'contain' other layers).

If you get the groups effective layerModes as above I'd imagine you 
*might* see a slight increase in performance with acceleratedRendering 
on - the showing and hiding of the dynamic layers is essentially 'free' 
in this scenario - but their content does need to be cached first. 
Caching of dynamic layers happens incrementally as parts of them are 
visible.

However, given the difference in speed between the platforms with 
acceleratedRendering off I'm inclined to think something else is going 
on here... The CPU on a Moto G5 Plus is substantially less powerful than 
even an iPhone6S - but definitely not 50x!

You mentioned in another thread that 

Re: Android Speed Woes

2019-08-29 Thread Dan Friedman via use-livecode
Mark,

put the milliseconds into m
put "" into jones
repeat 1
put "a" after jones
end repeat
put jones into pFart
put the milliseconds - m into m
answer m

iMac = 1
Moto G5 = 16
Moto G6 = 10
iPhone X = 7

-Dan
 

On 8/29/19, 5:09 PM, "use-livecode on behalf of Mark Wieder via use-livecode" 
 wrote:

On 8/29/19 4:40 PM, Dan Friedman via use-livecode wrote:
> Sean,
> 
>>> Another test would be to see how fast it creates a variable with 10,000 
characters using a repeat loop ...
> 
> put "" into jones
> repeat 1
> put "a" after jones
> end repeat
> put the milliseconds into m
> put jones into pFart
> put the milliseconds - m into m
> answer m

You really want to store the milliseconds *before* the repeat loop to 
have any chance of seeing a difference.

-- 
  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: Android Speed Woes

2019-08-29 Thread Dan Friedman via use-livecode
Sean,

>>Another test would be to see how fast it creates a variable with 10,000 
>>characters using a repeat loop ...

put "" into jones
repeat 1
   put "a" after jones
end repeat
put the milliseconds into m
put jones into pFart
put the milliseconds - m into m
answer m

iMac = 1
Moto G5 = 0 
Moto G6 = 0
iPhone X = 0


-Dan
 

On 8/29/19, 4:10 PM, "use-livecode on behalf of Pi Digital via use-livecode" 
 wrote:

Dan is talking 500 times difference in response tho. That’s a bit more 
substantial. Plus speed degradation to a device designed to run Android 7.0 
shouldn’t be to that degree either, for display or under the hood. The G5 has 
an octo 1.4ghz, the iPhoneX is 6core 2.39, only 4 times as fast (8-10 times 
offscreen), not 200-500. \?/

Dan,
Another test would be to see how fast it creates a variable with 10,000 
characters using a repeat loop then how long to copy that to another variable. 
If the numbers are wildly different to the iPhone’s and desktop’s then maybe 
Jacque is on to something and it is a device specific lag. Otherwise it’s 
likely a display issue, which could be device specific but could equally be 
something deeper worth looking into. 

Sean

> On 29 Aug 2019, at 23:23, J. Landman Gay via use-livecode 
 wrote:
> 
> I'd say it's the phone. The Moto G5 has a budget processor and an old 
version of Android OS. An iPhoneX is newer and much faster so it isn't really a 
fair comparison. 


___
use-livecode mailing list
use-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: Android Speed Woes

2019-08-29 Thread Dan Friedman via use-livecode
Sean,

I wouldn't say AR is non-functional.  When I enable it I do see a difference.  
Although, in almost all cases it makes it worse.  I see jerky scrolling and 
screen artifacts.
I am using 9.5.0 Business.   I compiled the app in 9.0.4 Indy, and m=562.   
Interesting that I just tried it on a Moto G6 and m=585.  Slower than the G5!

>> Is this timing consistent if triggered by a button?
That's how I am firing this.

>> What timing do you get with lock screen muted?
If I comment out the lock screens, I get m=756 (Moto G5)

-Dan

On 8/29/19, 2:40 PM, "use-livecode on behalf of Pi Digital via use-livecode" 
 wrote:

Hi Dan

I don’t think this is fully related to your issue based on the script you 
show but...

I’ve been doing extensive testing this week and have come close to the 
conclusion now that AcceleratedRendering is completely non functional for all 
platforms. However, I’ve got a feeling that none of my recent emails to LC on 
the matter have got through during their outage. 

Is no one else seeing this loss in performance? So far all my tests have 
shown it to be affecting every platform standalone and the IDE. 

Back to your issue, Dan. 
What version LC are you using?
Is this timing consistent if triggered by a button?
What timing do you get with lock screen muted?

Also, put the timer calculation to a variable to ensure it is not the 
answer dialogue itself producing erroneous timings. 

NB. Additionally, if your groups are not moving up down left right then 
they are best set to static rather than dynamic or scrolling. This won’t be 
affecting your performance in this instance but worth noting. It’s only useful 
setting it to ‘dynamic’ if the values, text or images are changing 
frequently/rapidly or moving about the display. 

Sean Cole
Pi Digital Prod Ltd

> On 29 Aug 2019, at 21:24, Dan Friedman via use-livecode 
 wrote:
> 
> Hello again!   I am have a tough time getting things to run snappy on an 
Android device.  It's blazing fast on my computer, and more than acceptable on 
my iPhone, but on any android device, it's slow... noticeably sluggish.   The 
issue is mainly hiding/showing groups.  For example:
> 
> put the milliseconds into m
> lock screen --for visual effect in rect (the rect of grc "ne_BG") 
//removed the animation for speed testing
> hide grp "ne_mainControls"
> show grp "ne_repeatG"
> unlock screen --with visual effect push left
> answer (the milliseconds - m)
> 
> The result of m is:
> iMac = 10
> iOS = 1   (iPhoneX)
> Android = 516  (Moto G5 Plus Android 7.0)
> 
> The groups contain no images or complex graphics.  Just some buttons and 
fields.
> 
> I have tried it with and without acceleratedRendering.  Actually, with 
acceleratedRendering enabled it took longer, m=558.
> 
> I have it setup like this:
> Card "calendar"
>   Group "newEventG"  --> layerMode set to "Container"
>  Group "ne_mainControls"  --> layerMode set to "Dynamic"
>  Group " ne_repeatG"  --> layerMode set to "Dynamic"
> 
> Any thoughts or advice?  Most other functions are working within 
acceptable ranges/speeds.
> 
> -Dan
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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


Android Speed Woes

2019-08-29 Thread Dan Friedman via use-livecode
Hello again!   I am have a tough time getting things to run snappy on an 
Android device.  It's blazing fast on my computer, and more than acceptable on 
my iPhone, but on any android device, it's slow... noticeably sluggish.   The 
issue is mainly hiding/showing groups.  For example:

put the milliseconds into m
lock screen --for visual effect in rect (the rect of grc "ne_BG") //removed the 
animation for speed testing
hide grp "ne_mainControls"
show grp "ne_repeatG"
unlock screen --with visual effect push left
answer (the milliseconds - m)

The result of m is:
iMac = 10
iOS = 1   (iPhoneX)
Android = 516  (Moto G5 Plus Android 7.0)

The groups contain no images or complex graphics.  Just some buttons and fields.

I have tried it with and without acceleratedRendering.  Actually, with 
acceleratedRendering enabled it took longer, m=558.

I have it setup like this:
Card "calendar"
   Group "newEventG"  --> layerMode set to "Container"
  Group "ne_mainControls"  --> layerMode set to "Dynamic"
  Group " ne_repeatG"  --> layerMode set to "Dynamic"

Any thoughts or advice?  Most other functions are working within acceptable 
ranges/speeds.

-Dan

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


Re: Fonts on Android

2019-08-28 Thread Dan Friedman via use-livecode
Ralph,

The font came from Google Fonts (https://fonts.google.com/specimen/Barlow).  I 
would think its ok.

FWIW... I am just looking for a Helvetica-like font.  I have my project set to 
the default fonts "(system)".  But it looks like crap on Android!  So, I'm just 
looking for something that will look good and render correctly.  I will need a 
regular, bold and italic.

-Dan


On 8/28/19, 5:34 AM, "Ralph DiMola"  wrote:

>After running FontInfo(), I see this:
>
>*Barlow Bold
>bold
>*Barlow Regular
>Plain

What I would have expected is:
*Barlow
bold
plain

Then it would work as expected.

>When I set the font of my stack to "Barlow", everything (bold or not) 
comes up as Barlow Bold. 
>When I set the font of my stack to "Barlow Regular", everything (bold or 
not) comes up as Barlow Regular.

This is because the OS is seeing these as 2 different fonts.
Are the results of FontInfo() on the IDE or the Android device?

I have seen oddities like this when the internal font name is 
wrong/inconsistent or (for example)the regular version was created at a later 
date and the original name was "Barlow bold" and there was no other option than 
to name the new plain font to "Barlow regular". This would not allow them to 
operate as a family.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: Dan Friedman [mailto:d...@clearvisiontech.com] 
Sent: Tuesday, August 27, 2019 6:54 PM
To: rdim...@evergreeninfo.net; 'How to use LiveCode'
Subject: Re: Fonts on Android

Ralph,

Thank you for the reply.  But, I don’t see how this helps.  I have two 
fonts:

Barlow-Bold.ttf
Barlow-Regular.ttf

After running FontInfo(), I see this:

*Barlow Bold
bold
*Barlow Regular
plain

When I set the font of my stack to "Barlow", everything (bold or not) comes 
up as Barlow Bold. 
When I set the font of my stack to "Barlow Regular", everything (bold or 
not) comes up as Barlow Regular.

Only thing I can think to do is to run thought EVERY object in my project 
and set the textFont of that control to "Barlow Bold" or "Barlow Regular".  
Then there's text fields with mixed text...  Do I run through every text field 
and change the font of all bold text?   There has to be a way to map "Barlow 
Regular" to plain text, and "Barlow Bold" to bold text.  I must be missing 
something.

-Dan



On 8/27/19, 3:07 PM, "Ralph DiMola"  wrote:

When I run into this problem I use the routine below to enumerate all 
the
fonts and their styles.
If you have both a "Plain" and "Bold" style for a font then you use the 
font
name and set its style to "Bold"
If you use a "bold" base font then its "plain" style IS the bold font 
and
setting its style to "Bold" will do nothing.

function FontInfo
   local fnames,fstyles,tlist
   
   put the fontnames into fnames
   sort fnames
   repeat for each line tfnt in fnames
  put "*" after tlist
  put the fontstyles(tfnt,0) into  fstyles
  repeat for each line tsty in fstyles
 put space & tsty & cr after tlist
  end repeat
   end repeat
   delete char -1 in tlist
   return tlist
end FontInfo

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 Dan Friedman via use-livecode
Sent: Tuesday, August 27, 2019 5:11 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: Fonts on Android

Greetings!

I am able to get a custom font installed and running on a Android 
device.
But, how do you handle the font family?   Included in my app is
"myfont-Regular.ttf" and "myfont-bold.ttf".   When the app launches, I 
call:

set the textFont of stack "main" to "myfont" 

It's only using the bold version (probably because it's first
alphabetically).  Is there a way to map a font to a style so that text 
is "
myfont-Regular" and bold text is "myfont-bold"?

Thanks in advance,
-Dan

 

___
use-livecode mailing list
u

Re: Fonts on Android

2019-08-27 Thread Dan Friedman via use-livecode
Ralph,

Thank you for the reply.  But, I don’t see how this helps.  I have two fonts:

Barlow-Bold.ttf
Barlow-Regular.ttf

After running FontInfo(), I see this:

*Barlow Bold
bold
*Barlow Regular
plain

When I set the font of my stack to "Barlow", everything (bold or not) comes up 
as Barlow Bold. 
When I set the font of my stack to "Barlow Regular", everything (bold or not) 
comes up as Barlow Regular.

Only thing I can think to do is to run thought EVERY object in my project and 
set the textFont of that control to "Barlow Bold" or "Barlow Regular".  Then 
there's text fields with mixed text...  Do I run through every text field and 
change the font of all bold text?   There has to be a way to map "Barlow 
Regular" to plain text, and "Barlow Bold" to bold text.  I must be missing 
something.

-Dan



On 8/27/19, 3:07 PM, "Ralph DiMola"  wrote:

When I run into this problem I use the routine below to enumerate all the
fonts and their styles.
If you have both a "Plain" and "Bold" style for a font then you use the font
name and set its style to "Bold"
If you use a "bold" base font then its "plain" style IS the bold font and
setting its style to "Bold" will do nothing.

function FontInfo
   local fnames,fstyles,tlist
   
   put the fontnames into fnames
   sort fnames
   repeat for each line tfnt in fnames
  put "*" after tlist
  put the fontstyles(tfnt,0) into  fstyles
  repeat for each line tsty in fstyles
 put space & tsty & cr after tlist
  end repeat
   end repeat
   delete char -1 in tlist
   return tlist
end FontInfo

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 Dan Friedman via use-livecode
Sent: Tuesday, August 27, 2019 5:11 PM
To: How to use LiveCode
Cc: Dan Friedman
Subject: Fonts on Android

Greetings!

I am able to get a custom font installed and running on a Android device.
But, how do you handle the font family?   Included in my app is
"myfont-Regular.ttf" and "myfont-bold.ttf".   When the app launches, I call:

set the textFont of stack "main" to "myfont" 

It's only using the bold version (probably because it's first
alphabetically).  Is there a way to map a font to a style so that text is "
myfont-Regular" and bold text is "myfont-bold"?

Thanks in advance,
-Dan

 

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



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


Fonts on Android

2019-08-27 Thread Dan Friedman via use-livecode
Greetings!

I am able to get a custom font installed and running on a Android device.  But, 
how do you handle the font family?   Included in my app is "myfont-Regular.ttf" 
and "myfont-bold.ttf".   When the app launches, I call:

set the textFont of stack "main" to "myfont" 

It's only using the bold version (probably because it's first alphabetically).  
Is there a way to map a font to a style so that text is " myfont-Regular" and 
bold text is "myfont-bold"?

Thanks in advance,
-Dan

 

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


mobilePickPhoto and Galaxy Note 8

2019-08-23 Thread Dan Friedman via use-livecode
Greetings!

I am using mobilePickPhoto to take a photo.  On all Apple devices it's working 
great. It's also working as expected on all Android devices except a Galaxy 
Note 8.  On this specific device the camera comes up, we take the photo and 
hear the shutter sound, but no photo is returned/created.  It's as if 
mobilePickPhoto was never called.  Again, this ONLY happens on a Galaxy Note 8. 
 Anyone have any insight to this?   Perhaps someone has a Galaxy Note 8 and can 
see if you're getting the same result?

Thanks in advance,
--Dan

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


DataGrid height?

2019-07-27 Thread Dan Friedman via use-livecode
Hello!   I'm working with the dataGrid for the first time (LC 9.5).   Pretty 
cool!  But I'm having an issue...

Following this lesson, 
http://lessons.livecode.com/m/datagrid/l/9850-how-do-i-create-rows-that-can-expand-contract,
 I created a dataGrid with expanding/collapsing rows.  The expanding/collapsing 
part is working fine, and the entire dataGrid looks perfect.  But when it 
expands a row, some rows below are pushed too far down - leaving a big white 
space.  If I then collapse the row and then expand it again, it works correctly 
(for that row).
 
A little detail...  When the row is created, I am resizing the height of a text 
field (with the formattedHeight) so that the content fits.  This, of course, is 
altering the height of the row - which is exactly what I want.  Also, when I 
try this on a phone, there is no scroller (there is also no scrollbar on 
desktop).  I have another dataGrid in this project (that isn't calling for 
dynamic row heights) and it seems to have a scroller automatically (which is 
WAY cool!).

Any thoughts as to (1) why it's not expanding correctly, and (2) why there is 
no scroller on mobile (or desktop)?   My guess is that since I am changing the 
height of the row on the fly, I need to update some dataGrid property that I am 
unaware of.

Any insight would be appreciated!

-Dan

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


Re: ITMS-90546: Missing Asset Catalog

2019-07-24 Thread Dan Friedman via use-livecode
Panos,

Ok… Installed 10.1, rebuilt app and uploaded.  That worked.   THANK YOU for the 
quick assistance.

This also resolved this issue:
http://lists.runrev.com/pipermail/use-livecode/2019-July/255327.html



Thank you!

Dan Friedman
CEO, ClearVision Technologies, LLC
Voice: 909/484-2052
http://www.clearvisiontech.com


From: panagiotis merakos 
Date: Wednesday, July 24, 2019 at 10:46 AM
To: Dan Friedman 
Cc: How to use LiveCode 
Subject: Re: ITMS-90546: Missing Asset Catalog

Hello Dan,
You need xcode 10.1.

Xcode 10.2 or 10.3 are not supported. In fact you should not be able to build a 
standalone with xcode 10.3.

Best,
Panos

On Wed, Jul 24, 2019, 20:41 Dan Friedman 
mailto:d...@clearvisiontech.com>> wrote:
Panos,

XCode 10.3
LC 9.5.0 (dp 1)
macOS 10.14.3

Thanks!
-Dan


From: panagiotis merakos mailto:merak...@gmail.com>>
Date: Wednesday, July 24, 2019 at 10:29 AM
To: How to use LiveCode 
mailto:use-livecode@lists.runrev.com>>
Cc: Dan Friedman mailto:d...@clearvisiontech.com>>
Subject: Re: ITMS-90546: Missing Asset Catalog

Nope, I don't think this would cause a problem. It is strange this file is not 
created for you. What is the xcode version you use?

On Wed, Jul 24, 2019, 19:30 Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Panos,

My app does not support landscape and I have "Portrait" selected in the "iPhone 
Initial Orentation".  For this reason, I did not include Landscape spash 
screens.   Could this be the issue?

-Dan


On 7/24/19, 9:09 AM, "use-livecode on behalf of Dan Friedman via use-livecode" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of 
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Panos,

I did include all icons and splash screens.  No, there is not a 
"Assets.car" in the app bundle.   Here's what's in the bundle:
_CodeSignature
 > CodeResources
appicon60...@2x.png
ca-bundle.crt
default-5...@2x.png
default-6...@2x.png
default-7...@3x.png
default-8...@3x.png
default-8...@2x.png
default-8...@3x.png
Default.png
defa...@2x.png
embedded.mobileprovision
Info.plist
PkgInfo
myApp

-Dan

On 7/24/19, 8:58 AM, "use-livecode on behalf of panagiotis merakos via 
use-livecode" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of 
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Hello Dan,

Yes, the standalone builder creates this for you (you need to supply
correct icons and splash screens for all supported devices).

Does the standalone app bundle contain a file called "Assets.car"?

Best,
Panos
--

On Wed, 24 Jul 2019 at 18:29, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> 
wrote:

> Using LC 9.5.0 (dp 1), I uploaded my app to Apple.  I got this back 
from
> them:
>
> ITMS-90546: Missing Asset Catalog - Your app is missing the asset 
catalog
> file in yourApp.app'. For more information see
> http://help.apple.com/xcode/mac/current/#/dev10510b1f7.
>
> A "Asset Catalog" doesn't sound like something I should be adding
> manually.  Could this be an issue with LC when building the 
standalone?
>
> -Dan
>
> ___
> 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
>


--
Panagiotis Merakos 
mailto:panos.mera...@livecode.com>>
LiveCode Software Developer

Everyone Can Create Apps <https://livecode.com>
___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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

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

Re: ITMS-90546: Missing Asset Catalog

2019-07-24 Thread Dan Friedman via use-livecode
Panos,

XCode 10.3
LC 9.5.0 (dp 1)
macOS 10.14.3

Thanks!
-Dan


From: panagiotis merakos 
Date: Wednesday, July 24, 2019 at 10:29 AM
To: How to use LiveCode 
Cc: Dan Friedman 
Subject: Re: ITMS-90546: Missing Asset Catalog

Nope, I don't think this would cause a problem. It is strange this file is not 
created for you. What is the xcode version you use?

On Wed, Jul 24, 2019, 19:30 Dan Friedman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Panos,

My app does not support landscape and I have "Portrait" selected in the "iPhone 
Initial Orentation".  For this reason, I did not include Landscape spash 
screens.   Could this be the issue?

-Dan


On 7/24/19, 9:09 AM, "use-livecode on behalf of Dan Friedman via use-livecode" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of 
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Panos,

I did include all icons and splash screens.  No, there is not a 
"Assets.car" in the app bundle.   Here's what's in the bundle:
_CodeSignature
 > CodeResources
appicon60...@2x.png
ca-bundle.crt
default-5...@2x.png
default-6...@2x.png
default-7...@3x.png
default-8...@3x.png
default-8...@2x.png
default-8...@3x.png
Default.png
defa...@2x.png
embedded.mobileprovision
Info.plist
PkgInfo
myApp

-Dan

On 7/24/19, 8:58 AM, "use-livecode on behalf of panagiotis merakos via 
use-livecode" 
mailto:use-livecode-boun...@lists.runrev.com>
 on behalf of 
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Hello Dan,

Yes, the standalone builder creates this for you (you need to supply
correct icons and splash screens for all supported devices).

Does the standalone app bundle contain a file called "Assets.car"?

        Best,
Panos
--

On Wed, 24 Jul 2019 at 18:29, Dan Friedman via use-livecode <
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> 
wrote:

> Using LC 9.5.0 (dp 1), I uploaded my app to Apple.  I got this back 
from
> them:
>
> ITMS-90546: Missing Asset Catalog - Your app is missing the asset 
catalog
> file in yourApp.app'. For more information see
> http://help.apple.com/xcode/mac/current/#/dev10510b1f7.
>
> A "Asset Catalog" doesn't sound like something I should be adding
> manually.  Could this be an issue with LC when building the 
standalone?
>
> -Dan
>
> ___
> 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
>


--
Panagiotis Merakos 
mailto:panos.mera...@livecode.com>>
LiveCode Software Developer

Everyone Can Create Apps <https://livecode.com>
___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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

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


  1   2   3   >